diff options
Diffstat (limited to 'src/net/ea/inventoryhandler.h')
-rw-r--r-- | src/net/ea/inventoryhandler.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index a35021f5..def4285f 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -23,13 +23,29 @@ #define NET_EA_INVENTORYHANDLER_H #include "net/messagehandler.h" +#include "net/net.h" -class InventoryHandler : public MessageHandler +class InventoryHandler : public MessageHandler, public Net::InvyHandler { public: InventoryHandler(); virtual void handleMessage(MessageIn &msg); + + virtual void equipItem(Item *item); + + virtual void unequipItem(Item *item); + + virtual void useItem(Item *item); + + virtual void dropItem(Item *item, int amount); + + virtual void closeStorage(); + + virtual void moveItem(StorageType source, int slot, int amount, + StorageType destination); }; +extern InventoryHandler *invyHandler; + #endif // NET_EA_INVENTORYHANDLER_H |