Enum Class Entity.Action.Interaction.ActionType
java.lang.Object
java.lang.Enum<Entity.Action.Interaction.ActionType>
nz.ac.vuw.ecs.swen225.gp22.domain.Entity.Action.Interaction.ActionType
- All Implemented Interfaces:
Serializable
,Comparable<Entity.Action.Interaction.ActionType>
,Constable
- Enclosing class:
- Entity.Action.Interaction
public static enum Entity.Action.Interaction.ActionType
extends Enum<Entity.Action.Interaction.ActionType>
Represents the entity interacting with a tile.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNo interaction with tiles in this action.Key was picked up this action.Treasure was picked up this action.Entity was pinged this action.Door was unlocked with key this action.Exit was unlocked this action. -
Method Summary
Modifier and TypeMethodDescriptionvoid
undo
(Maze.Point pos, ColorableTile.Color undoColor) Undoes an interaction.Returns the enum constant of this class with the specified name.static Entity.Action.Interaction.ActionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
No interaction with tiles in this action. -
PickupKey
Key was picked up this action. -
PickupTreasure
Treasure was picked up this action. -
UnlockDoor
Door was unlocked with key this action. -
UnlockExit
Exit was unlocked this action. -
Pinged
Entity was pinged this action.
-
-
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
-
undo
Undoes an interaction.- Parameters:
pos
- Position of tile to undo.undoColor
- Color of interaction, if any.
-