public enum StructureType extends java.lang.Enum<StructureType>
| Enum Constant and Description |
|---|
HQ
Headquarters
|
SETTLEMENT
Settlement
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxHP()
Returns the maximum health points of this type.
|
float |
getOxygenProduction()
Returns the oxygen production of this type.
|
int |
getVisionRange()
Returns the vision range of this type.
|
static StructureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StructureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StructureType HQ
public static final StructureType SETTLEMENT
public static StructureType[] values()
for (StructureType c : StructureType.values()) System.out.println(c);
public static StructureType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getVisionRange()
public int getMaxHP()
public float getOxygenProduction()