summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 14:40:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 14:40:14 +0300
commit0875a6ddfda9ece1af4a818e38be1f99e578c59a (patch)
tree7bef19d2a2f41f090be11dfe5a8af88716e7b21c /src/item.h
parent40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (diff)
downloadmanaplus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.gz
manaplus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.bz2
manaplus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.xz
manaplus-0875a6ddfda9ece1af4a818e38be1f99e578c59a.zip
Add to item field favorite.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index b7ef7534b..842e0d79b 100644
--- a/src/item.h
+++ b/src/item.h
@@ -46,6 +46,7 @@ class Item notfinal
const uint8_t color,
const bool identified,
const bool damaged,
+ const bool favorite,
const bool equipment,
const bool equipped);
@@ -182,6 +183,12 @@ class Item notfinal
bool getDamaged() const A_WARN_UNUSED
{ return mDamaged; }
+ void setFavorite(const bool b)
+ { mFavorite = b; }
+
+ bool getFavorite() const A_WARN_UNUSED
+ { return mFavorite; }
+
int mId; /**< Item type id. */
unsigned char mColor;
int mQuantity; /**< Number of items. */