Class PlayerKPAnimationController

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.player.PlayerKPAnimationController

public class PlayerKPAnimationController extends Component
The controller for the player skill animator. This controller locks the player skill animator to overlay the player entity and also uses event listeners to control the animation of the skills overlay.
  • Constructor Details

    • PlayerKPAnimationController

      public PlayerKPAnimationController(Entity playerEntity)
      Creates a player skill animation controller with the joined player entity with which the animation controller overlays.
      Parameters:
      playerEntity - the player entity which the skill animation controller overlays
  • Method Details

    • update

      public void update()
      Updates the skill animator to always be overlaid the player entity
      Overrides:
      update in class Component
    • create

      public void create()
      Initialises all the required animation listeners and triggers the regular (initial) animation
      Overrides:
      create in class Component