rl.leviathan.game.elements
Enum FighterUnit.Type
java.lang.Object
java.lang.Enum<FighterUnit.Type>
rl.leviathan.game.elements.FighterUnit.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<FighterUnit.Type>
- Enclosing class:
- FighterUnit
public static enum FighterUnit.Type
- extends java.lang.Enum<FighterUnit.Type>
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SQUADRON
public static final FighterUnit.Type SQUADRON
FLIGHT
public static final FighterUnit.Type FLIGHT
GROUP
public static final FighterUnit.Type GROUP
values
public static FighterUnit.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FighterUnit.Type c : FighterUnit.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FighterUnit.Type valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<FighterUnit.Type>
getFighterCompliment
public int getFighterCompliment()
getMovementModifier
public int getMovementModifier()
getArmourRows
public int getArmourRows()
getMaxArmourPoints
public int getMaxArmourPoints()
fromString
public static FighterUnit.Type fromString(java.lang.String name)