summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 01:13:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 01:13:46 +0300
commit76e55447563fae6f8d17f2fd90231c81e0b3f927 (patch)
treefa0b2b5daaa50149329f12b7f47b28901d95cc79 /src/item.h
parent8d12abe6ff4114a04b8fc9549e8f44683fed9e3d (diff)
downloadmanaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.gz
manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.bz2
manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.xz
manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.zip
Add to item field identified.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index be6820d2a..fbc6abac6 100644
--- a/src/item.h
+++ b/src/item.h
@@ -44,6 +44,7 @@ class Item notfinal
const int quantity,
const uint8_t refine,
const uint8_t color,
+ const bool identified,
const bool equipment,
const bool equipped);
@@ -168,6 +169,12 @@ class Item notfinal
const std::string &getDescription() const A_WARN_UNUSED
{ return mDescription; }
+ void setIdentified(const bool b)
+ { mIdentified = b; }
+
+ bool getIdentified() const A_WARN_UNUSED
+ { return mIdentified; }
+
int mId; /**< Item type id. */
unsigned char mColor;
int mQuantity; /**< Number of items. */
@@ -181,6 +188,9 @@ class Item notfinal
bool mEquipment; /**< Item is equipment. */
bool mEquipped; /**< Item is equipped. */
bool mInEquipment; /**< Item is in equipment */
+ bool mIdentified;
+ bool mDamaged;
+ bool mFavorite;
};
#endif // ITEM_H