summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-02-11 17:21:55 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-02-11 17:21:55 +0000
commit448fe8430f5f0ae81101fe86d664f98be1a92201 (patch)
tree76737e4447cca1dd24c4e9203a2d2ea674d72a1e /src/gui/itemcontainer.h
parent528ded235f60c349272ecbf428731b2f579ed758 (diff)
downloadmana-448fe8430f5f0ae81101fe86d664f98be1a92201.tar.gz
mana-448fe8430f5f0ae81101fe86d664f98be1a92201.tar.bz2
mana-448fe8430f5f0ae81101fe86d664f98be1a92201.tar.xz
mana-448fe8430f5f0ae81101fe86d664f98be1a92201.zip
Working on equipment
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