From b81f22b9ca68675d16fa2263b89d7dd0d179ef45 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Feb 2015 23:26:53 +0300 Subject: Add typed bool type Damaged. --- src/item.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/item.h') 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; }; -- cgit v1.2.3-60-g2f50