1
0

Clarified RemoveItem()'s comments.

This commit is contained in:
madmaxoft 2014-07-18 23:47:46 +02:00
parent 51b91befbd
commit 13311c700f
2 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,8 @@ public:
*/ */
int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks, bool a_tryToFillEquippedFirst); int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks, bool a_tryToFillEquippedFirst);
/** Remove the specified item with the specified amount from the inventory. Returns the amount from the items were was removed. */ /** Removes the specified item from the inventory, as many as possible, up to a_ItemStack.m_ItemCount.
Returns the number of items that were removed. */
int RemoveItem(const cItem & a_ItemStack); int RemoveItem(const cItem & a_ItemStack);
/** Removes one item out of the currently equipped item stack, returns true if successful, false if empty-handed */ /** Removes one item out of the currently equipped item stack, returns true if successful, false if empty-handed */

View File

@ -97,7 +97,8 @@ public:
*/ */
int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1); int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1);
/** Remove the specified item with the specified amount from the inventory. Returns the amount from the items were was removed. */ /** Removes the specified item from the grid, as many as possible, up to a_ItemStack.m_ItemCount.
Returns the number of items that were removed. */
int RemoveItem(const cItem & a_ItemStack); int RemoveItem(const cItem & a_ItemStack);
/** Adds (or subtracts, if a_AddToCount is negative) to the count of items in the specified slot. /** Adds (or subtracts, if a_AddToCount is negative) to the count of items in the specified slot.