From f3f7879c48fe8e202c3519cd465225645949167e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Feb 2015 13:44:10 +0300 Subject: Add typed bool type Identified. --- src/item.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 500e784c6..df75729ba 100644 --- a/src/item.h +++ b/src/item.h @@ -23,6 +23,8 @@ #ifndef ITEM_H #define ITEM_H +#include "enums/simpletypes.h" + #include "resources/db/itemdb.h" #include @@ -47,7 +49,7 @@ class Item notfinal const int quantity, const uint8_t refine, const uint8_t color, - const bool identified, + const Identified identified, const bool damaged, const bool favorite, const bool equipment, @@ -174,10 +176,10 @@ class Item notfinal const std::string &getDescription() const A_WARN_UNUSED { return mDescription; } - void setIdentified(const bool b) + void setIdentified(const Identified b) { mIdentified = b; } - bool getIdentified() const A_WARN_UNUSED + Identified getIdentified() const A_WARN_UNUSED { return mIdentified; } void setDamaged(const bool b) @@ -222,7 +224,7 @@ class Item notfinal bool mEquipment; /**< Item is equipment. */ bool mEquipped; /**< Item is equipped. */ bool mInEquipment; /**< Item is in equipment */ - bool mIdentified; + Identified mIdentified; bool mDamaged; bool mFavorite; }; -- cgit v1.2.3-60-g2f50