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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/itemcontainer.h b/src/gui/itemcontainer.h
index 5774feb6..69e59149 100644
--- a/src/gui/itemcontainer.h
+++ b/src/gui/itemcontainer.h
@@ -34,6 +34,7 @@
struct ITEM_HOLDER { // the holder of a item
int id; // the id of the item
int quantity; // number of items
+ bool equipment;
};
/**
@@ -101,7 +102,7 @@ class ItemContainer : public gcn::Widget
/**
* Adds a new item.
*/
- void addItem(int index, int id, int quantity);
+ void addItem(int index, int id, int quantity, bool equipment);
/**
* Remove a item from the inventory.
@@ -119,6 +120,8 @@ class ItemContainer : public gcn::Widget
void increaseQuantity(int index, int quantity);
void _mouseInputMessage(const gcn::MouseInput &mouseInput);
+
+ bool isEquipment(int index);
};
#endif