public enum DefenseType extends Enum<DefenseType>
Enum Constant and Description |
---|
ARMOR |
HULL |
PHASE_OR_MISS |
SHIELD |
Modifier and Type | Method and Description |
---|---|
static DefenseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefenseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefenseType HULL
public static final DefenseType ARMOR
public static final DefenseType SHIELD
public static final DefenseType PHASE_OR_MISS
public static DefenseType[] values()
for (DefenseType c : DefenseType.values()) System.out.println(c);
public static DefenseType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null