megamek.common
Enum EntityMovementType
java.lang.Object
java.lang.Enum<EntityMovementType>
megamek.common.EntityMovementType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EntityMovementType>
public enum EntityMovementType
- extends java.lang.Enum<EntityMovementType>
This interface represents Entity Movement Types
|
Method Summary |
static EntityMovementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EntityMovementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MOVE_LEGAL
public static final EntityMovementType MOVE_LEGAL
MOVE_SKID
public static final EntityMovementType MOVE_SKID
MOVE_ILLEGAL
public static final EntityMovementType MOVE_ILLEGAL
MOVE_NONE
public static final EntityMovementType MOVE_NONE
MOVE_WALK
public static final EntityMovementType MOVE_WALK
MOVE_RUN
public static final EntityMovementType MOVE_RUN
MOVE_JUMP
public static final EntityMovementType MOVE_JUMP
MOVE_VTOL_WALK
public static final EntityMovementType MOVE_VTOL_WALK
MOVE_VTOL_RUN
public static final EntityMovementType MOVE_VTOL_RUN
MOVE_SUBMARINE_WALK
public static final EntityMovementType MOVE_SUBMARINE_WALK
MOVE_SUBMARINE_RUN
public static final EntityMovementType MOVE_SUBMARINE_RUN
MOVE_FLYING
public static final EntityMovementType MOVE_FLYING
MOVE_SAFE_THRUST
public static final EntityMovementType MOVE_SAFE_THRUST
MOVE_OVER_THRUST
public static final EntityMovementType MOVE_OVER_THRUST
MOVE_CAREFUL_STAND
public static final EntityMovementType MOVE_CAREFUL_STAND
MOVE_SPRINT
public static final EntityMovementType MOVE_SPRINT
values
public static EntityMovementType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (EntityMovementType c : EntityMovementType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EntityMovementType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null