Class AbstractEffect
java.lang.Object
games.stendhal.server.entity.spell.effect.AbstractEffect
- All Implemented Interfaces:
Effect
- Direct Known Subclasses:
DamageEffect
,HealingEffect
,ModifyAtkEffect
,ModifyBaseHpEffect
,ModifyDefEffect
,ModifySpeedEffect
abstract super class for all effects to encapsulate common attributes here
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionAbstractEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
Create a new AbstractEffect. -
Method Summary
-
Constructor Details
-
AbstractEffect
public AbstractEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)Create a new AbstractEffect.- Parameters:
nature
-amount
-atk
-def
-lifesteal
-rate
-regen
-modifier
-
-
-
Method Details
-
getAtk
protected int getAtk()- Returns:
- the atk
-
getDef
protected int getDef()- Returns:
- the def
-
getLifesteal
protected double getLifesteal()- Returns:
- the lifesteal
-
getRate
protected int getRate()- Returns:
- the rate
-
getRegen
protected int getRegen()- Returns:
- the regen
-
getAmount
protected int getAmount() -
getNature
-
getModifier
protected double getModifier()
-