1#include "ItemInventory.hh"
5ItemInventory::ItemInventory() =
default;
7ItemInventory::~ItemInventory() =
default;
10void ItemInventory::setItem(ItemId
id) {
11 constexpr int MUSHROOM_COUNT = 3;
14 m_currentCount = MUSHROOM_COUNT;
18void ItemInventory::useItem(
int count) {
19 m_currentCount -= count;
20 if (m_currentCount > 0) {
28void ItemInventory::clear() {
29 m_currentId = ItemId::NONE;
Pertains to item handling.