Items can be picked up

This commit is contained in:
Shoghi Cervantes
2014-05-25 21:57:58 +02:00
parent 03d7127e33
commit 274f972b58
7 changed files with 109 additions and 51 deletions

View File

@ -62,7 +62,7 @@ interface Inventory{
public function setItem($index, Item $item);
/**
* Stores the given Item in the inventory. This will try to fill
* Stores the given Items in the inventory. This will try to fill
* existing stacks and empty slots as well as it can.
*
* Returns the Items that did not fit
@ -73,6 +73,15 @@ interface Inventory{
*/
public function addItem();
/**
* Checks if a given Item can be added to the inventory
*
* @param Item $item
*
* @return bool
*/
public function canAddItem(Item $item);
/**
* Removes the given Item from the inventory.
* It will return the Items that couldn't be removed.