Class GodMode

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

public class GodMode extends Effect
A God Mode effect that grants invulnerability or other cheats. It has infinite duration.
  • Constructor Details

    • GodMode

      public GodMode(Player player)
      Creates a new GodMode effect.
      Parameters:
      player - The player to apply god mode 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