Package tech.underoaks.coldcase.game
Enum Class Levels
- All Implemented Interfaces:
Serializable,Comparable<Levels>,Constable
Enum representing different game levels.
Each level has a corresponding map path that is used to load the level's map.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
LEVEL_05
The first part of the tutorial. -
LEVEL_06
The second part of the tutorial. -
LEVEL_07
The third part of the tutorial. -
LEVEL_02
Easy main level -
LEVEL_03
Medium main level -
LEVEL_04
Hard main level
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMapPath
Gets the filepath of the selected map- Returns:
- The path as a String
-