summaryrefslogtreecommitdiff
path: root/src/itemshortcut.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemshortcut.h')
-rw-r--r--src/itemshortcut.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/itemshortcut.h b/src/itemshortcut.h
index 78fc23558..1121007fa 100644
--- a/src/itemshortcut.h
+++ b/src/itemshortcut.h
@@ -88,6 +88,9 @@ class ItemShortcut final
*/
void setItem(const int index);
+ void setItem(const int index, const int item,
+ const unsigned char color);
+
/**
* Adds an item to the items store specified by the index.
*
@@ -143,6 +146,8 @@ class ItemShortcut final
*/
void unequipItem(const int index) const;
+ void swap(const int index1, const int index2);
+
private:
int mItems[SHORTCUT_ITEMS]; /**< The items. */
unsigned char mItemColors[SHORTCUT_ITEMS]; /**< The item colors. */