diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-09-14 06:45:40 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-09-14 06:45:40 -0600 |
commit | 96ca40bdc307be0a527d1c98edffdb1bc4c85f8f (patch) | |
tree | 6cbf7f82374c5a82fe44a33c39165adf38cb668e /src/item.h | |
parent | c5e7ba2e373466fcbe884c1579acd6ea5a8f5222 (diff) | |
download | mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.gz mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.bz2 mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.xz mana-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.zip |
Fix context menu for items in the EquipmentWindow
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -94,6 +94,16 @@ class Item bool isEquipped() const { return mEquipped; } /** + * Sets whether this item is in equipment. + */ + void setInEquipment(bool inEquipment) { mInEquipment = inEquipment; } + + /** + * Returns whether this item is in equipment. + */ + bool isInEquipment() const { return mInEquipment; } + + /** * Sets the inventory index of this item. */ void setInvIndex(int index) { mInvIndex = index; } @@ -114,6 +124,7 @@ class Item int mQuantity; /**< Number of items. */ bool mEquipment; /**< Item is equipment. */ bool mEquipped; /**< Item is equipped. */ + bool mInEquipment; /**< Item is in equipment */ int mInvIndex; /**< Inventory index. */ }; |