diff options
Diffstat (limited to 'src/net/ea/tradehandler.h')
-rw-r--r-- | src/net/ea/tradehandler.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/net/ea/tradehandler.h b/src/net/ea/tradehandler.h index 04a3c3e3..af7a064f 100644 --- a/src/net/ea/tradehandler.h +++ b/src/net/ea/tradehandler.h @@ -23,13 +23,32 @@ #define NET_EA_TRADEHANDLER_H #include "net/messagehandler.h" +#include "net/net.h" -class TradeHandler : public MessageHandler +class TradeHandler : public MessageHandler, public Net::TradeHandler { public: TradeHandler(); virtual void handleMessage(MessageIn &msg); + + virtual void request(Being *being); + + virtual void respond(bool accept); + + virtual void addItem(int slotNum, int amount); + + virtual void removeItem(int slotNum, int amount); + + virtual void setMoney(int amount); + + virtual void confirm(); + + virtual void finish(); + + virtual void cancel(); }; +extern TradeHandler *tradeHandler; + #endif // NET_EA_TRADEHANDLER_H |