Class Freeze

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

public class Freeze extends Effect
A Freeze effect that significantly slows down the player.
  • Constructor Details

    • Freeze

      public Freeze(Player player)
      Creates a new Freeze effect.
      Parameters:
      player - The player to freeze.
  • 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