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/generalhandler.h | |
parent | 81d8168bb5796ccb1704bcce9f5327c35e55d281 (diff) | |
download | mana-client-060b5d24f824de45342c8ea1bab8fc98c08b369d.tar.gz mana-client-060b5d24f824de45342c8ea1bab8fc98c08b369d.tar.bz2 mana-client-060b5d24f824de45342c8ea1bab8fc98c08b369d.tar.xz mana-client-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/generalhandler.h')
-rw-r--r-- | src/net/tmwa/generalhandler.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h index d680f215..f7f78759 100644 --- a/src/net/tmwa/generalhandler.h +++ b/src/net/tmwa/generalhandler.h @@ -22,15 +22,17 @@ #ifndef NET_TMWA_GENERALHANDLER_H #define NET_TMWA_GENERALHANDLER_H +#include "listener.h" + #include "net/generalhandler.h" #include "net/net.h" -#include "net/serverinfo.h" #include "net/tmwa/messagehandler.h" namespace TmwAthena { -class GeneralHandler : public MessageHandler, public Net::GeneralHandler +class GeneralHandler : public MessageHandler, public Net::GeneralHandler, + public Mana::Listener { public: GeneralHandler(); @@ -47,13 +49,9 @@ class GeneralHandler : public MessageHandler, public Net::GeneralHandler void flushNetwork(); - void guiWindowsLoaded(); - - void guiWindowsUnloaded(); - void clearHandlers(); - void stateChanged(State oldState, State newState); + void event(const std::string &channel, const Mana::Event &event); protected: MessageHandlerPtr mAdminHandler; |