From 5c38a831bf0bda271a45f143700b3fea5e6ea7ee Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 13 Jun 2013 06:13:56 +0000 Subject: cItemGrid: Added IsSlotEmpty() functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1585 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ItemGrid.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/ItemGrid.h') diff --git a/source/ItemGrid.h b/source/ItemGrid.h index 72b7d3b03..6b2713c45 100644 --- a/source/ItemGrid.h +++ b/source/ItemGrid.h @@ -62,6 +62,12 @@ public: void EmptySlot(int a_X, int a_Y); void EmptySlot(int a_SlotNum); + /// Returns true if the specified slot is empty or the slot doesn't exist + bool IsSlotEmpty(int a_SlotNum) const; + + /// Returns true if the specified slot is empty or the slot doesn't exist + bool IsSlotEmpty(int a_X, int a_Y) const; + /// Sets all items as empty void Clear(void); -- cgit v1.2.3