Class PlayerAnimationController
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.PlayerAnimationController
Controls player animations by listening to relevant events and
updating the AnimationRenderComponent accordingly.
This component reacts to movement, jumping, sprinting, crouching, dashing, and falling events to play the appropriate animations based on the player's state and direction.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Creates a new animation controller, retrieves the animator component, and registers event listeners for relevant player actions.Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, getPrio, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update