summaryrefslogtreecommitdiff
path: root/src/net/adminhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-25 13:09:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-25 13:09:04 +0300
commit90a652e5c672b9a11b165ee939889f406b852ee1 (patch)
tree4841dff5271783feb53cd2d5164aea4c2ebf69b7 /src/net/adminhandler.h
parenta306ecf96736779b08d1de7ec994d3d741d5dc61 (diff)
downloadplus-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.h15
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