summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-14 05:59:52 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-14 05:59:52 +0000
commit0601642d8b3aa2c7aa365e27aa3ef2459553c3fd (patch)
treee2c4a93c3aca4b35b69857b17b722c3260b4c3d1 /src/inventory.h
parent68f069fea3182c6d5720df03f1d63de38f14c31d (diff)
downloadmana-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.tar.gz
mana-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.tar.bz2
mana-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.tar.xz
mana-0601642d8b3aa2c7aa365e27aa3ef2459553c3fd.zip
mantis_id:129 - Inventory Window Slots Added.
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 */
};