Class CustomerAnimator
java.lang.Object
com.devcharles.piazzapanic.utility.WalkAnimator
com.devcharles.piazzapanic.utility.CustomerAnimator
Animations specific to the customers.
-
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
-
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 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.
-