Package com.csse3200.game.entities
Enum Class HungerEntityType
- All Implemented Interfaces:
Serializable
,Comparable<HungerEntityType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfloat
Getter method for the hunger consumption/production rate of a given entity type.static HungerEntityType
Returns the enum constant of this class with the specified name.static HungerEntityType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
-
TRACTOR
-
PLANT
-
DECAYING_PLANT
-
TILE
-
COW
-
CHICKEN
-
ASTROLOTL
-
OXYGEN_EATER
-
DRAGONFLY
-
BAT
-
ITEM
-
QUESTGIVER
-
QUESTGIVER_INDICATOR
-
CHEST
-
FENCE
-
GATE
-
SPRINKLER
-
PUMP
-
LIGHT
-
SHIP
-
SHIP_DEBRIS
-
SHIP_PART_TILE
-
DUMMY
-
FIRE_FLIES
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getHungerRate
public float getHungerRate()Getter method for the hunger consumption/production rate of a given entity type.- Returns:
- the hourly oxygen rate of the entity type.
-