summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-11 16:23:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-11 16:23:03 +0300
commitae0ade61326aa52df63aeb7742133160b8c78047 (patch)
treeb04c09807058b593949fe634098e73474a58589d /src/item.h
parent4a337b7a42d0c92bc2ed26b7e206188dc04c569d (diff)
downloadplus-ae0ade61326aa52df63aeb7742133160b8c78047.tar.gz
plus-ae0ade61326aa52df63aeb7742133160b8c78047.tar.bz2
plus-ae0ade61326aa52df63aeb7742133160b8c78047.tar.xz
plus-ae0ade61326aa52df63aeb7742133160b8c78047.zip
Add typed bool type Equipped.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/item.h b/src/item.h
index 1581bb993..f5adf31c8 100644
--- a/src/item.h
+++ b/src/item.h
@@ -53,7 +53,7 @@ class Item notfinal
const Damaged damaged,
const Favorite favorite,
const Equipm equipment,
- const bool equipped);
+ const Equipped equipped);
A_DELETE_COPY(Item)
@@ -112,13 +112,13 @@ class Item notfinal
/**
* Sets whether this item is equipped.
*/
- void setEquipped(const bool equipped)
+ void setEquipped(const Equipped equipped)
{ mEquipped = equipped; }
/**
* Returns whether this item is equipped.
*/
- bool isEquipped() const A_WARN_UNUSED
+ Equipped isEquipped() const A_WARN_UNUSED
{ return mEquipped; }
/**
@@ -222,7 +222,7 @@ class Item notfinal
int mInvIndex; /**< Inventory index. */
int mType; /**< Item type. */
Equipm mEquipment; /**< Item is equipment. */
- bool mEquipped; /**< Item is equipped. */
+ Equipped mEquipped; /**< Item is equipped. */
bool mInEquipment; /**< Item is in equipment */
Identified mIdentified;
Damaged mDamaged;