12 FoodItem(
int id, std::string name,
int healAmount,
bool isStackable =
false);
Base pure virtual Entity class. Different types of enities inherit this.
Definition: Entity.hpp:17
Represents an item that can be eaten.
Definition: FoodItem.hpp:9
int getHealAmount()
Returns the amount of hp eating this item restores.
Definition: FoodItem.cpp:8
FoodItem(int id, std::string name, int healAmount, bool isStackable=false)
Definition: FoodItem.cpp:4
int healAmountM
Definition: FoodItem.hpp:30
bool use(Entity *user) override
Eats the item.
Definition: FoodItem.cpp:13
Base class for items.
Definition: Item.hpp:13
Definition: ItemReader.hpp:70