Package megamek.common.enums
Enum Class MoveStepType
- All Implemented Interfaces:
Serializable,Comparable<MoveStepType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this move step causes the unit to enter a new hex.static MoveStepTypeDeprecated, for removal: This API element is subject to removal in a future version.Returns the human‑readable label for this move step.static MoveStepTypestepTypeForRelativeDirection(int direction, int facing) Returns a step type to use for simple path finding, given the direction to the destination (0 to 5) and the facing of the unit (0 to 5).static MoveStepTypeReturns the enum constant of this class with the specified name.static MoveStepType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
FORWARDS
-
BACKWARDS
-
TURN_LEFT
-
TURN_RIGHT
-
GET_UP
-
GO_PRONE
-
START_JUMP
-
JUMP_MEK_MECHANICAL_BOOSTER
-
CHARGE
-
DFA
-
FLEE
-
LATERAL_LEFT
-
LATERAL_RIGHT
-
LATERAL_LEFT_BACKWARDS
-
LATERAL_RIGHT_BACKWARDS
-
UNJAM_RAC
-
LOAD
-
UNLOAD
-
EJECT
-
ABANDON
-
LAUNCH_ESCAPE_POD
-
CLEAR_MINEFIELD
-
UP
-
DOWN
-
ELEVATOR_ASCEND
-
ELEVATOR_DESCEND
-
SEARCHLIGHT
-
LAY_MINE
-
HULL_DOWN
-
CLIMB_MODE_ON
-
CLIMB_MODE_OFF
-
SWIM
-
DIG_IN
-
HIT_THE_DECK
-
FORTIFY
-
CLEAR_RUBBLE
-
BUILD_BRIDGE
-
CANCEL_BRIDGE
-
RESUME_BRIDGE
-
PAUSE_BRIDGE
-
ABANDON_BRIDGE
-
SHAKE_OFF_SWARMERS
-
TAKEOFF
-
VERTICAL_TAKE_OFF
-
LAND
-
ACC
-
DEC
-
EVADE
-
SHUTDOWN
-
STARTUP
-
SELF_DESTRUCT
-
ACCELERATION
-
DECELERATION
-
ROLL
-
OFF
-
RETURN
-
LAUNCH
-
THRUST
-
YAW
-
CRASH
-
RECOVER
-
RAM
-
HOVER
-
MANEUVER
-
LOOP
-
CAREFUL_STAND
-
JOIN
-
DROP
-
VERTICAL_LAND
-
MOUNT
-
LOAD_BY_CRANE
-
UNLOAD_BY_CRANE
-
STOP_CRANE_OPERATION
-
UNDOCK
-
TAKE_COVER
-
CONVERT_MODE
-
BOOTLEGGER
-
TOW
-
DISCONNECT
-
BRACE
-
CHAFF
-
PICKUP_CARGO
-
DROP_CARGO
-
CHANGE_BOARD
-
DEPLOY
-
-
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
-
entersNewHex
public boolean entersNewHex()Returns whether this move step causes the unit to enter a new hex. -
getHumanReadableLabel
Returns the human‑readable label for this move step. -
fromLabel
Deprecated, for removal: This API element is subject to removal in a future version.Returns the MoveStepType corresponding to the given human-readable label.- Parameters:
label- the label to look up (e.g., "F", "Up", "L", etc.)- Returns:
- the corresponding MoveStepType
- Throws:
IllegalArgumentException- if no matching type is found
-
stepTypeForRelativeDirection
Returns a step type to use for simple path finding, given the direction to the destination (0 to 5) and the facing of the unit (0 to 5). The step type can be used to get closer to the destination. Used only for Mek Mechanical Jump Booster path finding.- Parameters:
direction- The direction to the destination, 0 = N, 4 = SW etcfacing- The facing of the unit- Returns:
- A step type to use to get closer to the destination
-