Enum Class EnvironmentalComponent.EnvironmentalObstacle
java.lang.Object
java.lang.Enum<EnvironmentalComponent.EnvironmentalObstacle>
com.deco2800.game.components.Environmental.EnvironmentalComponent.EnvironmentalObstacle
- All Implemented Interfaces:
Serializable
,Comparable<EnvironmentalComponent.EnvironmentalObstacle>
,Constable
- Enclosing class:
- EnvironmentalComponent
public static enum EnvironmentalComponent.EnvironmentalObstacle
extends Enum<EnvironmentalComponent.EnvironmentalObstacle>
Enum containing the associate values for the environmental component
An environmental component has:
resourceType: The type of resource
resourceValue: The number of resources to be returned associated with
resource type
E.g A cobweb has resourceValue = 0, speedModifier = 0.6 indicating zero
resources will be given when broken
and when a player walks through it, their speed is reduced by 40%
-
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 TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
-
TREE
-
ROCK
-
SPIKY_BUSH
-
KNOCKBACK_TOWER
-
SPEED_ARTEFACT
-
VINE
-
STONE_PILLAR
-
GEYSER
-
WOODEN_FENCE
-
SHIPWRECK_FRONT
-
SHIPWRECK_BACK
-
SHELL
-
-
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
-