Package de.tum.cit.fop.maze.effects
Class Poison
java.lang.Object
de.tum.cit.fop.maze.effects.Effect
de.tum.cit.fop.maze.effects.Poison
A Poison effect that deals damage over time and slows the player.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.tum.cit.fop.maze.effects.Effect
getTimeLeft
-
Constructor Details
-
Poison
Creates a new Poison effect.- Parameters:
player- The player to poison.
-
-
Method Details
-
onStart
public void onStart()Description copied from class:EffectCalled when the effect is first applied. -
onTick
public boolean onTick(float deltaTime) Description copied from class:EffectCalled every frame to update the effect. -
onEnd
public void onEnd()Description copied from class:EffectCalled when the effect expires or is removed.
-