diff options
Diffstat (limited to 'src/net/inventoryhandler.h')
-rw-r--r-- | src/net/inventoryhandler.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index 73a07710..19060797 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -31,15 +31,19 @@ namespace Net { class InventoryHandler { public: - virtual void equipItem(Item *item) = 0; + virtual void equipItem(const Item *item) = 0; - virtual void unequipItem(Item *item) = 0; + virtual void unequipItem(const Item *item) = 0; - virtual void useItem(Item *item) = 0; + virtual void useItem(const Item *item) = 0; - virtual void dropItem(Item *item, int amount) = 0; + virtual void dropItem(const Item *item, int amount) = 0; - virtual void splitItem(Item *item, int amount) = 0; + virtual bool canSplit(const Item *item) = 0; + + virtual void splitItem(const Item *item, int amount) = 0; + + virtual void moveItem(int oldIndex, int newIndex) = 0; virtual void openStorage() = 0; |