summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 16:05:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 16:05:23 +0300
commitd6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb (patch)
tree440b21fa9ec5ced1e0222ef42c7aa5f24dbfc39c /src/inventory.h
parent3f5c128b889b4cb41f9782fe1531c55e7d07432f (diff)
downloadmanaverse-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.tar.gz
manaverse-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.tar.bz2
manaverse-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.tar.xz
manaverse-d6b7cd3b259512cd28e1b5a82861ef8b11b2b7cb.zip
Use InventoryType for inventory type.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 8438f63d7..e09fbb673 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -47,7 +47,8 @@ class Inventory final
*
* @param size the number of items that fit in the inventory
*/
- explicit Inventory(const int type, const int size = -1);
+ explicit Inventory(const InventoryType::Type type,
+ const int size = -1);
/**
* Destructor.
@@ -148,7 +149,7 @@ class Inventory final
void removeInventoyListener(InventoryListener *const listener);
- int getType() const A_WARN_UNUSED
+ InventoryType::Type getType() const A_WARN_UNUSED
{ return mType; }
bool isMainInventory() const A_WARN_UNUSED
@@ -168,7 +169,7 @@ class Inventory final
void distributeSlotsChangedEvent();
- int mType;
+ InventoryType::Type mType;
unsigned mSize; /**< The max number of inventory items */
Item **mItems; /**< The holder of items */
int mUsed; /**< THe number of slots in use */