Skip to content

Cursor action

INI referenceEnumsActionType

Named cursor and click actions accepted by action-valued INI settings.

Engine enum
ActionType
Input form
Named token

These are the actions the engine picks between as the cursor crosses the map — what the mouse shape offers and what a left click will then do. They are not the trigger actions a map fires from its tags, which are a separate list.

One rules setting takes a name from here: a SuperWeaponType’s Action. While the map is in that weapon’s targeting mode the name becomes the action under the cursor, which is what picks the mouse shape, and it is also the key the click is matched on afterward: a click whose action is neither None nor Select is compared against every superweapon’s Action in turn, and the first weapon carrying that action has a firing order queued for the cell. Two weapons naming the same action therefore leave the later one unreachable, and a weapon left at None neither takes the cursor nor can be fired by a click at all — which is where an unrecognized name lands it, since the parser reads anything it does not know as None.

Seven entries carry historical DontUse tokens even though their engine constants still name older actions. Nothing assigns or tests those seven, so what survives of them is the spelling: they are distinct names a superweapon can claim, and nothing more.

Values

53 of 53

InputMeaningEngine constantStored value
NoneNo available action.ACTION_NONE0
MoveMove to the selected position.ACTION_MOVE1
NoMoveMovement is not allowed at this position.ACTION_NOMOVE2
EnterEnter the selected transport, facility, or building.ACTION_ENTER3
SelfAct on the selected object itself.ACTION_SELF4
AttackAttack the selected target.ACTION_ATTACK5
HarvestHarvest the selected resource cell.ACTION_HARVEST6
SelectReplace the current selection.ACTION_SELECT7
ToggleSelectToggle the target's selection state.ACTION_TOGGLE_SELECT8
CaptureCapture the selected building.ACTION_CAPTURE9
RepairRepair the selected object.ACTION_REPAIR10
SellSell the selected building.ACTION_SELL11
SellUnitSell the selected unit.ACTION_SELL_UNIT12
NoSellIndicate that selling is unavailable.ACTION_NO_SELL13
NoRepairIndicate that repair is unavailable.ACTION_NO_REPAIR14
SabotageEnter and sabotage the selected object.ACTION_SABOTAGE15
ToteSend an empty carryall to pick up the allied vehicle under the cursor.ACTION_TOTE16
DontUse2Legacy parachute-infantry action.The parser token intentionally marks this slot as not for normal use.ACTION_PARA_INFANTRY17
DontUse3Legacy parachute-saboteur action.The parser token intentionally marks this slot as not for normal use.ACTION_PARA_SABOTEUR18
NukeTarget a nuclear or multi-missile strike.ACTION_NUKE_BOMB19
DontUse4Legacy air-strike action.The parser token intentionally marks this slot as not for normal use.ACTION_AIR_STRIKE20
DontUse5Legacy chronosphere source action.The parser token intentionally marks this slot as not for normal use.ACTION_CHRONOSPHERE21
DontUse6Legacy chronosphere destination action.The parser token intentionally marks this slot as not for normal use.ACTION_CHRONO222
DontUse7Legacy invulnerability action.The parser token intentionally marks this slot as not for normal use.ACTION_IRON_CURTAIN23
DontUse8Legacy reconnaissance action.The parser token intentionally marks this slot as not for normal use.ACTION_SPY_MISSION24
GuardAreaGuard the selected location or object.ACTION_GUARD_AREA25
HealHeal the selected infantry.ACTION_HEAL26
DamageEnter and damage the selected building.ACTION_DAMAGE27
GRepairEnter and complete building repair.ACTION_GREPAIR28
NoDeployIndicate that deployment is unavailable.ACTION_NO_DEPLOY29
NoEnterIndicate that entry is unavailable.ACTION_NO_ENTER30
NoGRepairIndicate that building entry repair is unavailable.ACTION_NO_GREPAIR31
TogglePowerToggle a building's power state.ACTION_TOGGLE_POWER32
NoTogglePowerIndicate that power toggling is unavailable.ACTION_NO_TOGGLE_POWER33
EnterTunnelEnter a tunnel.ACTION_ENTER_TUNNEL34
NoEnterTunnelIndicate that tunnel entry is unavailable.ACTION_NO_ENTER_TUNNEL35
EMPulseTarget an EMPulse superweapon.ACTION_EMPULSE36
IonCannonTarget an ion-cannon strike.ACTION_ION_CANNON37
EMPulseRangeRefuse the target: the player has no powered EM pulse cannon whose weapon reaches it.ACTION_EMPULSE_RANGE38
ChemBombTarget a chemical missile strike.ACTION_CHEM_BOMB39
PlaceWaypointPlace a waypoint.ACTION_PLACE_WAYPOINT40
NoPlaceWaypointIndicate that a waypoint cannot be placed.ACTION_NO_PLACE_WAYPOINT41
EnterWaypointModeEnter waypoint planning mode.ACTION_ENTER_WAYPOINT_MODE42
FollowWaypointFollow the selected waypoint path.ACTION_FOLLOW_WAYPOINT43
SelectWaypointSelect a waypoint.ACTION_SELECT_WAYPOINT44
LoopWaypointPathToggle looping for a waypoint path.ACTION_LOOP_WAYPOINT_PATH45
DragWaypointDrag an existing waypoint.ACTION_DRAG_WAYPOINT46
AttackWaypointAttack along a waypoint path.ACTION_ATTACK_WAYPOINT47
EnterWaypointAppend or enter a waypoint.ACTION_ENTER_WAYPOINT48
PatrolWaypointPatrol a waypoint path.ACTION_PATROL_WAYPOINT49
DropPodTarget a drop-pod delivery.ACTION_DROP_POD50
Rally To PointSet a rally point.ACTION_RALLY_TO_POINT51
Attack SupportPut a healer on Guard Area and any other unarmed object on Guard.ACTION_ATTACK_SUPPORT52

Used by

Source files

Linked at revision 59fae722af8c.