Interface InventoryViewInterface
- All Superinterfaces:
Alert
- All Known Implementing Classes:
InventoryDisplay
The interface defines all the functions that should be called to update the ui to add or
modify the information of the Inventory
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemView
(String name, String description, boolean isUsable, String quantity) Add this item and its details to the Inventory uivoid
changeItemView
(String name, String description, boolean isUsable, String quantity) Updates the Inventory ui based on changes to this items statusvoid
removeItemView
(String name) Removes the item with the given name of the Inventory ui
-
Method Details
-
removeItemView
Removes the item with the given name of the Inventory ui- Parameters:
name
- the name of the item to be removed
-
addItemView
Add this item and its details to the Inventory ui- Parameters:
name
- the name of the item to adddescription
- the description of the item to addisUsable
- true iff the item can be used by a userquantity
- the number of items of this type in the Inventory
-
changeItemView
Updates the Inventory ui based on changes to this items status- Parameters:
name
- the name of the item to change details aboutdescription
- the description of the itemisUsable
- true iff the item is usablequantity
- the number of items of this type in the Inventory
-