summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-25 00:34:37 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-25 00:34:37 +0000
commit7d6e21ef0617a6c6ece314641fb431e5a84c44b0 (patch)
treeb92b35844400dd41ed0583b98d74917898ebc5e4 /src/inventory.h
parent720f758a8c6bece45e0d2d42e48bed67167f26c6 (diff)
downloadmana-7d6e21ef0617a6c6ece314641fb431e5a84c44b0.tar.gz
mana-7d6e21ef0617a6c6ece314641fb431e5a84c44b0.tar.bz2
mana-7d6e21ef0617a6c6ece314641fb431e5a84c44b0.tar.xz
mana-7d6e21ef0617a6c6ece314641fb431e5a84c44b0.zip
Added some const qualifiers.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inventory.h b/src/inventory.h
index f0d3e4d7..7a9e6ad2 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -69,12 +69,12 @@ class Inventory
/**
* Checks if the given item is in the inventory
*/
- bool contains(Item *item);
+ bool contains(Item *item) const;
/**
* Returns id of next free slot or -1 if all occupied.
*/
- int getFreeSlot();
+ int getFreeSlot() const;
/**
* Reset all item slots.
@@ -84,12 +84,12 @@ class Inventory
/**
* Get the number of slots filled with an item
*/
- int getNumberOfSlotsUsed();
+ int getNumberOfSlotsUsed() const;
/**
* Returns the index of the last occupied slot or 0 if none occupied.
*/
- int getLastUsedSlot();
+ int getLastUsedSlot() const;
static const int NO_SLOT_INDEX = -1; /**< Slot has no index. */
protected: