summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-09-14 06:45:40 -0600
committerJared Adams <jaxad0127@gmail.com>2009-09-14 06:45:40 -0600
commit96ca40bdc307be0a527d1c98edffdb1bc4c85f8f (patch)
tree6cbf7f82374c5a82fe44a33c39165adf38cb668e /src/item.h
parentc5e7ba2e373466fcbe884c1579acd6ea5a8f5222 (diff)
downloadmana-client-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.gz
mana-client-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.bz2
mana-client-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.tar.xz
mana-client-96ca40bdc307be0a527d1c98edffdb1bc4c85f8f.zip
Fix context menu for items in the EquipmentWindow
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index 0e27aa4c..56995eb6 100644
--- a/src/item.h
+++ b/src/item.h
@@ -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. */
};