Class RapidFireEffect

java.lang.Object
com.csse3200.game.effects.Effect
com.csse3200.game.effects.RapidFireEffect

public class RapidFireEffect extends Effect
  • Constructor Details

    • RapidFireEffect

      public RapidFireEffect(float duration)
  • Method Details

    • apply

      public boolean apply(Entity weapon)
      Description copied from class: Effect
      Applies this effect to the given entity.

      Implementations should define what happens when the effect is applied. If the effect cannot be applied (e.g., the entity is missing required components), the method should return false.

      Specified by:
      apply in class Effect
      Parameters:
      weapon - the target entity
      Returns:
      true if the effect was successfully applied, false otherwise
    • update

      public void update(float dt)
    • isActive

      public boolean isActive()