net.sf.freecol.common.model
Enum Unit.UnitState

java.lang.Object
  extended by java.lang.Enum<Unit.UnitState>
      extended by net.sf.freecol.common.model.Unit.UnitState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Unit.UnitState>
Enclosing class:
Unit

public static enum Unit.UnitState
extends java.lang.Enum<Unit.UnitState>

A state a Unit can have.


Enum Constant Summary
ACTIVE
           
FORTIFIED
           
FORTIFYING
           
IMPROVING
           
IN_COLONY
           
SENTRY
           
SKIPPED
           
TO_AMERICA
           
TO_EUROPE
           
 
Method Summary
static Unit.UnitState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Unit.UnitState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTIVE

public static final Unit.UnitState ACTIVE

FORTIFIED

public static final Unit.UnitState FORTIFIED

SENTRY

public static final Unit.UnitState SENTRY

IN_COLONY

public static final Unit.UnitState IN_COLONY

IMPROVING

public static final Unit.UnitState IMPROVING

TO_EUROPE

public static final Unit.UnitState TO_EUROPE

TO_AMERICA

public static final Unit.UnitState TO_AMERICA

FORTIFYING

public static final Unit.UnitState FORTIFYING

SKIPPED

public static final Unit.UnitState SKIPPED
Method Detail

values

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

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

valueOf

public static Unit.UnitState 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