Class PlayerAnimationController
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.PlayerAnimationController
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Creates the player animation controller Adds listeners for walk cycle animations Adds listeners for ingredient animationsvoid
updateAnimation
(String atlasPath) Updates player animation to use given atlas, removes and reloads walk cycleMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
PlayerAnimationController
public PlayerAnimationController()
-
-
Method Details
-
create
public void create()Creates the player animation controller Adds listeners for walk cycle animations Adds listeners for ingredient animations -
updateAnimation
Updates player animation to use given atlas, removes and reloads walk cycle- Parameters:
atlasPath
- new atlas to update player animation with
-