Class CookAnimator
java.lang.Object
com.devcharles.piazzapanic.utility.WalkAnimator
com.devcharles.piazzapanic.utility.CookAnimator
Animations specific to the cooks.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.devcharles.piazzapanic.utility.WalkAnimator
WalkAnimator.Direction
-
Field Summary
Fields inherited from class com.devcharles.piazzapanic.utility.WalkAnimator
walkDown, walkLeft, walkRight, walkUp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.g2d.TextureRegion
getFrame
(float rotation, boolean isMoving, float frameTime, int holding) Methods inherited from class com.devcharles.piazzapanic.utility.WalkAnimator
addTextures, rotationToDirection
-
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 classWalkAnimator
- Parameters:
rotation
- box2d body rotationisMoving
- whether the entity is moving or notframeTime
- elapsed time for the animationholding
- how many items the character is holding- Returns:
- A texture region to draw, and a rotation used for rendering the region.
-