Enum Class Levels

java.lang.Object
java.lang.Enum<Levels>
tech.underoaks.coldcase.game.Levels
All Implemented Interfaces:
Serializable, Comparable<Levels>, Constable

public enum Levels extends Enum<Levels>
Enum representing different game levels. Each level has a corresponding map path that is used to load the level's map.
  • Enum Constant Details

    • LEVEL_05

      public static final Levels LEVEL_05
      The first part of the tutorial.
    • LEVEL_06

      public static final Levels LEVEL_06
      The second part of the tutorial.
    • LEVEL_07

      public static final Levels LEVEL_07
      The third part of the tutorial.
    • LEVEL_02

      public static final Levels LEVEL_02
      Easy main level
    • LEVEL_03

      public static final Levels LEVEL_03
      Medium main level
    • LEVEL_04

      public static final Levels LEVEL_04
      Hard main level
  • Method Details

    • values

      public static Levels[] 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 Levels 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
    • getMapPath

      public String getMapPath()
      Gets the filepath of the selected map
      Returns:
      The path as a String