summaryrefslogtreecommitdiffstats
path: root/src/ItemGrid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ItemGrid.h')
-rw-r--r--src/ItemGrid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ItemGrid.h b/src/ItemGrid.h
index a346c9c8d..e744afd87 100644
--- a/src/ItemGrid.h
+++ b/src/ItemGrid.h
@@ -162,6 +162,12 @@ public:
// tolua_end
+ /** Returns true if slot coordinates lie within the grid. */
+ bool IsValidSlotCoords(int a_X, int a_Y) const;
+
+ /** Returns true if slot number is within the grid. */
+ bool IsValidSlotNum(int a_SlotNum) const;
+
/** Generates random loot from the specified loot probability table, with a chance of enchanted books added.
A total of a_NumSlots are taken by the loot.
Cannot export to Lua due to raw array a_LootProbabs. TODO: Make this exportable / export through ManualBindings.cpp with a Lua table as LootProbabs