Class CustomerAnimator

java.lang.Object
com.devcharles.piazzapanic.utility.WalkAnimator
com.devcharles.piazzapanic.utility.CustomerAnimator

public class CustomerAnimator extends WalkAnimator
Animations specific to the customers.
  • Constructor Details

    • CustomerAnimator

      public CustomerAnimator()
  • Method Details

    • getFrame

      public com.badlogic.gdx.graphics.g2d.TextureRegion getFrame(float rotation, boolean isMoving, float frameTime, int holding)
      Specified by:
      getFrame in class WalkAnimator
      Parameters:
      rotation - box2d body rotation
      isMoving - whether the entity is moving or not
      frameTime - elapsed time for the animation
      holding - how many items the character is holding
      Returns:
      A texture region to draw, and a rotation used for rendering the region.