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/ea/gamehandler.h | |
parent | c9b13ba269857de0311863bf4d4461185fe10459 (diff) | |
download | manaplus-ff936ce120283ade23d88725c7d38542beca0a93.tar.gz manaplus-ff936ce120283ade23d88725c7d38542beca0a93.tar.bz2 manaplus-ff936ce120283ade23d88725c7d38542beca0a93.tar.xz manaplus-ff936ce120283ade23d88725c7d38542beca0a93.zip |
improve gamehandler class
Diffstat (limited to 'src/net/ea/gamehandler.h')
-rw-r--r-- | src/net/ea/gamehandler.h | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/net/ea/gamehandler.h b/src/net/ea/gamehandler.h index c0b4286ce..d6c9cebdc 100644 --- a/src/net/ea/gamehandler.h +++ b/src/net/ea/gamehandler.h @@ -23,8 +23,6 @@ #ifndef NET_EA_GAMEHANDLER_H #define NET_EA_GAMEHANDLER_H -#include "listener.h" - #include "net/gamehandler.h" #include "net/messagein.h" #include "net/net.h" @@ -32,37 +30,34 @@ namespace Ea { -class GameHandler : public Net::GameHandler, public Listener +class GameHandler : public Net::GameHandler { public: GameHandler(); A_DELETE_COPY(GameHandler) - virtual void processEvent(Channels channel, - const DepricatedEvent &event) override; - - virtual void who(); + virtual void who() const override; - virtual bool removeDeadBeings() const A_WARN_UNUSED + virtual bool removeDeadBeings() const override A_WARN_UNUSED { return true; } virtual void setMap(const std::string &map); - virtual bool canUseMagicBar() const A_WARN_UNUSED + virtual bool canUseMagicBar() const override A_WARN_UNUSED { return true; } - virtual void mapLoadedEvent() = 0; + virtual void processMapLogin(Net::MessageIn &msg) const; - virtual void processMapLogin(Net::MessageIn &msg); + virtual void processWhoAnswer(Net::MessageIn &msg) const; - virtual void processWhoAnswer(Net::MessageIn &msg); + virtual void processCharSwitchResponse(Net::MessageIn &msg) const; - virtual void processCharSwitchResponse(Net::MessageIn &msg); + virtual void processMapQuitResponse(Net::MessageIn &msg) const; - virtual void processMapQuitResponse(Net::MessageIn &msg); + virtual void clear() override; - virtual void clear(); + virtual void initEngines() const override; protected: std::string mMap; |