rl.common.game.elements
Enum ShipSide

java.lang.Object
  extended by java.lang.Enum<ShipSide>
      extended by rl.common.game.elements.ShipSide
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ShipSide>

public enum ShipSide
extends java.lang.Enum<ShipSide>


Enum Constant Summary
AFT
           
AFTLEFT
           
AFTRIGHT
           
FORWARD
           
FORWARDLEFT
           
FORWARDRIGHT
           
 
Method Summary
static ShipSide fromString(java.lang.String name)
           
static ShipSide getRolledSide(ShipSide side)
           
 java.lang.String heading()
           
 java.lang.String toString()
           
static ShipSide valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ShipSide[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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()