Enum MovementState
- All Implemented Interfaces:
Comparable<MovementState>
What a
Actor is doing this tick, which a renderer maps to an animation
clip (see ActorAnimator) and abilities read to stay out of each other's
way.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOn a ladder.Moving while crouched.Crouched in place.Mid dash.Out of health.In the air, going down.Gliding.Hanging from a ledge or a grip point.Knocked back after a hit.Standing still on the ground.Thrust from a jetpack.Rising after a jump.Pushing a block.Running.In water.Walking.Sliding down a wall. -
Method Summary
Modifier and TypeMethodDescriptionstatic MovementStateReturns the enum constant of this type with the specified name.static MovementState[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
IDLE
Standing still on the ground. -
WALKING
Walking. -
RUNNING
Running. -
CROUCHING
Crouched in place. -
CRAWLING
Moving while crouched. -
JUMPING
Rising after a jump. -
FALLING
In the air, going down. -
WALL_CLINGING
Sliding down a wall. -
DASHING
Mid dash. -
CLIMBING
On a ladder. -
JETPACKING
Thrust from a jetpack. -
GLIDING
Gliding. -
SWIMMING
In water. -
GRIPPING
Hanging from a ledge or a grip point. -
PUSHING
Pushing a block. -
HURT
Knocked back after a hit. -
DEAD
Out of health.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-