public enum GameDifficulty extends java.lang.Enum<GameDifficulty>
Enum Constant and Description |
---|
Easy
Below-average difficulty.
|
Hard
Above-average difficulty.
|
Normal
Average difficulty.
|
Modifier and Type | Method and Description |
---|---|
static GameDifficulty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GameDifficulty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameDifficulty Easy
public static final GameDifficulty Normal
public static final GameDifficulty Hard
public static GameDifficulty[] values()
for (GameDifficulty c : GameDifficulty.values()) System.out.println(c);
public static GameDifficulty valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null