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/gamehandler.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/gamehandler.h')
-rw-r--r-- | src/net/gamehandler.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/net/gamehandler.h b/src/net/gamehandler.h index 8d29a55b..9b0c8d95 100644 --- a/src/net/gamehandler.h +++ b/src/net/gamehandler.h @@ -31,16 +31,14 @@ namespace Net { class GameHandler { public: + virtual ~GameHandler() {} + virtual void connect() = 0; virtual bool isConnected() = 0; virtual void disconnect() = 0; - virtual void inGame() = 0; - - virtual void mapLoaded(const std::string &mapName) = 0; - virtual void who() = 0; virtual void quit() = 0; @@ -50,11 +48,9 @@ class GameHandler virtual bool removeDeadBeings() const = 0; /** - * Tells whether the protocol is using the MP statu bar + * Tells whether the protocol is using the MP status bar */ virtual bool canUseMagicBar() const = 0; - - virtual ~GameHandler() {} }; } // namespace Net |