diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-28 01:51:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-28 01:51:25 +0300 |
commit | ff936ce120283ade23d88725c7d38542beca0a93 (patch) | |
tree | 5b2d26630c3a0537b0f578994d9ada7653c0cab3 /src/net/gamehandler.h | |
parent | c9b13ba269857de0311863bf4d4461185fe10459 (diff) | |
download | mv-ff936ce120283ade23d88725c7d38542beca0a93.tar.gz mv-ff936ce120283ade23d88725c7d38542beca0a93.tar.bz2 mv-ff936ce120283ade23d88725c7d38542beca0a93.tar.xz mv-ff936ce120283ade23d88725c7d38542beca0a93.zip |
improve gamehandler class
Diffstat (limited to 'src/net/gamehandler.h')
-rw-r--r-- | src/net/gamehandler.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/net/gamehandler.h b/src/net/gamehandler.h index 5826ae09d..89111d241 100644 --- a/src/net/gamehandler.h +++ b/src/net/gamehandler.h @@ -38,27 +38,28 @@ class GameHandler virtual void connect() = 0; - virtual bool isConnected() = 0; + virtual bool isConnected() const = 0; virtual void disconnect() = 0; - virtual void who() = 0; + virtual void who() const = 0; - virtual void quit() = 0; + virtual void quit() const = 0; - virtual void ping(int tick) = 0; + virtual void ping(const int tick) const = 0; virtual bool removeDeadBeings() const = 0; - virtual void disconnect2() = 0; + virtual void disconnect2() const = 0; - /** - * Tells whether the protocol is using the MP status bar - */ virtual bool canUseMagicBar() const A_WARN_UNUSED = 0; virtual bool mustPing() const A_WARN_UNUSED = 0; + virtual void mapLoadedEvent() const = 0; + + virtual void initEngines() const = 0; + virtual void clear() = 0; }; |