summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-01 08:18:23 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-01 08:18:23 +0000
commit1a2dc3de03fee33e8d2a52767424498e2019321e (patch)
treebea722900f87fba80fdf4257c9d026ceca27a388 /src/inventory.h
parent15e4760a93edd430053cbad5d638b68593b61bc0 (diff)
downloadmana-1a2dc3de03fee33e8d2a52767424498e2019321e.tar.gz
mana-1a2dc3de03fee33e8d2a52767424498e2019321e.tar.bz2
mana-1a2dc3de03fee33e8d2a52767424498e2019321e.tar.xz
mana-1a2dc3de03fee33e8d2a52767424498e2019321e.zip
Added code to dynamically adjust the itemcontainer size.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h
index f5c47c4f..c31f4fd4 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -88,6 +88,11 @@ class Inventory
*/
int getNumberOfSlotsUsed();
+ /**
+ * Returns the index of the last occupied slot or 0 if none occupied.
+ */
+ int getLastUsedSlot();
+
protected:
Item items[INVENTORY_SIZE]; /**< The holder of items */
};