summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 22:17:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 22:17:15 +0300
commit5e8e53f6e795a84ab5ca6cfe0d08672878044707 (patch)
tree23f5a196c6a288ef52cea2742b02ddbc52b2db61 /src/inventory.h
parent0c063cf5b45a843485fe3343e5fb79a40141f88c (diff)
downloadplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.gz
plus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.bz2
plus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.xz
plus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.zip
Convert InventoryType enum into strong typed.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 311e6c5f0..9ebb3de12 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -57,7 +57,7 @@ class Inventory final
*
* @param size the number of items that fit in the inventory
*/
- explicit Inventory(const InventoryType::Type type,
+ explicit Inventory(const InventoryTypeT type,
const int size = -1);
/**
@@ -159,11 +159,11 @@ class Inventory final
void removeInventoyListener(InventoryListener *const listener);
- InventoryType::Type getType() const A_WARN_UNUSED
+ InventoryTypeT getType() const A_WARN_UNUSED
{ return mType; }
bool isMainInventory() const A_WARN_UNUSED
- { return mType == InventoryType::INVENTORY; }
+ { return mType == InventoryType::Inventory; }
const Item *findItemBySprite(std::string spritePath,
const GenderT gender,
@@ -194,7 +194,7 @@ class Inventory final
void distributeSlotsChangedEvent();
IntMap mVirtualRemove;
- InventoryType::Type mType;
+ InventoryTypeT mType;
unsigned mSize; /**< The max number of inventory items */
Item **mItems; /**< The holder of items */
int mUsed; /**< THe number of slots in use */