Package megamek.common.units
Enum Class EntityMovementMode
- All Implemented Interfaces:
Serializable,Comparable<EntityMovementMode>,Constable
This enum represents the various Entity Movement Types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this movement mode is capable of detonating minefields.static List<EntityMovementMode> Deprecated, for removal: This API element is subject to removal in a future version.static List<EntityMovementMode> Deprecated, for removal: This API element is subject to removal in a future version.booleanbooleanbooleanbooleanisBiped()booleanbooleanbooleanisHover()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisMaglev()booleanisMarine()booleanbooleanisNaval()booleanisNone()booleanisQuad()booleanbooleanisRail()booleanbooleanbooleanbooleanbooleanbooleanbooleanisTrain()booleanisTripod()booleanbooleanisVTOL()booleanbooleanbooleanisWiGE()static EntityMovementModeparseFromString(String text) toString()static EntityMovementModeReturns the enum constant of this class with the specified name.static EntityMovementMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
BIPED
-
TRIPOD
-
QUAD
-
TRACKED
-
WHEELED
-
HOVER
-
VTOL
-
NAVAL
-
HYDROFOIL
-
SUBMARINE
-
INF_LEG
-
INF_MOTORIZED
-
INF_JUMP
-
BIPED_SWIM
-
QUAD_SWIM
-
WIGE
-
AERODYNE
-
SPHEROID
-
INF_UMU
-
AEROSPACE
-
AIRSHIP
-
STATION_KEEPING
-
RAIL
-
MAGLEV
-
-
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
-
isNone
public boolean isNone() -
isBiped
public boolean isBiped() -
isTripod
public boolean isTripod() -
isQuad
public boolean isQuad() -
isTracked
public boolean isTracked() -
isWheeled
public boolean isWheeled() -
isHover
public boolean isHover() -
isVTOL
public boolean isVTOL() -
isHydrofoil
public boolean isHydrofoil() -
isSubmarine
public boolean isSubmarine() -
isLegInfantry
public boolean isLegInfantry() -
isMotorizedInfantry
public boolean isMotorizedInfantry() -
isJumpInfantry
public boolean isJumpInfantry() -
isBipedSwim
public boolean isBipedSwim() -
isQuadSwim
public boolean isQuadSwim() -
isWiGE
public boolean isWiGE() -
isAerodyne
public boolean isAerodyne() -
isSpheroid
public boolean isSpheroid() -
isUMUInfantry
public boolean isUMUInfantry() -
isAerospace
public boolean isAerospace() -
isAirship
public boolean isAirship() -
isStationKeeping
public boolean isStationKeeping() -
isRail
public boolean isRail() -
isMaglev
public boolean isMaglev() -
isTrackedOrWheeled
public boolean isTrackedOrWheeled() -
isTrackedWheeledOrHover
public boolean isTrackedWheeledOrHover() -
isCombatVehicle
public boolean isCombatVehicle() -
isInfantryVehicle
public boolean isInfantryVehicle() -
isHoverOrWiGE
public boolean isHoverOrWiGE() -
isVTOLOrWiGE
public boolean isVTOLOrWiGE() -
isHoverVTOLOrWiGE
public boolean isHoverVTOLOrWiGE() -
isMarine
public boolean isMarine() -
isTrain
public boolean isTrain() -
isJumpOrLegInfantry
public boolean isJumpOrLegInfantry() -
detonatesGroundMinefields
public boolean detonatesGroundMinefields()Whether this movement mode is capable of detonating minefields. -
getCombatVehicleModes
@Deprecated(since="0.51.0", forRemoval=true) public static List<EntityMovementMode> getCombatVehicleModes()Deprecated, for removal: This API element is subject to removal in a future version. -
getInfantryVehicleModes
@Deprecated(since="0.51.0", forRemoval=true) public static List<EntityMovementMode> getInfantryVehicleModes()Deprecated, for removal: This API element is subject to removal in a future version. -
parseFromString
- Parameters:
text- the string to parse- Returns:
- the EntityMovementMode, or NONE if there is an error in parsing
-
toString
- Overrides:
toStringin classEnum<EntityMovementMode>
-