summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 566ca17c..91bb7d04 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -24,6 +24,8 @@
class Item;
+#define INVENTORY_SIZE 102
+
class Inventory
{
public:
@@ -100,6 +102,11 @@ class Inventory
*/
int getLastUsedSlot() const;
+ /**
+ * Returns the number of slots available in the inventory.
+ */
+ int getInventorySize() const;
+
protected:
Item **mItems; /**< The holder of items */
int mSize; /**< The max number of inventory items */