Class HealingEffect
java.lang.Object
games.stendhal.server.entity.spell.effect.AbstractEffect
games.stendhal.server.entity.spell.effect.HealingEffect
- All Implemented Interfaces:
TurnListener
,Effect
Effect for healing a player
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionHealingEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
Creates a newHealingEffect
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applies the effectvoid
onTurnReached(int currentTurn)
This method is called when the turn number is reached.Methods inherited from class games.stendhal.server.entity.spell.effect.AbstractEffect
getAmount, getAtk, getDef, getLifesteal, getModifier, getNature, getRate, getRegen
-
Constructor Details
-
HealingEffect
public HealingEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)Creates a newHealingEffect
.- Parameters:
nature
-amount
-atk
-def
-lifesteal
-rate
-regen
-modifier
-
-
-
Method Details
-
act
Description copied from interface:Effect
applies the effect -
onTurnReached
public void onTurnReached(int currentTurn)Description copied from interface:TurnListener
This method is called when the turn number is reached.- Specified by:
onTurnReached
in interfaceTurnListener
- Parameters:
currentTurn
- current turn number
-