From 78e67de6f70aab502a85578264b60493a818b39f Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 31 Mar 2009 21:52:04 -0600 Subject: Make network handler functions virtual --- src/net/adminhandler.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/net/adminhandler.h') diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index df013eb3..c3a029b1 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -25,29 +25,29 @@ #include namespace Net { - class AdminHandler - { - public: - void announce(const std::string &text) {} +class AdminHandler +{ + public: + virtual void announce(const std::string &text) {} - void localAnnounce(const std::string &text) {} + virtual void localAnnounce(const std::string &text) {} - void hide(bool hide) {} + virtual void hide(bool hide) {} - void kick(int playerId) {} + virtual void kick(int playerId) {} - void kick(const std::string &name) {} + virtual void kick(const std::string &name) {} - void ban(int playerId) {} + virtual void ban(int playerId) {} - void ban(const std::string &name) {} + virtual void ban(const std::string &name) {} - void unban(int playerId) {} + virtual void unban(int playerId) {} - void unban(const std::string &name) {} + virtual void unban(const std::string &name) {} - // TODO - }; + // TODO +}; } #endif // ADMINHANDLER_H -- cgit v1.2.3-70-g09d2