org.deken.game.input
Enum Action.Behavior
java.lang.Object
java.lang.Enum<Action.Behavior>
org.deken.game.input.Action.Behavior
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Action.Behavior>
- Enclosing class:
- Action
public static enum Action.Behavior
- extends java.lang.Enum<Action.Behavior>
NORMAL: The normal behavior will return true as long as the input (key) is
held down. INITAL_PRESS_ONLY: This behavior will only notify on the
initial press of this action. Holding the key down will not re-fire this
action.
Method Summary |
static Action.Behavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Action.Behavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NORMAL
public static final Action.Behavior NORMAL
INITIAL_PRESS_ONLY
public static final Action.Behavior INITIAL_PRESS_ONLY
values
public static Action.Behavior[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Action.Behavior c : Action.Behavior.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Action.Behavior valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null