Enum Class MoveCommand
- All Implemented Interfaces:
Serializable,Comparable<MoveCommand>,Constable,StatusBarPhaseDisplay.PhaseCommand
This enumeration lists all the possible ActionCommands that can be carried out during the movement phase. Each
command has a string for the command plus a flag that determines what unit type it is appropriate for.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCmd()intvoidsetPriority(int newPriority) toString()static MoveCommandReturns the enum constant of this class with the specified name.static MoveCommand[]values()Returns an array containing the constants of this enum class, in the order they are declared.static MoveCommand[]values(int unitFlag, GameOptions opts, boolean forwardIni) Return a list of valid commands for the given parameters.
-
Enum Constant Details
-
MOVE_NEXT
-
MOVE_TURN
-
MOVE_WALK
-
MOVE_JUMP
-
MOVE_BACK_UP
-
MOVE_GET_UP
-
MOVE_FORWARD_INI
-
MOVE_CHARGE
-
MOVE_DFA
-
MOVE_GO_PRONE
-
MOVE_FLEE
-
MOVE_EJECT
-
MOVE_ABANDON
-
MOVE_LAUNCH_ESCAPE_POD
-
MOVE_LOAD
-
MOVE_UNLOAD
-
MOVE_MOUNT
-
MOVE_TOW
-
MOVE_DISCONNECT
-
MOVE_UNJAM
-
MOVE_CLEAR
-
MOVE_CANCEL
-
MOVE_RAISE_ELEVATION
-
MOVE_LOWER_ELEVATION
-
MOVE_ELEVATOR_UP
-
MOVE_ELEVATOR_DOWN
-
MOVE_SEARCHLIGHT
-
MOVE_LAY_MINE
-
MOVE_HULL_DOWN
-
MOVE_CLIMB_MODE
-
MOVE_DESCEND
-
MOVE_SWIM
-
MOVE_SHAKE_OFF
-
MOVE_BRACE
-
MOVE_CHAFF
-
MOVE_MODE_CONVERT
-
MOVE_MODE_LEG
-
MOVE_MODE_VEE
-
MOVE_MODE_AIR
-
MOVE_RECKLESS
-
MOVE_CAREFUL_STAND
-
MOVE_EVADE
-
MOVE_BOOTLEGGER
-
MOVE_SHUTDOWN
-
MOVE_STARTUP
-
MOVE_SELF_DESTRUCT
-
MOVE_DIG_IN
-
MOVE_HIT_DECK
-
MOVE_FORTIFY
-
MOVE_CLEAR_RUBBLE
-
MOVE_BUILD_BRIDGE
-
MOVE_TAKE_COVER
-
MOVE_CALL_SUPPORT
-
MOVE_STRAFE
-
MOVE_BOMB
-
MOVE_ACC
-
MOVE_DEC
-
MOVE_EVADE_AERO
-
MOVE_ACCELERATION
-
MOVE_DECELERATION
-
MOVE_ROLL
-
MOVE_LAUNCH
-
MOVE_DOCK
-
MOVE_RECOVER
-
MOVE_DROP
-
MOVE_DUMP
-
MOVE_RAM
-
MOVE_HOVER
-
MOVE_MANEUVER
-
MOVE_JOIN
-
MOVE_FLY_OFF
-
MOVE_TAKE_OFF
-
MOVE_VERT_TAKE_OFF
-
MOVE_LAND
-
MOVE_VERT_LAND
-
MOVE_TURN_LEFT
-
MOVE_TURN_RIGHT
-
MOVE_THRUST
-
MOVE_YAW
-
MOVE_END_OVER
-
MOVE_ENVELOPE
-
MOVE_LONGEST_RUN
-
MOVE_LONGEST_WALK
-
MOVE_TRAITOR
-
MOVE_PICKUP_CARGO
-
MOVE_DROP_CARGO
-
MOVE_MORE
-
-
Field Details
-
cmd
The command text. -
flag
public final int flagFlag that determines what unit types can use a command. -
priority
public int priorityPriority that determines this button order
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCmd
- Specified by:
getCmdin interfaceStatusBarPhaseDisplay.PhaseCommand
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceStatusBarPhaseDisplay.PhaseCommand
-
setPriority
public void setPriority(int newPriority) - Specified by:
setPriorityin interfaceStatusBarPhaseDisplay.PhaseCommand
-
toString
- Overrides:
toStringin classEnum<MoveCommand>
-
getHotKeyDesc
-
values
Return a list of valid commands for the given parameters.- Parameters:
unitFlag- The unit flag to specify what unit type the commands are for.opts- AGameOptionsreference for checking game optionsforwardIni- A flag to see if we can pass the turn to a teammate- Returns:
- An array of valid commands for the given parameters
-