diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-07-18 12:11:39 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-07-18 12:25:37 -0600 |
commit | 060b5d24f824de45342c8ea1bab8fc98c08b369d (patch) | |
tree | 57b304d388277310990775ee5c9bb0f67b7bb7e6 /src/net/tmwa/gamehandler.h | |
parent | 81d8168bb5796ccb1704bcce9f5327c35e55d281 (diff) | |
download | mana-060b5d24f824de45342c8ea1bab8fc98c08b369d.tar.gz mana-060b5d24f824de45342c8ea1bab8fc98c08b369d.tar.bz2 mana-060b5d24f824de45342c8ea1bab8fc98c08b369d.tar.xz mana-060b5d24f824de45342c8ea1bab8fc98c08b369d.zip |
Replace some state-related netcode methods with events
Also move the virtual destructors of the Net handler base classes to
the top of their method lists.
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/net/tmwa/gamehandler.h')
-rw-r--r-- | src/net/tmwa/gamehandler.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h index 101e7972..6bdcbaef 100644 --- a/src/net/tmwa/gamehandler.h +++ b/src/net/tmwa/gamehandler.h @@ -22,6 +22,8 @@ #ifndef NET_TA_MAPHANDLER_H #define NET_TA_MAPHANDLER_H +#include "listener.h" + #include "net/gamehandler.h" #include "net/net.h" #include "net/serverinfo.h" @@ -31,23 +33,22 @@ namespace TmwAthena { -class GameHandler : public MessageHandler, public Net::GameHandler +class GameHandler : public MessageHandler, public Net::GameHandler, + public Mana::Listener { public: GameHandler(); void handleMessage(Net::MessageIn &msg); + void event(const std::string &channel, const Mana::Event &event); + void connect(); bool isConnected(); void disconnect(); - void inGame(); - - void mapLoaded(const std::string &mapName); - void who(); void quit(); @@ -60,7 +61,7 @@ class GameHandler : public MessageHandler, public Net::GameHandler void setMap(const std::string map); - /** The tmwa protocol is making use of the Mp Main status bar. */ + /** The tmwAthena protocol is making use of the MP status bar. */ bool canUseMagicBar() const { return true; } private: |