diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-07-09 22:54:56 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-07-09 22:54:56 +0200 |
commit | b2634bade04186233295894ed47c9698cc708391 (patch) | |
tree | 878a5c7882ab1093ce58f0e0141ede0c4d196744 /src/ItemGrid.h | |
parent | BigFlower fixes (#3826) (diff) | |
download | cuberite-b2634bade04186233295894ed47c9698cc708391.tar cuberite-b2634bade04186233295894ed47c9698cc708391.tar.gz cuberite-b2634bade04186233295894ed47c9698cc708391.tar.bz2 cuberite-b2634bade04186233295894ed47c9698cc708391.tar.lz cuberite-b2634bade04186233295894ed47c9698cc708391.tar.xz cuberite-b2634bade04186233295894ed47c9698cc708391.tar.zst cuberite-b2634bade04186233295894ed47c9698cc708391.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ItemGrid.h | 6 |
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 |