Class Dash

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

public class Dash extends Effect
A Dash effect that provides a short burst of speed to the player. It also triggers a dash sound and applies a cooldown.
  • Constructor Details

    • Dash

      public Dash(Player player)
      Creates a new Dash effect.
      Parameters:
      player - The player performing the dash.
  • 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