jfreerails.world.terrain
Enum TerrainType.Category

java.lang.Object
  extended by java.lang.Enum<TerrainType.Category>
      extended by jfreerails.world.terrain.TerrainType.Category
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TerrainType.Category>, FreerailsSerializable
Enclosing interface:
TerrainType

public static enum TerrainType.Category
extends java.lang.Enum<TerrainType.Category>
implements FreerailsSerializable


Enum Constant Summary
Country
           
Hill
           
Industry
           
Ocean
           
Resource
           
River
           
Special
           
Urban
           
 
Method Summary
static TerrainType.Category valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TerrainType.Category[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Urban

public static final TerrainType.Category Urban

River

public static final TerrainType.Category River

Ocean

public static final TerrainType.Category Ocean

Hill

public static final TerrainType.Category Hill

Country

public static final TerrainType.Category Country

Special

public static final TerrainType.Category Special

Industry

public static final TerrainType.Category Industry

Resource

public static final TerrainType.Category Resource
Method Detail

values

public static final TerrainType.Category[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TerrainType.Category c : TerrainType.Category.values())
        System.out.println(c);

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

valueOf

public static TerrainType.Category 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