diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-20 11:32:50 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-02-20 11:32:50 +0000 |
commit | 3135c725cc37251943271cd8f939e646c9164259 (patch) | |
tree | 159ae31b1c0518d37f5bb21344fe3c72bf5cc382 /src/gui/itemcontainer.h | |
parent | 54a359f67da79d97df667299ea4d91cef79c08f2 (diff) | |
download | mana-client-3135c725cc37251943271cd8f939e646c9164259.tar.gz mana-client-3135c725cc37251943271cd8f939e646c9164259.tar.bz2 mana-client-3135c725cc37251943271cd8f939e646c9164259.tar.xz mana-client-3135c725cc37251943271cd8f939e646c9164259.zip |
Finally equipment! Sometimes it works :P
Diffstat (limited to 'src/gui/itemcontainer.h')
-rw-r--r-- | src/gui/itemcontainer.h | 10 |
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 |