Class WindGustAnimationController

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

public class WindGustAnimationController extends Component
This class listens to events relevant to the Wind Gust projectile's movement and plays the corresponding animation when the event is triggered. The wind gust is an attack or projectile used by certain entities, and the animation plays as the projectile moves.
  • Constructor Details

    • WindGustAnimationController

      public WindGustAnimationController()
  • 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 wind gust's movement to trigger its animation.
      Overrides:
      create in class Component