Package net.regsirius06.engine.control
Enum Class KeyDefinition.Action
- All Implemented Interfaces:
Serializable,Comparable<KeyDefinition.Action>,Constable
- Enclosing class:
- KeyDefinition
Enumeration of possible actions that can be mapped to keys.
This enum defines all the actions that can be triggered by specific key bindings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAction for moving backward.Action for making a backward choice.Action for making a forward choice.Action for moving forward.Action for getting light.Action for rotating left.Action for toggling the minimap.Action for rotating right.Action for setting light. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyDefinition.ActionReturns the enum constant of this class with the specified name.static KeyDefinition.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORWARD_MOVE
Action for moving forward. -
BACK_MOVE
Action for moving backward. -
LEFT_ROTATION
Action for rotating left. -
RIGHT_ROTATION
Action for rotating right. -
MINIMAP
Action for toggling the minimap. -
GET_LIGHT
Action for getting light. -
SET_LIGHT
Action for setting light. -
CHOICE_FORWARD
Action for making a forward choice. -
CHOICE_BACK
Action for making a backward choice.
-
-
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
-