Package com.mg105.entities
Interface Consumable
- All Known Implementing Classes:
HealthPotion
,MegaPotion
,UpgradeToken
public interface Consumable
Consumable is an interface that should only be implemented by items that can be use on a character
Items that are consumable are items that are one time use only
-
Method Summary
-
Method Details
-
consume
This method allow a character to use an item on themselves. It does NOT remove an item from the inventory.- Parameters:
state
- the state of the gamecharacterName
- the name of the character to use the item on
-