Enum Class Building

java.lang.Object
java.lang.Enum<Building>
com.deco2800.game.components.building.Building
All Implemented Interfaces:
Serializable, Comparable<Building>, Constable

public enum Building extends Enum<Building>
  • Enum Constant Details

    • TOWNHALL

      public static final Building TOWNHALL
    • BARRACKS

      public static final Building BARRACKS
    • FARM

      public static final Building FARM
    • LIBRARY

      public static final Building LIBRARY
    • BLACKSMITH

      public static final Building BLACKSMITH
    • SHIP

      public static final Building SHIP
    • TITANSHRINE

      public static final Building TITANSHRINE
    • TREBUCHET

      public static final Building TREBUCHET
    • WALL

      public static final Building WALL
    • WALL_NE

      public static final Building WALL_NE
    • GATE_EW

      public static final Building GATE_EW
    • GATE_NS

      public static final Building GATE_NS
    • WALL_SE

      public static final Building WALL_SE
    • CONNECTOR_NS

      public static final Building CONNECTOR_NS
    • CONNECTOR_EW

      public static final Building CONNECTOR_EW
  • Method Details

    • values

      public static Building[] 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 Building 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