Package net.sf.freecol.server.ai
Enum ColonyPlan.ProfileType
- java.lang.Object
-
- java.lang.Enum<ColonyPlan.ProfileType>
-
- net.sf.freecol.server.ai.ColonyPlan.ProfileType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ColonyPlan.ProfileType>
- Enclosing class:
- ColonyPlan
private static enum ColonyPlan.ProfileType extends java.lang.Enum<ColonyPlan.ProfileType>
The profile of the colony (a sort of general flavour).
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ProfileType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColonyPlan.ProfileType
getProfileTypeFromSize(int size)
Chooses a suitable profile type given a size of colony.static ColonyPlan.ProfileType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ColonyPlan.ProfileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OUTPOST
public static final ColonyPlan.ProfileType OUTPOST
-
SMALL
public static final ColonyPlan.ProfileType SMALL
-
MEDIUM
public static final ColonyPlan.ProfileType MEDIUM
-
LARGE
public static final ColonyPlan.ProfileType LARGE
-
CAPITAL
public static final ColonyPlan.ProfileType CAPITAL
-
-
Method Detail
-
values
public static ColonyPlan.ProfileType[] 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 (ColonyPlan.ProfileType c : ColonyPlan.ProfileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColonyPlan.ProfileType 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
-
getProfileTypeFromSize
public static ColonyPlan.ProfileType getProfileTypeFromSize(int size)
Chooses a suitable profile type given a size of colony.- Parameters:
size
- A proposed colony size.- Returns:
- The colony profile type.
-
-