Enum Class InfantryMount.BeastSize

java.lang.Object
java.lang.Enum<InfantryMount.BeastSize>
megamek.common.units.InfantryMount.BeastSize
All Implemented Interfaces:
Serializable, Comparable<InfantryMount.BeastSize>, Constable
Enclosing class:
InfantryMount

public static enum InfantryMount.BeastSize extends Enum<InfantryMount.BeastSize>
  • Enum Constant Details

  • Field Details

    • troopsPerCreature

      public final int troopsPerCreature
      Maximum number of troopers that can be mounted on each beast. For values > 2, each creature is a separate squad.
    • creaturesPerPlatoon

      public final int creaturesPerPlatoon
      Maximum number of creatures allowed in a single platoon
    • toHitMod

      public final int toHitMod
      Modifier to attack rolls against the beast-mounted infantry due to size
    • supportWeaponsPerCreature

      public final int supportWeaponsPerCreature
      Maximum number of support weapons allowed per creature. Divide weapon crew needs by 2, rounding up
    • canMakeLegAttacks

      public final boolean canMakeLegAttacks
      Whether the infantry unit is permitted to make anti-mek leg attacks
    • canMakeSwarmAttacks

      public final boolean canMakeSwarmAttacks
      Whether the infantry unit is permitted to make anti-=mek swarm attacks
    • buildingMP

      public final int buildingMP
      Additional MP required to enter a building hex. The building takes twice this much CF damage.
    • height

      public final int height
  • Method Details

    • values

      public static InfantryMount.BeastSize[] 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 InfantryMount.BeastSize 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
    • buildingDamage

      public int buildingDamage()
      Returns:
      The amount of CF damage done to a building when entering its hex.
    • displayName

      public String displayName()