Package megameklab.printing
Enum Class MekChassisArrangement
- All Implemented Interfaces:
Serializable,Comparable<MekChassisArrangement>,Constable
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).
-
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 TypeMethodDescriptionstatic MekChassisArrangementParses 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).printChassis(megamek.common.units.Entity entity) static MekChassisArrangementReturns the enum constant of this class with the specified name.static MekChassisArrangement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLAN_IS
-
IS_CLAN
-
CLAN_ONLY
-
IS_ONLY
-
-
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
-
getDisplayName
- Returns:
- A display name for this ClanIsMekNameArrangement taken from the resources (possibly localised).
-
parse
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
-