24 virtual bool IsFood(
void)
const override
bool IsGameModeCreative(void) const
Returns true if the player is in Creative mode, either explicitly, or by inheriting from current worl...
cInventory & GetInventory(void)
bool RemoveOneEquippedItem(void)
Removes one item out of the currently equipped item stack, returns true if successful,...
~cItemFoodHandler()=default
constexpr cItemFoodHandler(int a_ItemType, FoodInfo a_FoodInfo)
virtual bool EatItem(cPlayer *a_Player, cItem *a_Item) const override
Lets the player eat a selected item.
virtual bool IsFood(void) const override
Indicates if this item is food.
virtual FoodInfo GetFoodInfo(const cItem *a_Item) const override
Returns the FoodInfo for this item.
constexpr cItemHandler(int a_ItemType)
virtual bool EatItem(cPlayer *a_Player, cItem *a_Item) const
Lets the player eat a selected item.