rl.common.game.elements
Enum ShipClass

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

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


Enum Constant Summary
BATTLESHIP
           
CORVETTE
           
CRUISER
           
DESTROYER
           
ESCORT
           
FRIGATE
           
GUNBOAT
           
UNKNOWN
           
 
Method Summary
 int apMassPerPoint()
           
 int armourHeight()
           
 int armourWidth()
           
 int bayFactorLimit()
           
 int bayFactorTotalLimit()
           
 int bayLimit()
           
static ShipClass fromPowerRating(int rating)
           
static ShipClass fromString(java.lang.String name)
           
 int hexLength()
           
 int internalHeight()
           
 int internalWidth()
           
 int maxAPPerSide()
           
 int shieldFactors()
           
 int thrust()
           
 java.lang.String toString()
           
static ShipClass valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ShipClass[] 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

UNKNOWN

public static final ShipClass UNKNOWN

GUNBOAT

public static final ShipClass GUNBOAT

CORVETTE

public static final ShipClass CORVETTE

ESCORT

public static final ShipClass ESCORT

DESTROYER

public static final ShipClass DESTROYER

FRIGATE

public static final ShipClass FRIGATE

CRUISER

public static final ShipClass CRUISER

BATTLESHIP

public static final ShipClass BATTLESHIP
Method Detail

values

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

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

valueOf

public static ShipClass 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ShipClass>

fromString

public static ShipClass fromString(java.lang.String name)

fromPowerRating

public static ShipClass fromPowerRating(int rating)

internalWidth

public int internalWidth()

internalHeight

public int internalHeight()

armourWidth

public int armourWidth()

armourHeight

public int armourHeight()

hexLength

public int hexLength()

maxAPPerSide

public int maxAPPerSide()

apMassPerPoint

public int apMassPerPoint()

bayLimit

public int bayLimit()

bayFactorLimit

public int bayFactorLimit()

bayFactorTotalLimit

public int bayFactorTotalLimit()

shieldFactors

public int shieldFactors()

thrust

public int thrust()