From 3f5c128b889b4cb41f9782fe1531c55e7d07432f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Jan 2015 15:31:06 +0300 Subject: Move inventory type into separate file. --- src/inventory.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index 42ec86882..8438f63d7 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -23,6 +23,8 @@ #ifndef INVENTORY_H #define INVENTORY_H +#include "enums/inventorytype.h" + #include "enums/being/gender.h" #include @@ -40,17 +42,6 @@ class Inventory final static const int NO_SLOT_INDEX = -1; /**< Slot has no index. */ - enum - { - INVENTORY = 0, - STORAGE, - CART, - TRADE, - NPC, - TYPE_END - }; - - /** * Constructor. * @@ -161,7 +152,7 @@ class Inventory final { return mType; } bool isMainInventory() const A_WARN_UNUSED - { return mType == INVENTORY; } + { return mType == InventoryType::INVENTORY; } const Item *findItemBySprite(std::string spritePath, const Gender::Type gender, -- cgit v1.2.3-70-g09d2