Class Buff

java.lang.Object
de.tum.cit.fop.maze.effects.Effect
de.tum.cit.fop.maze.effects.Buff

public class Buff extends Effect
A Buff effect that increases the player's speed for a duration.
  • Constructor Details

    • Buff

      public Buff(Player player, float duration)
      Creates a new Buff effect.
      Parameters:
      player - The player to apply the buff to.
      duration - The duration of the buff.
  • Method Details

    • onStart

      public void onStart()
      Description copied from class: Effect
      Called when the effect is first applied.
      Specified by:
      onStart in class Effect
    • onEnd

      public void onEnd()
      Description copied from class: Effect
      Called when the effect expires or is removed.
      Specified by:
      onEnd in class Effect