diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 23:02:12 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 23:02:12 -0600 |
commit | ea4cfda4712ac31326b64ddf9dff61e448aeed28 (patch) | |
tree | 2bff17828862ebed77d44e65729a2d2944602ba9 /src/net/ea/tradehandler.h | |
parent | 78e67de6f70aab502a85578264b60493a818b39f (diff) | |
download | mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.gz mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.bz2 mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.xz mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.zip |
Implement a few more handlers for eAthena
Party, skill, and trade handlers made for eAthena.
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 |