Class BossAnimationController

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.npc.BossAnimationController

public class BossAnimationController extends Component
This class listens to events related to the Boss entity's state and plays the appropriate animation when one of the events is triggered. The Boss has animations for wandering and chasing in both the left and right directions.
  • Constructor Details

    • BossAnimationController

      public BossAnimationController()
  • Method Details

    • create

      public void create()
      Called when the component is created. Sets up listeners for the Boss movement events and links them to corresponding animation triggers.
      Overrides:
      create in class Component