Class Foods.Candy
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.Candy
- Enclosing class:
Foods
Candy class manages the apple 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
ConstructorsConstructorDescriptionCandy
(int quantity) Constructs a Candy class 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
-
Candy
public Candy(int quantity) Constructs a Candy class while assigning fields with set values.
-