diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-11 00:20:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-11 00:20:57 +0300 |
commit | 067410031057ffc9bdb36b976bc2a658b23acb1b (patch) | |
tree | ca60538b0a1aef7aabcd2d89250efe98961e85cb /src/item.h | |
parent | 7d9f6bd3984c423b89a9f564342cde74f378f8c9 (diff) | |
download | manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.tar.gz manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.tar.bz2 manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.tar.xz manaplus-067410031057ffc9bdb36b976bc2a658b23acb1b.zip |
Add typed bool type Favorite.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/item.h b/src/item.h index 011a0da39..cd423ccf8 100644 --- a/src/item.h +++ b/src/item.h @@ -51,7 +51,7 @@ class Item notfinal const uint8_t color, const Identified identified, const Damaged damaged, - const bool favorite, + const Favorite favorite, const bool equipment, const bool equipped); @@ -188,10 +188,10 @@ class Item notfinal Damaged getDamaged() const A_WARN_UNUSED { return mDamaged; } - void setFavorite(const bool b) + void setFavorite(const Favorite b) { mFavorite = b; } - bool getFavorite() const A_WARN_UNUSED + Favorite getFavorite() const A_WARN_UNUSED { return mFavorite; } void setCard(const int index, const int id); @@ -226,7 +226,7 @@ class Item notfinal bool mInEquipment; /**< Item is in equipment */ Identified mIdentified; Damaged mDamaged; - bool mFavorite; + Favorite mFavorite; }; #endif // ITEM_H |