Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public enum MovementState
- Object
- Enum<MovementState>
- MovementState
ImplementsComparable<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 constants
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. |
Methods
public static MovementState[] values() | |
public static MovementState valueOf(String name) |
Inherited methods
Enum constant details
IDLE
IDLEStanding still on the ground.
WALKING
WALKINGWalking.
RUNNING
RUNNINGRunning.
CROUCHING
CROUCHINGCrouched in place.
CRAWLING
CRAWLINGMoving while crouched.
JUMPING
JUMPINGRising after a jump.
FALLING
FALLINGIn the air, going down.
WALL_CLINGING
WALL_CLINGINGSliding down a wall.
DASHING
DASHINGMid dash.
CLIMBING
CLIMBINGOn a ladder.
JETPACKING
JETPACKINGThrust from a jetpack.
GLIDING
GLIDINGGliding.
SWIMMING
SWIMMINGIn water.
GRIPPING
GRIPPINGHanging from a ledge or a grip point.
PUSHING
PUSHINGPushing a block.
HURT
HURTKnocked back after a hit.
DEAD
DEADOut of health.
Method details
values
public static MovementState[] values()valueOf
public static MovementState valueOf(String name)