com.planet_ink.coffee_mud.Items.interfaces
Enum TechComponent.ShipDir

java.lang.Object
  extended by java.lang.Enum<TechComponent.ShipDir>
      extended by com.planet_ink.coffee_mud.Items.interfaces.TechComponent.ShipDir
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TechComponent.ShipDir>
Enclosing interface:
TechComponent

public static enum TechComponent.ShipDir
extends java.lang.Enum<TechComponent.ShipDir>

The ThrustPort enum is for the different thrust ports, denoting the port, by its direction location.


Enum Constant Summary
AFT
           
DORSEL
           
FORWARD
           
PORT
           
STARBOARD
           
VENTRAL
           
 
Method Summary
 TechComponent.ShipDir opposite()
           
static TechComponent.ShipDir valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TechComponent.ShipDir[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AFT

public static final TechComponent.ShipDir AFT

PORT

public static final TechComponent.ShipDir PORT

VENTRAL

public static final TechComponent.ShipDir VENTRAL

DORSEL

public static final TechComponent.ShipDir DORSEL

STARBOARD

public static final TechComponent.ShipDir STARBOARD

FORWARD

public static final TechComponent.ShipDir FORWARD
Method Detail

values

public static TechComponent.ShipDir[] 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 (TechComponent.ShipDir c : TechComponent.ShipDir.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TechComponent.ShipDir 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

opposite

public final TechComponent.ShipDir opposite()