summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-10 13:44:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-10 22:49:59 +0300
commitf3f7879c48fe8e202c3519cd465225645949167e (patch)
tree898a86c3446d988e86d7c3f160036533bdfd6475 /src/item.h
parent37d7bd3163ad58391df36363b6f0135c638fbeb8 (diff)
downloadmanaplus-f3f7879c48fe8e202c3519cd465225645949167e.tar.gz
manaplus-f3f7879c48fe8e202c3519cd465225645949167e.tar.bz2
manaplus-f3f7879c48fe8e202c3519cd465225645949167e.tar.xz
manaplus-f3f7879c48fe8e202c3519cd465225645949167e.zip
Add typed bool type Identified.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h10
1 files changed, 6 insertions, 4 deletions
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 <map>
@@ -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;
};