Class Foods.Milk
java.lang.Object
com.csse3200.game.inventory.items.AbstractItem
com.csse3200.game.inventory.items.ConsumableItem
com.csse3200.game.inventory.items.food.AbstractFood
com.csse3200.game.inventory.items.food.Foods.Milk
- Enclosing class:
Foods
Milk class manages the milk fields inherited from AbstractFood
-
Field Summary
Fields inherited from class com.csse3200.game.inventory.items.AbstractItem
description, itemCode, limit, name, onlyCombatItem, onlyMapItem, quantity
-
Constructor Summary
ConstructorsConstructorDescriptionMilk
(int quantity) Constructs a Milk class with while assigning fields with set values. -
Method Summary
Methods inherited from class com.csse3200.game.inventory.items.food.AbstractFood
useItem
Methods inherited from class com.csse3200.game.inventory.items.AbstractItem
add, getDescription, getItemCode, getLimit, getName, getQuantity, getTexturePath, isEmpty, numAddable, onlyCombatItem, onlyMapItem, setDescription, setTexturePath
-
Constructor Details
-
Milk
public Milk(int quantity) Constructs a Milk class with while assigning fields with set values.
-