diff options
Diffstat (limited to '')
-rw-r--r-- | source/ItemGrid.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/ItemGrid.h b/source/ItemGrid.h index de8be059a..22d64f076 100644 --- a/source/ItemGrid.h +++ b/source/ItemGrid.h @@ -107,12 +107,21 @@ public: /// Returns the index of the first empty slot; -1 if all full
int GetFirstEmptySlot(void) const;
+ /// Returns the index of the first non-empty slot; -1 if all empty
+ int GetFirstUsedSlot(void) const;
+
/// Returns the index of the last empty slot; -1 if all full
int GetLastEmptySlot(void) const;
+ /// Returns the index of the last used slot; -1 if all empty
+ int GetLastUsedSlot(void) const;
+
/// Returns the index of the first empty slot following a_StartFrom (a_StartFrom is not checked)
int GetNextEmptySlot(int a_StartFrom) const;
+ /// Returns the index of the first used slot following a_StartFrom (a_StartFrom is not checked)
+ int GetNextUsedSlot(int a_StartFrom) const;
+
/// Copies the contents into a cItems object; preserves the original a_Items contents
void CopyToItems(cItems & a_Items) const;
|