diff options
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 5 |
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 */ }; |