A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
ItemInventory.hh
1#pragma once
2
3#include "game/item/ItemId.hh"
4
5namespace Item {
6
9public:
12
14 void setItem(ItemId id);
15 void useItem(int count);
16 void clear();
18
20 [[nodiscard]] ItemId id() const {
21 return m_currentId;
22 }
24
25private:
26 ItemId m_currentId;
27 int m_currentCount;
28};
29
30} // namespace Item
Pertains to item handling.