Class Invis

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

public class Invis extends Effect
An Invisibility effect that makes the player invisible to enemies.
  • Constructor Details

    • Invis

      public Invis(Player player, float duration)
      Creates a new Invis effect.
      Parameters:
      player - The player to make invisible.
      duration - The duration of invisibility.
  • 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