Package util

Enum Class MazeGenerator.TileType

All Implemented Interfaces:
Serializable, Comparable<MazeGenerator.TileType>, Constable
Enclosing class:
MazeGenerator

public static enum MazeGenerator.TileType extends Enum<MazeGenerator.TileType>
Each tile (i.e. square of the game grid) is either occupied by a wall, a path (accessible to PacMann) or the ghost box (inaccessible to PacMann).
  • Enum Constant Details

  • Constructor Details

    • TileType

      private TileType()
  • Method Details

    • values

      public static MazeGenerator.TileType[] 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 MazeGenerator.TileType 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