summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-11 12:16:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-11 12:16:03 +0300
commit4a337b7a42d0c92bc2ed26b7e206188dc04c569d (patch)
tree97c59c86246afce0710795c6ba545d40004c6810 /src/item.h
parent067410031057ffc9bdb36b976bc2a658b23acb1b (diff)
downloadmv-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.gz
mv-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.bz2
mv-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.xz
mv-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.zip
Add typed bool type Equipm.
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 cd423ccf8..1581bb993 100644
--- a/src/item.h
+++ b/src/item.h
@@ -52,7 +52,7 @@ class Item notfinal
const Identified identified,
const Damaged damaged,
const Favorite favorite,
- const bool equipment,
+ const Equipm equipment,
const bool equipped);
A_DELETE_COPY(Item)
@@ -100,13 +100,13 @@ class Item notfinal
/**
* Sets whether this item is considered equipment.
*/
- void setEquipment(const bool equipment)
+ void setEquipment(const Equipm equipment)
{ mEquipment = equipment; }
/**
* Returns whether this item is considered equipment.
*/
- bool isEquipment() const A_WARN_UNUSED
+ Equipm isEquipment() const A_WARN_UNUSED
{ return mEquipment; }
/**
@@ -221,7 +221,7 @@ class Item notfinal
uint8_t mRefine; /**< Item refine level. */
int mInvIndex; /**< Inventory index. */
int mType; /**< Item type. */
- bool mEquipment; /**< Item is equipment. */
+ Equipm mEquipment; /**< Item is equipment. */
bool mEquipped; /**< Item is equipped. */
bool mInEquipment; /**< Item is in equipment */
Identified mIdentified;