From 5e8e53f6e795a84ab5ca6cfe0d08672878044707 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 22:17:15 +0300 Subject: Convert InventoryType enum into strong typed. --- src/inventory.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/inventory.h') 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 */ -- cgit v1.2.3-70-g09d2