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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidHeals the battleCharacter providedstatic intGets 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:
 consumein interfaceConsumable- Parameters:
 state- the state of the gamecharacterName- the name of the character to use the item on
 
 -