From a0c7d1f61783e77e552896824855377e4bb43f8d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 5 Apr 2009 19:17:33 -0600 Subject: Implement TMWServ's NpcHandler --- src/net/tmwserv/npchandler.h | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'src/net/tmwserv/npchandler.h') diff --git a/src/net/tmwserv/npchandler.h b/src/net/tmwserv/npchandler.h index c8ad738b..2c405e16 100644 --- a/src/net/tmwserv/npchandler.h +++ b/src/net/tmwserv/npchandler.h @@ -23,13 +23,45 @@ #define NET_TMWSERV_NPCHANDLER_H #include "net/messagehandler.h" +#include "net/npchandler.h" -class NpcHandler : public MessageHandler +namespace TmwServ { + +class NpcHandler : public MessageHandler, public Net::NpcHandler { public: NpcHandler(); void handleMessage(MessageIn &msg); + + void talk(int npcId); + + void nextDialog(int npcId); + + void closeDialog(int npcId); + + void listInput(int npcId, int value); + + void integerInput(int npcId, int value); + + void stringInput(int npcId, const std::string &value); + + void sendLetter(int npcId, const std::string &recipient, + const std::string &text); + + void startShopping(int beingId); + + void buy(int beingId); + + void sell(int beingId); + + void buyItem(int beingId, int itemId, int amount); + + void sellItem(int beingId, int itemId, int amount); + + void endShopping(int beingId); }; +} // namespace TmwServ + #endif -- cgit v1.2.3-70-g09d2