diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-10 23:26:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-10 23:26:53 +0300 |
commit | b81f22b9ca68675d16fa2263b89d7dd0d179ef45 (patch) | |
tree | 7a4554927636a77d5233ceffc1814eee1fdd3578 /src/item.h | |
parent | f3f7879c48fe8e202c3519cd465225645949167e (diff) | |
download | manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.tar.gz manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.tar.bz2 manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.tar.xz manaverse-b81f22b9ca68675d16fa2263b89d7dd0d179ef45.zip |
Add typed bool type Damaged.
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 df75729ba..011a0da39 100644 --- a/src/item.h +++ b/src/item.h @@ -50,7 +50,7 @@ class Item notfinal const uint8_t refine, const uint8_t color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite, const bool equipment, const bool equipped); @@ -182,10 +182,10 @@ class Item notfinal Identified getIdentified() const A_WARN_UNUSED { return mIdentified; } - void setDamaged(const bool b) + void setDamaged(const Damaged b) { mDamaged = b; } - bool getDamaged() const A_WARN_UNUSED + Damaged getDamaged() const A_WARN_UNUSED { return mDamaged; } void setFavorite(const bool b) @@ -225,7 +225,7 @@ class Item notfinal bool mEquipped; /**< Item is equipped. */ bool mInEquipment; /**< Item is in equipment */ Identified mIdentified; - bool mDamaged; + Damaged mDamaged; bool mFavorite; }; |