Package net.sf.freecol.common.model
Enum HighScore.ScoreLevel
- java.lang.Object
-
- java.lang.Enum<HighScore.ScoreLevel>
-
- net.sf.freecol.common.model.HighScore.ScoreLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HighScore.ScoreLevel>
- Enclosing class:
- HighScore
public static enum HighScore.ScoreLevel extends java.lang.Enum<HighScore.ScoreLevel>
On retirement, an object will be named in honour of the player. The nature of the object depends on the player's score.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIRD_OF_PREY
BLOOD_SUCKING_INSECT
CITY
CONTINENT
COUNTRY
FLOWER
FOUL_SMELLING_PLANT
INFECTIOUS_DISEASE
INSTITUTE
MOUNTAIN_RANGE
PARASITIC_WORM
POISONOUS_PLANT
RIVER
RODENT
SCHOOL
SLIME_MOLD_BEETLE
STATE
STREET
TREE
UNIVERSITY
-
Field Summary
Fields Modifier and Type Field Description private int
minimumScore
-
Constructor Summary
Constructors Modifier Constructor Description private
ScoreLevel(int minimumScore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMinimumScore()
static HighScore.ScoreLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HighScore.ScoreLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINENT
public static final HighScore.ScoreLevel CONTINENT
-
COUNTRY
public static final HighScore.ScoreLevel COUNTRY
-
STATE
public static final HighScore.ScoreLevel STATE
-
CITY
public static final HighScore.ScoreLevel CITY
-
MOUNTAIN_RANGE
public static final HighScore.ScoreLevel MOUNTAIN_RANGE
-
RIVER
public static final HighScore.ScoreLevel RIVER
-
INSTITUTE
public static final HighScore.ScoreLevel INSTITUTE
-
UNIVERSITY
public static final HighScore.ScoreLevel UNIVERSITY
-
STREET
public static final HighScore.ScoreLevel STREET
-
SCHOOL
public static final HighScore.ScoreLevel SCHOOL
-
BIRD_OF_PREY
public static final HighScore.ScoreLevel BIRD_OF_PREY
-
TREE
public static final HighScore.ScoreLevel TREE
-
FLOWER
public static final HighScore.ScoreLevel FLOWER
-
RODENT
public static final HighScore.ScoreLevel RODENT
-
FOUL_SMELLING_PLANT
public static final HighScore.ScoreLevel FOUL_SMELLING_PLANT
-
POISONOUS_PLANT
public static final HighScore.ScoreLevel POISONOUS_PLANT
-
SLIME_MOLD_BEETLE
public static final HighScore.ScoreLevel SLIME_MOLD_BEETLE
-
BLOOD_SUCKING_INSECT
public static final HighScore.ScoreLevel BLOOD_SUCKING_INSECT
-
INFECTIOUS_DISEASE
public static final HighScore.ScoreLevel INFECTIOUS_DISEASE
-
PARASITIC_WORM
public static final HighScore.ScoreLevel PARASITIC_WORM
-
-
Method Detail
-
values
public static HighScore.ScoreLevel[] 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 (HighScore.ScoreLevel c : HighScore.ScoreLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HighScore.ScoreLevel 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
-
getMinimumScore
public int getMinimumScore()
-
-