public static enum ShipAPI.HullSize extends java.lang.Enum<ShipAPI.HullSize>
| Enum Constant and Description |
|---|
CAPITAL_SHIP |
CRUISER |
DEFAULT |
DESTROYER |
FIGHTER |
FRIGATE |
| Modifier and Type | Method and Description |
|---|---|
ShipAPI.HullSize |
larger() |
ShipAPI.HullSize |
smaller(boolean allowFighter) |
static ShipAPI.HullSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShipAPI.HullSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShipAPI.HullSize DEFAULT
public static final ShipAPI.HullSize FIGHTER
public static final ShipAPI.HullSize FRIGATE
public static final ShipAPI.HullSize DESTROYER
public static final ShipAPI.HullSize CRUISER
public static final ShipAPI.HullSize CAPITAL_SHIP
public static ShipAPI.HullSize[] values()
for (ShipAPI.HullSize c : ShipAPI.HullSize.values()) System.out.println(c);
public static ShipAPI.HullSize 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 ShipAPI.HullSize smaller(boolean allowFighter)
public ShipAPI.HullSize larger()