Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public static final class ActorAnimator.Track
- Object
- ActorAnimator.Track
One actor’s place in its animation.
Constructors
public Track() |
Methods
public void tick(MovementState s) | Advances one world tick. |
public MovementState getState() | The state being shown. |
public int getTicks() | Ticks spent in the state. |
Inherited methods
Constructor details
Track
public Track()Method details
tick
public void tick(MovementState s)Advances one world tick.
Parameters
sMovementState- the actor’s state this tick
getState
public MovementState getState()The state being shown.
Returns
the state, null before the first tick
getTicks
public int getTicks()Ticks spent in the state.
Returns
the tick count