summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/inventory.h b/src/inventory.h
index ce537f34..f0d3e4d7 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -26,7 +26,7 @@
class Item;
-#define INVENTORY_SIZE 100
+#define INVENTORY_SIZE 50
class Inventory
{
@@ -62,6 +62,11 @@ class Inventory
void removeItem(int id);
/**
+ * Remove a item from the inventory, specified by the index.
+ */
+ void removeItemIndex(int index);
+
+ /**
* Checks if the given item is in the inventory
*/
bool contains(Item *item);
@@ -86,6 +91,7 @@ class Inventory
*/
int getLastUsedSlot();
+ static const int NO_SLOT_INDEX = -1; /**< Slot has no index. */
protected:
Item *mItems; /**< The holder of items */
};