summaryrefslogtreecommitdiff
path: root/src/net/tmwa/buysellhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-19 23:41:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-20 20:50:00 +0300
commit78ab801cc5dfe687718ec7e027c3050bed62a1e9 (patch)
tree064fc82cf6aed1dbcd0a5650b146e74cf23a20a0 /src/net/tmwa/buysellhandler.h
parent2a2155ae3c601fe1f813f9214b1421e4ac634148 (diff)
downloadplus-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.gz
plus-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.bz2
plus-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.xz
plus-78ab801cc5dfe687718ec7e027c3050bed62a1e9.zip
Start separating netcode to functions and moving some code to ea name space
for future usage for different server types. Processed classes: adminhandler, beinghandler, buysellhandler.
Diffstat (limited to 'src/net/tmwa/buysellhandler.h')
-rw-r--r--src/net/tmwa/buysellhandler.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/net/tmwa/buysellhandler.h b/src/net/tmwa/buysellhandler.h
index 09aad0ec2..65067f7e0 100644
--- a/src/net/tmwa/buysellhandler.h
+++ b/src/net/tmwa/buysellhandler.h
@@ -25,34 +25,27 @@
#include "net/buysellhandler.h"
+#include "net/ea/buysellhandler.h"
+
#include "being.h"
#include "net/net.h"
#include "net/tmwa/messagehandler.h"
-class BuyDialog;
-
namespace TmwAthena
{
-class BuySellHandler : public MessageHandler, public Net::BuySellHandler
+class BuySellHandler : public MessageHandler, public Ea::BuySellHandler
{
public:
BuySellHandler();
virtual void handleMessage(Net::MessageIn &msg);
- virtual void requestSellList(std::string nick);
- virtual void requestBuyList(std::string nick);
- virtual void sendBuyRequest(std::string nick, ShopItem* item,
- int amount);
- virtual void sendSellRequest(std::string nick, ShopItem* item,
- int amount);
+ virtual void processNpcBuy(Net::MessageIn &msg);
- private:
- int mNpcId;
- BuyDialog *mBuyDialog;
+ virtual void processNpcSellResponse(Net::MessageIn &msg);
};
} // namespace TmwAthena