diff options
Diffstat (limited to 'src/net/ea/inventoryhandler.h')
-rw-r--r-- | src/net/ea/inventoryhandler.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index 391c13f4..30408dad 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -35,15 +35,19 @@ class InventoryHandler : public MessageHandler, public Net::InventoryHandler void handleMessage(MessageIn &msg); - void equipItem(Item *item); + void equipItem(const Item *item); - void unequipItem(Item *item); + void unequipItem(const Item *item); - void useItem(Item *item); + void useItem(const Item *item); - void dropItem(Item *item, int amount); + void dropItem(const Item *item, int amount); - void splitItem(Item *item, int amount); + bool canSplit(const Item *item); + + void splitItem(const Item *item, int amount); + + void moveItem(int oldIndex, int newIndex); void openStorage(); |