Enum Class PresetSnapshot.Difficulty
java.lang.Object
java.lang.Enum<PresetSnapshot.Difficulty>
dev.despical.mazeengine.api.model.PresetSnapshot.Difficulty
- All Implemented Interfaces:
Serializable, Comparable<PresetSnapshot.Difficulty>, Constable
- Enclosing class:
PresetSnapshot
Provides the challenge label assigned by the preset author.
Difficulty is display metadata. It is not computed from route length, dead ends, or a solver's measured effort.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PresetSnapshot.DifficultyReturns the enum constant of this class with the specified name.static PresetSnapshot.Difficulty[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EASY
Labels the preset as an easy challenge.The label is selected by the preset author and does not enforce particular grid dimensions or generation biases.
-
MEDIUM
Labels the preset as a moderate challenge.Use the geometry and generation metadata alongside this label when presenting the preset to players.
-
HARD
Labels the preset as a hard challenge.This label is descriptive; the API does not verify a minimum route length or number of dead ends.
-
-
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
-