Class Foods.Carrot
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.Carrot
- Enclosing class:
Foods
Carrot 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
ConstructorsConstructorDescriptionCarrot
(int quantity) Constructs a Carrot 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
-
Carrot
public Carrot(int quantity) Constructs a Carrot class with while assigning fields with set values.
-