Enum Class MekChassisArrangement

java.lang.Object
java.lang.Enum<MekChassisArrangement>
megameklab.printing.MekChassisArrangement
All Implemented Interfaces:
Serializable, Comparable<MekChassisArrangement>, Constable

public enum MekChassisArrangement extends Enum<MekChassisArrangement>
This class represents the different types of arrangement of the chassis names of those Meks that have a Clan and an IS name such as the Mad Cat a.k.a. Timber Wolf. This is used to determine how to print those names on record sheets (but not elsewhere as we might not want this to be dependent on how the record sheets might be at any moment).
  • Enum Constant Details

  • Method Details

    • values

      public static MekChassisArrangement[] 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 MekChassisArrangement 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
    • getDisplayName

      public String getDisplayName()
      Returns:
      A display name for this ClanIsMekNameArrangement taken from the resources (possibly localised).
    • parse

      public static MekChassisArrangement parse(String arrangementName)
      Parses the given String, returning the ClanIsMekNameArrangement fitting the String like the valueOf() method does, but returns CLAN_IS when it can't be parsed (instead of null).
      Parameters:
      arrangementName - A string giving one of the ClanIsMekNameArrangement values
      Returns:
      the MekChassisArrangement parsed from the string or CLAN_IS. Never returns null.
    • printChassis

      public String printChassis(megamek.common.units.Entity entity)