Class WaterSpiralAnimationController

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

public class WaterSpiralAnimationController extends Component
This class listens to events relevant to the Water Spiral projectile's movement and plays the corresponding animation when the event is triggered. The water spiral is an attack or projectile used by certain entities, and the animation plays as the projectile moves.
  • Constructor Details

    • WaterSpiralAnimationController

      public WaterSpiralAnimationController()
  • Method Details

    • create

      public void create()
      Called when the component is created. This method retrieves the AnimationRenderComponent and sets up an event listener for the water spiral's movement to trigger its animation.
      Overrides:
      create in class Component