diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-12 19:43:51 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-12 20:07:04 -0600 |
commit | 2293b1c5ef0bb7378140bf73f1fef03a4504bdd2 (patch) | |
tree | b3df7512fd0e48e8b1b3a0ed3cbd6d5e9d149ad2 /src/net/tmwa/npchandler.h | |
parent | 71595e5db41f503f06401c59090748b46e9731f0 (diff) | |
download | mana-2293b1c5ef0bb7378140bf73f1fef03a4504bdd2.tar.gz mana-2293b1c5ef0bb7378140bf73f1fef03a4504bdd2.tar.bz2 mana-2293b1c5ef0bb7378140bf73f1fef03a4504bdd2.tar.xz mana-2293b1c5ef0bb7378140bf73f1fef03a4504bdd2.zip |
Replace most of Net::NpcHandler with events
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/net/tmwa/npchandler.h')
-rw-r--r-- | src/net/tmwa/npchandler.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/net/tmwa/npchandler.h b/src/net/tmwa/npchandler.h index 515f62df..93c9f6ec 100644 --- a/src/net/tmwa/npchandler.h +++ b/src/net/tmwa/npchandler.h @@ -22,7 +22,8 @@ #ifndef NET_TA_NPCHANDLER_H #define NET_TA_NPCHANDLER_H -#include "net/net.h" +#include "listener.h" + #include "net/npchandler.h" #include "net/tmwa/messagehandler.h" @@ -31,27 +32,15 @@ namespace TmwAthena { -class NpcHandler : public MessageHandler, public Net::NpcHandler +class NpcHandler : public MessageHandler, public Net::NpcHandler, + public Mana::Listener { public: NpcHandler(); void handleMessage(Net::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 event(const std::string &channel, const Mana::Event &event); void startShopping(int beingId); |