diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-11-12 20:58:30 -0500 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-11-12 21:16:08 -0500 |
commit | 009cfa4b2959bf89370e9d271f2244ef5446f3a0 (patch) | |
tree | 88f9185140a636b8c6fc3badfdec55cfee826290 /src/net/manaserv/npchandler.h | |
parent | 9ac7645f10d1e419703bdd35b276ce6e4eaf8152 (diff) | |
download | mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.tar.gz mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.tar.bz2 mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.tar.xz mana-009cfa4b2959bf89370e9d271f2244ef5446f3a0.zip |
Change NPC handling in the net code
Instead of using events to invoke netcode,
invoke netcode directly and have it send events
Reviewed-by: Freeyorp
Diffstat (limited to 'src/net/manaserv/npchandler.h')
-rw-r--r-- | src/net/manaserv/npchandler.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/net/manaserv/npchandler.h b/src/net/manaserv/npchandler.h index 397d3569..cb8fd67d 100644 --- a/src/net/manaserv/npchandler.h +++ b/src/net/manaserv/npchandler.h @@ -32,16 +32,13 @@ namespace ManaServ { -class NpcHandler : public MessageHandler, public Net::NpcHandler, - public Mana::Listener +class NpcHandler : public MessageHandler, public Net::NpcHandler { public: NpcHandler(); void handleMessage(Net::MessageIn &msg); - void event(Channels channel, const Mana::Event &event); - void startShopping(int beingId); void buy(int beingId); @@ -53,6 +50,22 @@ class NpcHandler : public MessageHandler, public Net::NpcHandler, void sellItem(int beingId, int itemId, int amount); void endShopping(int beingId); + + void talk(int npcId); + + void nextDialog(int npcId); + + void closeDialog(int npcId); + + void menuSelect(int npcId, int choice); + + 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); + }; } // namespace ManaServ |