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

public static enum PresetSnapshot.Difficulty extends Enum<PresetSnapshot.Difficulty>
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.

  • Enum Constant Details

    • EASY

      public static final PresetSnapshot.Difficulty 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

      public static final PresetSnapshot.Difficulty MEDIUM
      Labels the preset as a moderate challenge.

      Use the geometry and generation metadata alongside this label when presenting the preset to players.

    • HARD

      public static final PresetSnapshot.Difficulty 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

      public static PresetSnapshot.Difficulty[] 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

      public static PresetSnapshot.Difficulty valueOf(String name)
      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 name
      NullPointerException - if the argument is null