net.sf.freecol.common.model
Enum HighScore.Level

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

public static enum HighScore.Level
extends java.lang.Enum<HighScore.Level>

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
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
           
 
Method Summary
 int getMinimumScore()
           
static HighScore.Level valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HighScore.Level[] 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

CONTINENT

public static final HighScore.Level CONTINENT

COUNTRY

public static final HighScore.Level COUNTRY

STATE

public static final HighScore.Level STATE

CITY

public static final HighScore.Level CITY

MOUNTAIN_RANGE

public static final HighScore.Level MOUNTAIN_RANGE

RIVER

public static final HighScore.Level RIVER

INSTITUTE

public static final HighScore.Level INSTITUTE

UNIVERSITY

public static final HighScore.Level UNIVERSITY

STREET

public static final HighScore.Level STREET

SCHOOL

public static final HighScore.Level SCHOOL

BIRD_OF_PREY

public static final HighScore.Level BIRD_OF_PREY

TREE

public static final HighScore.Level TREE

FLOWER

public static final HighScore.Level FLOWER

RODENT

public static final HighScore.Level RODENT

FOUL_SMELLING_PLANT

public static final HighScore.Level FOUL_SMELLING_PLANT

POISONOUS_PLANT

public static final HighScore.Level POISONOUS_PLANT

SLIME_MOLD_BEETLE

public static final HighScore.Level SLIME_MOLD_BEETLE

BLOOD_SUCKING_INSECT

public static final HighScore.Level BLOOD_SUCKING_INSECT

INFECTIOUS_DISEASE

public static final HighScore.Level INFECTIOUS_DISEASE

PARASITIC_WORM

public static final HighScore.Level PARASITIC_WORM
Method Detail

values

public static HighScore.Level[] 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.Level c : HighScore.Level.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.Level 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

getMinimumScore

public int getMinimumScore()