diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 14:54:43 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 15:02:59 +0200 |
commit | d20b79683997990a1b46ac8d4117f9195aa278f2 (patch) | |
tree | 8566fe6cd224003100be35743645c948536f26e8 /src/net/ea/adminhandler.h | |
parent | 128f908908b77b242b749b27879ba2a9f70a94f6 (diff) | |
download | mana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz mana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2 mana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz mana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.zip |
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations
* Renamed NPCHandler to NpcHandler
* Renamed InvyHandler to InventoryHandler
* Made all *Handler interface methods pure virtual
* Used forward declarations in net.h
* Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/net/ea/adminhandler.h')
-rw-r--r-- | src/net/ea/adminhandler.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/net/ea/adminhandler.h b/src/net/ea/adminhandler.h index ae40e9d7..a7db0113 100644 --- a/src/net/ea/adminhandler.h +++ b/src/net/ea/adminhandler.h @@ -22,6 +22,7 @@ #ifndef NET_EA_ADMINHANDLER_H #define NET_EA_ADMINHANDLER_H +#include "net/adminhandler.h" #include "net/messagehandler.h" #include "net/net.h" @@ -30,27 +31,27 @@ class AdminHandler : public MessageHandler, public Net::AdminHandler public: AdminHandler(); - virtual void handleMessage(MessageIn &msg); + void handleMessage(MessageIn &msg); - virtual void announce(const std::string &text); + void announce(const std::string &text); - virtual void localAnnounce(const std::string &text); + void localAnnounce(const std::string &text); - virtual void hide(bool hide); + void hide(bool hide); - virtual void kick(int playerId); + void kick(int playerId); - virtual void kick(const std::string &name); + void kick(const std::string &name); - virtual void ban(int playerId); + void ban(int playerId); - virtual void ban(const std::string &name); + void ban(const std::string &name); - virtual void unban(int playerId); + void unban(int playerId); - virtual void unban(const std::string &name); + void unban(const std::string &name); - virtual void mute(int playerId, int type, int limit); + void mute(int playerId, int type, int limit); }; extern AdminHandler *adminHandler; |