- 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 Summary
Modifier and Type Method Description booleandecreaseHealth(int amountToReduce)booleandecreaseMana(int amountToReduce)longgetHealthCurrent()longgetHealthMax()intgetManaCurrent()intgetManaMax()default booleanheal()Heals an object to max health/mana.booleanincreaseHealth(int amountToHeal)This should NOT increase an object's maximum health pool.booleanincreaseHealthMax(int amountToIncrease)This INCREASES an object's maximum health pool.booleanincreaseMana(int amountToHeal)This should NOT increase an object's maximum mana pool.booleanincreaseManaMax(int amountToIncrease)This INCREASES an object's maximum mana pool.Methods inherited from interface moe.maple.api.script.model.object.field.FieldedObject
getField, getFieldId, getObjectId, getX, getY
-
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.
-