Class ActorAnimator.Track

java.lang.Object
com.codename1.gaming.platformer.view.ActorAnimator.Track
Enclosing class:
ActorAnimator

public static final class ActorAnimator.Track extends Object
One actor's place in its animation.
  • Constructor Details

    • Track

      public Track()
  • Method Details

    • tick

      public void tick(MovementState s)

      Advances one world tick.

      Parameters
      • s: 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