Interface LifeObject<T>

All Superinterfaces:
FieldedObject<T>, ScriptObject<T>
All Known Subinterfaces:
MobObject<T>, UserObject<T>

public interface LifeObject<T>
extends FieldedObject<T>
Created on 8/19/2019.
  • Method Details

    • getHealthCurrent

      long getHealthCurrent()
    • getManaCurrent

      int getManaCurrent()
    • getHealthMax

      long getHealthMax()
    • getManaMax

      int getManaMax()
    • increaseHealth

      boolean increaseHealth​(int amountToHeal)
      This should NOT increase an object's maximum health pool. This INCREASES the CURRENT health by an amount. This is a HEAL.
      Returns:
      true if field allows healing/user can be healed.
    • increaseMana

      boolean increaseMana​(int amountToHeal)
      This should NOT increase an object's maximum mana pool. This INCREASES the CURRENT mana by an amount. This is a HEAL.
      Returns:
      true if field allows healing/user can be healed.
    • decreaseHealth

      boolean decreaseHealth​(int amountToReduce)
    • decreaseMana

      boolean decreaseMana​(int amountToReduce)
    • increaseHealthMax

      boolean increaseHealthMax​(int amountToIncrease)
      This INCREASES an object's maximum health pool. This DOES NOT HEAL.
      Returns:
      true if was able to increase
    • increaseManaMax

      boolean increaseManaMax​(int amountToIncrease)
      This INCREASES an object's maximum mana pool. This DOES NOT HEAL.
      Returns:
      true if was able to increase
    • heal

      default boolean heal()
      Heals an object to max health/mana.