Package com.mg105.entities.items
Class MegaPotion
java.lang.Object
com.mg105.entities.Item
com.mg105.entities.items.MegaPotion
- All Implemented Interfaces:
Consumable
A mega health potion is larger health potion that can be used to heal a character by a greater number of points.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Heals the battleCharacter providedstatic int
Gets the healing points that the mega potion provides to a character.
-
Constructor Details
-
MegaPotion
public MegaPotion()Creates a new instance of mega potion
-
-
Method Details
-
getHealingPoints
public static int getHealingPoints()Gets the healing points that the mega potion provides to a character.- Returns:
- the healing points that this potion has.
-
consume
Heals the battleCharacter provided- Specified by:
consume
in interfaceConsumable
- Parameters:
state
- the state of the gamecharacterName
- the name of the character to use the item on
-