diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 14:54:43 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 15:02:59 +0200 |
commit | d20b79683997990a1b46ac8d4117f9195aa278f2 (patch) | |
tree | 8566fe6cd224003100be35743645c948536f26e8 /src/net/ea/inventoryhandler.h | |
parent | 128f908908b77b242b749b27879ba2a9f70a94f6 (diff) | |
download | mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2 mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.zip |
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations
* Renamed NPCHandler to NpcHandler
* Renamed InvyHandler to InventoryHandler
* Made all *Handler interface methods pure virtual
* Used forward declarations in net.h
* Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/net/ea/inventoryhandler.h')
-rw-r--r-- | src/net/ea/inventoryhandler.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index def4285f..bfebc9b3 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -22,30 +22,35 @@ #ifndef NET_EA_INVENTORYHANDLER_H #define NET_EA_INVENTORYHANDLER_H +#include "net/inventoryhandler.h" #include "net/messagehandler.h" #include "net/net.h" -class InventoryHandler : public MessageHandler, public Net::InvyHandler +class InventoryHandler : public MessageHandler, public Net::InventoryHandler { public: InventoryHandler(); - virtual void handleMessage(MessageIn &msg); + void handleMessage(MessageIn &msg); - virtual void equipItem(Item *item); + void equipItem(Item *item); - virtual void unequipItem(Item *item); + void unequipItem(Item *item); - virtual void useItem(Item *item); + void useItem(Item *item); - virtual void dropItem(Item *item, int amount); + void dropItem(Item *item, int amount); - virtual void closeStorage(); + void splitItem(Item *item, int amount); - virtual void moveItem(StorageType source, int slot, int amount, - StorageType destination); + void openStorage(); + + void closeStorage(); + + void moveItem(StorageType source, int slot, int amount, + StorageType destination); }; -extern InventoryHandler *invyHandler; +extern InventoryHandler *inventoryHandler; #endif // NET_EA_INVENTORYHANDLER_H |