50 mItems[shortcut.index] = shortcut.itemId;
Item * findItem(int itemId) const
Searches for the specified item by it's id.
The class which keeps track of the item shortcuts.
void useItem(int index)
Try to use the item specified by the index.
void load()
Load the configuration information.
int mItems[SHORTCUT_ITEMS]
The items stored.
void save()
Save the configuration information.
Represents one or more instances of a certain item type.
void doEvent(Event::Type eventType)
bool isEquipped() const
Returns whether this item is equipped.
int getQuantity() const
Returns the number of items.
bool isEquippable() const
Returns whether this item is equippable.
Config config
Global settings (config.xml)
ItemShortcut * itemShortcut
Inventory * getInventory()
Returns the player's inventory.
std::vector< ItemShortcutEntry > itemShortcuts