Package net.sf.freecol.common.model
Enum Player.ColonyValueCategory
- java.lang.Object
-
- java.lang.Enum<Player.ColonyValueCategory>
-
- net.sf.freecol.common.model.Player.ColonyValueCategory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Player.ColonyValueCategory>
- Enclosing class:
- Player
public static enum Player.ColonyValueCategory extends java.lang.Enum<Player.ColonyValueCategory>
Colony value categories.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A_ADJACENT
A_EUROPE
A_FOOD
A_GOODS
A_LEVEL
A_NEARBY
A_OVERRIDE
A_PROD
A_RESOURCE
A_TILE
-
Constructor Summary
Constructors Modifier Constructor Description private
ColonyValueCategory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static Player.ColonyValueCategory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Player.ColonyValueCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A_OVERRIDE
public static final Player.ColonyValueCategory A_OVERRIDE
-
A_PROD
public static final Player.ColonyValueCategory A_PROD
-
A_TILE
public static final Player.ColonyValueCategory A_TILE
-
A_EUROPE
public static final Player.ColonyValueCategory A_EUROPE
-
A_RESOURCE
public static final Player.ColonyValueCategory A_RESOURCE
-
A_ADJACENT
public static final Player.ColonyValueCategory A_ADJACENT
-
A_FOOD
public static final Player.ColonyValueCategory A_FOOD
-
A_LEVEL
public static final Player.ColonyValueCategory A_LEVEL
-
A_NEARBY
public static final Player.ColonyValueCategory A_NEARBY
-
A_GOODS
public static final Player.ColonyValueCategory A_GOODS
-
-
Method Detail
-
values
public static Player.ColonyValueCategory[] 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 (Player.ColonyValueCategory c : Player.ColonyValueCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Player.ColonyValueCategory 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Player.ColonyValueCategory>
-
-