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

  1. Object
  2. Enum<MovementState>
  3. 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

IDLEStanding still on the ground.
WALKINGWalking.
RUNNINGRunning.
CROUCHINGCrouched in place.
CRAWLINGMoving while crouched.
JUMPINGRising after a jump.
FALLINGIn the air, going down.
WALL_CLINGINGSliding down a wall.
DASHINGMid dash.
CLIMBINGOn a ladder.
JETPACKINGThrust from a jetpack.
GLIDINGGliding.
SWIMMINGIn water.
GRIPPINGHanging from a ledge or a grip point.
PUSHINGPushing a block.
HURTKnocked back after a hit.
DEADOut of health.

Methods

public static MovementState[] values()
public static MovementState valueOf(String name)

Inherited methods

Enum constant details

IDLE

IDLE
Standing still on the ground.

WALKING

WALKING
Walking.

RUNNING

RUNNING
Running.

CROUCHING

CROUCHING
Crouched in place.

CRAWLING

CRAWLING
Moving while crouched.

JUMPING

JUMPING
Rising after a jump.

FALLING

FALLING
In the air, going down.

WALL_CLINGING

WALL_CLINGING
Sliding down a wall.

DASHING

DASHING
Mid dash.

CLIMBING

CLIMBING
On a ladder.

JETPACKING

JETPACKING
Thrust from a jetpack.

GLIDING

GLIDING
Gliding.

SWIMMING

SWIMMING
In water.

GRIPPING

GRIPPING
Hanging from a ledge or a grip point.

PUSHING

PUSHING
Pushing a block.

HURT

HURT
Knocked back after a hit.

DEAD

DEAD
Out of health.

Method details

values

public static MovementState[] values()

valueOf

public static MovementState valueOf(String name)