rl.common.game.elements
Enum ShipSide
java.lang.Object
java.lang.Enum<ShipSide>
rl.common.game.elements.ShipSide
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ShipSide>
public enum ShipSide
- extends java.lang.Enum<ShipSide>
| 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 |
FORWARD
public static final ShipSide FORWARD
FORWARDLEFT
public static final ShipSide FORWARDLEFT
FORWARDRIGHT
public static final ShipSide FORWARDRIGHT
AFTLEFT
public static final ShipSide AFTLEFT
AFTRIGHT
public static final ShipSide AFTRIGHT
AFT
public static final ShipSide AFT
values
public static ShipSide[] 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 (ShipSide c : ShipSide.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ShipSide 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
fromString
public static ShipSide fromString(java.lang.String name)
getRolledSide
public static ShipSide getRolledSide(ShipSide side)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<ShipSide>
heading
public java.lang.String heading()