diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-25 13:09:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-25 13:09:04 +0300 |
commit | 90a652e5c672b9a11b165ee939889f406b852ee1 (patch) | |
tree | 4841dff5271783feb53cd2d5164aea4c2ebf69b7 /src/net/adminhandler.h | |
parent | a306ecf96736779b08d1de7ec994d3d741d5dc61 (diff) | |
download | plus-90a652e5c672b9a11b165ee939889f406b852ee1.tar.gz plus-90a652e5c672b9a11b165ee939889f406b852ee1.tar.bz2 plus-90a652e5c672b9a11b165ee939889f406b852ee1.tar.xz plus-90a652e5c672b9a11b165ee939889f406b852ee1.zip |
improve adminhandler class.
Diffstat (limited to 'src/net/adminhandler.h')
-rw-r--r-- | src/net/adminhandler.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index ed8a0bf7e..6b6aac078 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -39,24 +39,25 @@ class AdminHandler virtual void localAnnounce(const std::string &text) = 0; - virtual void hide(bool hide) = 0; + virtual void hide(const bool hide) = 0; - virtual void kick(int playerId) = 0; + virtual void kick(const int playerId) = 0; virtual void kickName(const std::string &name) = 0; - virtual void ban(int playerId) = 0; + virtual void ban(const int playerId) = 0; virtual void banName(const std::string &name) = 0; - virtual void unban(int playerId) = 0; + virtual void unban(const int playerId) = 0; virtual void unbanName(const std::string &name) = 0; - virtual void mute(int playerId, int type, int limit) = 0; + virtual void mute(const int playerId, const int type, + const int limit) = 0; - virtual void warp(std::string map, int x, int y) = 0; - // TODO + virtual void warp(const std::string &map, + const int x, const int y) = 0; }; } // namespace Net |