Class CookAnimator

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

public class CookAnimator extends WalkAnimator
Animations specific to the cooks.
  • Constructor Details

    • CookAnimator

      CookAnimator()
  • 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.