Package megamek.common.units
Enum Class InfantryMount.BeastSize
- All Implemented Interfaces:
Serializable,Comparable<InfantryMount.BeastSize>,Constable
- Enclosing class:
InfantryMount
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intAdditional MP required to enter a building hex.final booleanWhether the infantry unit is permitted to make anti-mek leg attacksfinal booleanWhether the infantry unit is permitted to make anti-=mek swarm attacksfinal intMaximum number of creatures allowed in a single platoonfinal intfinal intMaximum number of support weapons allowed per creature.final intModifier to attack rolls against the beast-mounted infantry due to sizefinal intMaximum number of troopers that can be mounted on each beast. -
Method Summary
Modifier and TypeMethodDescriptionintstatic InfantryMount.BeastSizeReturns the enum constant of this class with the specified name.static InfantryMount.BeastSize[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LARGE
-
VERY_LARGE
-
MONSTROUS
-
-
Field Details
-
troopsPerCreature
public final int troopsPerCreatureMaximum number of troopers that can be mounted on each beast. For values > 2, each creature is a separate squad. -
creaturesPerPlatoon
public final int creaturesPerPlatoonMaximum number of creatures allowed in a single platoon -
toHitMod
public final int toHitModModifier to attack rolls against the beast-mounted infantry due to size -
supportWeaponsPerCreature
public final int supportWeaponsPerCreatureMaximum number of support weapons allowed per creature. Divide weapon crew needs by 2, rounding up -
canMakeLegAttacks
public final boolean canMakeLegAttacksWhether the infantry unit is permitted to make anti-mek leg attacks -
canMakeSwarmAttacks
public final boolean canMakeSwarmAttacksWhether the infantry unit is permitted to make anti-=mek swarm attacks -
buildingMP
public final int buildingMPAdditional MP required to enter a building hex. The building takes twice this much CF damage. -
height
public final int height
-
-
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
-
buildingDamage
public int buildingDamage()- Returns:
- The amount of CF damage done to a building when entering its hex.
-
displayName
-