diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-21 14:40:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-21 14:40:14 +0300 |
commit | 0875a6ddfda9ece1af4a818e38be1f99e578c59a (patch) | |
tree | 7bef19d2a2f41f090be11dfe5a8af88716e7b21c /src/item.h | |
parent | 40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (diff) | |
download | manaverse-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.gz manaverse-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.bz2 manaverse-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.xz manaverse-0875a6ddfda9ece1af4a818e38be1f99e578c59a.zip |
Add to item field favorite.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 7 |
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. */ |