From b4522bf14e2552217611b578b1847298c0ed5ac5 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 26 May 2013 14:34:26 +0000 Subject: ItemGrid: Added the RemoveOneItem() function git-svn-id: http://mc-server.googlecode.com/svn/trunk@1513 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 22d64f076..82898537c 100644 --- a/source/ItemGrid.h +++ b/source/ItemGrid.h @@ -98,6 +98,12 @@ public: */ int ChangeSlotCount(int a_X, int a_Y, int a_AddToCount); + /// Removes one item from the specified slot, and returns it. If the slot was empty, returns an empty item + cItem RemoveOneItem(int a_SlotNum); + + /// Removes one item from the specified slot, and returns it. If the slot was empty, returns an empty item + cItem RemoveOneItem(int a_X, int a_Y); + /// Returns the number of items of type a_Item that are stored int HowManyItems(const cItem & a_Item); -- cgit v1.2.3