Class InvisCooldown

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

public class InvisCooldown extends Effect
A cooldown effect for Invisibility. Prevents the player from becoming invisible again until the duration expires.
  • Constructor Details

    • InvisCooldown

      public InvisCooldown(Player player)
      Creates a new InvisCooldown effect.
      Parameters:
      player - The player to apply the cooldown to.
  • 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