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/tradehandler.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/tradehandler.h')
-rw-r--r-- | src/net/ea/tradehandler.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/net/ea/tradehandler.h b/src/net/ea/tradehandler.h index af7a064f..b6e0fdf8 100644 --- a/src/net/ea/tradehandler.h +++ b/src/net/ea/tradehandler.h @@ -24,29 +24,30 @@ #include "net/messagehandler.h" #include "net/net.h" +#include "net/tradehandler.h" class TradeHandler : public MessageHandler, public Net::TradeHandler { public: TradeHandler(); - virtual void handleMessage(MessageIn &msg); + void handleMessage(MessageIn &msg); - virtual void request(Being *being); + void request(Being *being); - virtual void respond(bool accept); + void respond(bool accept); - virtual void addItem(int slotNum, int amount); + void addItem(int slotNum, int amount); - virtual void removeItem(int slotNum, int amount); + void removeItem(int slotNum, int amount); - virtual void setMoney(int amount); + void setMoney(int amount); - virtual void confirm(); + void confirm(); - virtual void finish(); + void finish(); - virtual void cancel(); + void cancel(); }; extern TradeHandler *tradeHandler; |