summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemcontainer.h')
-rw-r--r--src/gui/itemcontainer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/itemcontainer.h b/src/gui/itemcontainer.h
index 69e59149..5f7b6cbe 100644
--- a/src/gui/itemcontainer.h
+++ b/src/gui/itemcontainer.h
@@ -35,6 +35,7 @@ struct ITEM_HOLDER { // the holder of a item
int id; // the id of the item
int quantity; // number of items
bool equipment;
+ bool equipped;
};
/**
@@ -80,6 +81,11 @@ class ItemContainer : public gcn::Widget
int getIndex();
/**
+ * Finds the index of an item.
+ */
+ int getIndex(int id);
+
+ /**
* Returns the id of the selected item.
*/
int getId();
@@ -122,6 +128,10 @@ class ItemContainer : public gcn::Widget
void _mouseInputMessage(const gcn::MouseInput &mouseInput);
bool isEquipment(int index);
+
+ bool isEquipped(int index);
+
+ void setEquipped(int index, bool equipped);
};
#endif