Enum Class MoveCommand

java.lang.Object
java.lang.Enum<MoveCommand>
megamek.client.ui.panels.phaseDisplay.commands.MoveCommand
All Implemented Interfaces:
Serializable, Comparable<MoveCommand>, Constable, StatusBarPhaseDisplay.PhaseCommand

public enum MoveCommand extends Enum<MoveCommand> implements 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.
  • Enum Constant Details

    • MOVE_NEXT

      public static final MoveCommand MOVE_NEXT
    • MOVE_TURN

      public static final MoveCommand MOVE_TURN
    • MOVE_WALK

      public static final MoveCommand MOVE_WALK
    • MOVE_JUMP

      public static final MoveCommand MOVE_JUMP
    • MOVE_BACK_UP

      public static final MoveCommand MOVE_BACK_UP
    • MOVE_GET_UP

      public static final MoveCommand MOVE_GET_UP
    • MOVE_FORWARD_INI

      public static final MoveCommand MOVE_FORWARD_INI
    • MOVE_CHARGE

      public static final MoveCommand MOVE_CHARGE
    • MOVE_DFA

      public static final MoveCommand MOVE_DFA
    • MOVE_GO_PRONE

      public static final MoveCommand MOVE_GO_PRONE
    • MOVE_FLEE

      public static final MoveCommand MOVE_FLEE
    • MOVE_EJECT

      public static final MoveCommand MOVE_EJECT
    • MOVE_ABANDON

      public static final MoveCommand MOVE_ABANDON
    • MOVE_LAUNCH_ESCAPE_POD

      public static final MoveCommand MOVE_LAUNCH_ESCAPE_POD
    • MOVE_LOAD

      public static final MoveCommand MOVE_LOAD
    • MOVE_UNLOAD

      public static final MoveCommand MOVE_UNLOAD
    • MOVE_MOUNT

      public static final MoveCommand MOVE_MOUNT
    • MOVE_TOW

      public static final MoveCommand MOVE_TOW
    • MOVE_DISCONNECT

      public static final MoveCommand MOVE_DISCONNECT
    • MOVE_UNJAM

      public static final MoveCommand MOVE_UNJAM
    • MOVE_CLEAR

      public static final MoveCommand MOVE_CLEAR
    • MOVE_CANCEL

      public static final MoveCommand MOVE_CANCEL
    • MOVE_RAISE_ELEVATION

      public static final MoveCommand MOVE_RAISE_ELEVATION
    • MOVE_LOWER_ELEVATION

      public static final MoveCommand MOVE_LOWER_ELEVATION
    • MOVE_ELEVATOR_UP

      public static final MoveCommand MOVE_ELEVATOR_UP
    • MOVE_ELEVATOR_DOWN

      public static final MoveCommand MOVE_ELEVATOR_DOWN
    • MOVE_SEARCHLIGHT

      public static final MoveCommand MOVE_SEARCHLIGHT
    • MOVE_LAY_MINE

      public static final MoveCommand MOVE_LAY_MINE
    • MOVE_HULL_DOWN

      public static final MoveCommand MOVE_HULL_DOWN
    • MOVE_CLIMB_MODE

      public static final MoveCommand MOVE_CLIMB_MODE
    • MOVE_DESCEND

      public static final MoveCommand MOVE_DESCEND
    • MOVE_SWIM

      public static final MoveCommand MOVE_SWIM
    • MOVE_SHAKE_OFF

      public static final MoveCommand MOVE_SHAKE_OFF
    • MOVE_BRACE

      public static final MoveCommand MOVE_BRACE
    • MOVE_CHAFF

      public static final MoveCommand MOVE_CHAFF
    • MOVE_MODE_CONVERT

      public static final MoveCommand MOVE_MODE_CONVERT
    • MOVE_MODE_LEG

      public static final MoveCommand MOVE_MODE_LEG
    • MOVE_MODE_VEE

      public static final MoveCommand MOVE_MODE_VEE
    • MOVE_MODE_AIR

      public static final MoveCommand MOVE_MODE_AIR
    • MOVE_RECKLESS

      public static final MoveCommand MOVE_RECKLESS
    • MOVE_CAREFUL_STAND

      public static final MoveCommand MOVE_CAREFUL_STAND
    • MOVE_EVADE

      public static final MoveCommand MOVE_EVADE
    • MOVE_BOOTLEGGER

      public static final MoveCommand MOVE_BOOTLEGGER
    • MOVE_SHUTDOWN

      public static final MoveCommand MOVE_SHUTDOWN
    • MOVE_STARTUP

      public static final MoveCommand MOVE_STARTUP
    • MOVE_SELF_DESTRUCT

      public static final MoveCommand MOVE_SELF_DESTRUCT
    • MOVE_DIG_IN

      public static final MoveCommand MOVE_DIG_IN
    • MOVE_HIT_DECK

      public static final MoveCommand MOVE_HIT_DECK
    • MOVE_FORTIFY

      public static final MoveCommand MOVE_FORTIFY
    • MOVE_CLEAR_RUBBLE

      public static final MoveCommand MOVE_CLEAR_RUBBLE
    • MOVE_BUILD_BRIDGE

      public static final MoveCommand MOVE_BUILD_BRIDGE
    • MOVE_TAKE_COVER

      public static final MoveCommand MOVE_TAKE_COVER
    • MOVE_CALL_SUPPORT

      public static final MoveCommand MOVE_CALL_SUPPORT
    • MOVE_STRAFE

      public static final MoveCommand MOVE_STRAFE
    • MOVE_BOMB

      public static final MoveCommand MOVE_BOMB
    • MOVE_ACC

      public static final MoveCommand MOVE_ACC
    • MOVE_DEC

      public static final MoveCommand MOVE_DEC
    • MOVE_EVADE_AERO

      public static final MoveCommand MOVE_EVADE_AERO
    • MOVE_ACCELERATION

      public static final MoveCommand MOVE_ACCELERATION
    • MOVE_DECELERATION

      public static final MoveCommand MOVE_DECELERATION
    • MOVE_ROLL

      public static final MoveCommand MOVE_ROLL
    • MOVE_LAUNCH

      public static final MoveCommand MOVE_LAUNCH
    • MOVE_DOCK

      public static final MoveCommand MOVE_DOCK
    • MOVE_RECOVER

      public static final MoveCommand MOVE_RECOVER
    • MOVE_DROP

      public static final MoveCommand MOVE_DROP
    • MOVE_DUMP

      public static final MoveCommand MOVE_DUMP
    • MOVE_RAM

      public static final MoveCommand MOVE_RAM
    • MOVE_HOVER

      public static final MoveCommand MOVE_HOVER
    • MOVE_MANEUVER

      public static final MoveCommand MOVE_MANEUVER
    • MOVE_JOIN

      public static final MoveCommand MOVE_JOIN
    • MOVE_FLY_OFF

      public static final MoveCommand MOVE_FLY_OFF
    • MOVE_TAKE_OFF

      public static final MoveCommand MOVE_TAKE_OFF
    • MOVE_VERT_TAKE_OFF

      public static final MoveCommand MOVE_VERT_TAKE_OFF
    • MOVE_LAND

      public static final MoveCommand MOVE_LAND
    • MOVE_VERT_LAND

      public static final MoveCommand MOVE_VERT_LAND
    • MOVE_TURN_LEFT

      public static final MoveCommand MOVE_TURN_LEFT
    • MOVE_TURN_RIGHT

      public static final MoveCommand MOVE_TURN_RIGHT
    • MOVE_THRUST

      public static final MoveCommand MOVE_THRUST
    • MOVE_YAW

      public static final MoveCommand MOVE_YAW
    • MOVE_END_OVER

      public static final MoveCommand MOVE_END_OVER
    • MOVE_ENVELOPE

      public static final MoveCommand MOVE_ENVELOPE
    • MOVE_LONGEST_RUN

      public static final MoveCommand MOVE_LONGEST_RUN
    • MOVE_LONGEST_WALK

      public static final MoveCommand MOVE_LONGEST_WALK
    • MOVE_TRAITOR

      public static final MoveCommand MOVE_TRAITOR
    • MOVE_PICKUP_CARGO

      public static final MoveCommand MOVE_PICKUP_CARGO
    • MOVE_DROP_CARGO

      public static final MoveCommand MOVE_DROP_CARGO
    • MOVE_MORE

      public static final MoveCommand MOVE_MORE
  • Field Details

    • cmd

      public final String cmd
      The command text.
    • flag

      public final int flag
      Flag that determines what unit types can use a command.
    • priority

      public int priority
      Priority that determines this button order
  • Method Details

    • values

      public static MoveCommand[] 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

      public static MoveCommand valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCmd

      public String getCmd()
      Specified by:
      getCmd in interface StatusBarPhaseDisplay.PhaseCommand
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface StatusBarPhaseDisplay.PhaseCommand
    • setPriority

      public void setPriority(int newPriority)
      Specified by:
      setPriority in interface StatusBarPhaseDisplay.PhaseCommand
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MoveCommand>
    • getHotKeyDesc

      public String getHotKeyDesc()
    • values

      public static MoveCommand[] values(int unitFlag, GameOptions opts, boolean forwardIni)
      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 - A GameOptions reference for checking game options
      forwardIni - A flag to see if we can pass the turn to a teammate
      Returns:
      An array of valid commands for the given parameters