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

public abstract class AbstractEffect extends Object implements Effect
abstract super class for all effects to encapsulate common attributes here
Author:
madmetzger
  • 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

      public Nature getNature()
    • getModifier

      protected double getModifier()