Class FireballAttackComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.enemy.FireballAttackComponent

public class FireballAttackComponent extends Component
  • Constructor Details

    • FireballAttackComponent

      public FireballAttackComponent(Entity target, float cooldown, float range, float speed, int damage)
  • Method Details

    • update

      public void update()
      Description copied from class: Component
      Called once per frame of the game, and should be used for most component logic. Not called if component is disabled.
      Overrides:
      update in class Component
    • setAttack

      public void setAttack(boolean attack)