summaryrefslogtreecommitdiff
path: root/src/net/ea/tradehandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-31 23:02:12 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-31 23:02:12 -0600
commitea4cfda4712ac31326b64ddf9dff61e448aeed28 (patch)
tree2bff17828862ebed77d44e65729a2d2944602ba9 /src/net/ea/tradehandler.h
parent78e67de6f70aab502a85578264b60493a818b39f (diff)
downloadmana-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.h21
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