Enum Class DamageType

java.lang.Object
java.lang.Enum<DamageType>
megamek.common.weapons.DamageType
All Implemented Interfaces:
Serializable, Comparable<DamageType>, Constable

public enum DamageType extends Enum<DamageType>
The DamageType enumeration is used for the damageEntity function.
  • Enum Constant Details

    • NONE

      public static final DamageType NONE
    • FRAGMENTATION

      public static final DamageType FRAGMENTATION
    • FLECHETTE

      public static final DamageType FLECHETTE
    • ACID

      public static final DamageType ACID
    • INCENDIARY

      public static final DamageType INCENDIARY
    • INFERNO

      public static final DamageType INFERNO
    • IGNORE_PASSENGER

      public static final DamageType IGNORE_PASSENGER
    • ANTI_TSM

      public static final DamageType ANTI_TSM
    • ANTI_INFANTRY

      public static final DamageType ANTI_INFANTRY
    • NAIL_RIVET

      public static final DamageType NAIL_RIVET
    • NONPENETRATING

      public static final DamageType NONPENETRATING
    • CRASH

      public static final DamageType CRASH
  • Method Details

    • values

      public static DamageType[] 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 DamageType 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