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
ConstructorsConstructorDescriptionHealingEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier) Creates a newHealingEffect. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplies the effectvoidonTurnReached(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:Effectapplies the effect -
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-