Class PlayerCombatAnimationController
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.player.PlayerCombatAnimationController
The controller for the player combat item animator. This controller locks the player combat item animator
to overlay the player entity and also uses event listeners to control the animation
of the combat item overlay.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerCombatAnimationController
(Entity playerEntity) Creates a player combat item animation controller with the joined player entity with which the animation controller overlays. -
Method Summary
Methods inherited from class com.deco2800.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
Constructor Details
-
PlayerCombatAnimationController
Creates a player combat item animation controller with the joined player entity with which the animation controller overlays.- Parameters:
playerEntity
- the player entity which the combat item animation controller overlays
-
-
Method Details
-
update
public void update()Updates the combat item animator to always be overlaid the player entity -
create
public void create()Initialises all the required animation listeners -
animateHera
public void animateHera()Triggers the hera item animation of the combat item animator.
-