Enum Class EntityType

java.lang.Object
java.lang.Enum<EntityType>
com.csse3200.game.entities.EntityType
All Implemented Interfaces:
Serializable, Comparable<EntityType>, Constable

public enum EntityType extends Enum<EntityType>
An enum of all the entity types in the game. Feel free to add yours here. Read Documentation for SaveLoad and follow procedure there

Changing order of EntityTypes will cause a failure in ManageHostilesQuestTest as the type order is reliant on the enum class.

  • Enum Constant Details

    • PLAYER

      public static final EntityType PLAYER
    • TRACTOR

      public static final EntityType TRACTOR
    • PLANT

      public static final EntityType PLANT
    • DECAYING_PLANT

      public static final EntityType DECAYING_PLANT
    • TILE

      public static final EntityType TILE
    • COW

      public static final EntityType COW
    • CHICKEN

      public static final EntityType CHICKEN
    • ASTROLOTL

      public static final EntityType ASTROLOTL
    • OXYGEN_EATER

      public static final EntityType OXYGEN_EATER
    • DRAGONFLY

      public static final EntityType DRAGONFLY
    • BAT

      public static final EntityType BAT
    • ITEM

      public static final EntityType ITEM
    • QUESTGIVER

      public static final EntityType QUESTGIVER
    • QUESTGIVER_INDICATOR

      public static final EntityType QUESTGIVER_INDICATOR
    • CHEST

      public static final EntityType CHEST
    • FENCE

      public static final EntityType FENCE
    • GATE

      public static final EntityType GATE
    • SPRINKLER

      public static final EntityType SPRINKLER
    • PUMP

      public static final EntityType PUMP
    • LIGHT

      public static final EntityType LIGHT
    • SHIP

      public static final EntityType SHIP
    • SHIP_DEBRIS

      public static final EntityType SHIP_DEBRIS
    • SHIP_PART_TILE

      public static final EntityType SHIP_PART_TILE
    • SHIP_EATER

      public static final EntityType SHIP_EATER
    • DUMMY

      public static final EntityType DUMMY
    • FIRE_FLIES

      public static final EntityType FIRE_FLIES
    • GOLDEN_STATUE

      public static final EntityType GOLDEN_STATUE
  • Method Details

    • values

      public static EntityType[] 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 EntityType 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
    • getOxygenRate

      public float getOxygenRate()
      Getter method for the oxygen consumption/production rate of a given entity type.
      Returns:
      the hourly oxygen rate of the entity type.
    • getPlaceableCategory

      public PlaceableCategory getPlaceableCategory()
      Getter for the placeableCategory
      Returns:
      this placeableCategory
    • setPlaceableCategory

      public void setPlaceableCategory(PlaceableCategory placeableCategory)
      Setter for the placeableCategory
      Parameters:
      placeableCategory - A category that encompasses the Placeable type.