From 0875a6ddfda9ece1af4a818e38be1f99e578c59a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Oct 2014 14:40:14 +0300 Subject: Add to item field favorite. --- src/item.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/item.h') 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. */ -- cgit v1.2.3-60-g2f50