diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
commit | 78e67de6f70aab502a85578264b60493a818b39f (patch) | |
tree | 33e99673a23bd5d08ba116c3f8756cffc5f6779f /src/net/chathandler.h | |
parent | 37432edac65a6b85c7a3414a421f2afd3e67a14e (diff) | |
download | mana-78e67de6f70aab502a85578264b60493a818b39f.tar.gz mana-78e67de6f70aab502a85578264b60493a818b39f.tar.bz2 mana-78e67de6f70aab502a85578264b60493a818b39f.tar.xz mana-78e67de6f70aab502a85578264b60493a818b39f.zip |
Make network handler functions virtual
Diffstat (limited to 'src/net/chathandler.h')
-rw-r--r-- | src/net/chathandler.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/net/chathandler.h b/src/net/chathandler.h index 237ab929..8e32313a 100644 --- a/src/net/chathandler.h +++ b/src/net/chathandler.h @@ -25,32 +25,32 @@ #include <iosfwd> namespace Net { - class ChatHandler - { - public: - void talk(const std::string &text); +class ChatHandler +{ + public: + virtual void talk(const std::string &text) {} - void me(const std::string &text); + virtual void me(const std::string &text) {} - void privateMessage(const std::string &recipient, - const std::string &text); + virtual void privateMessage(const std::string &recipient, + const std::string &text) {} - void channelList() {} + virtual void channelList() {} - void enterChannel(int channelId, const std::string &password) {} + virtual void enterChannel(int channelId, const std::string &password) {} - void quitChannel(int channelId) {} + virtual void quitChannel(int channelId) {} - void sendToChannel(int channelId, const std::string &text) {} + virtual void sendToChannel(int channelId, const std::string &text) {} - void userList(int channelId) {} + virtual void userList(int channelId) {} - void setChannelTopic(int channelId, const std::string &text) {} + virtual void setChannelTopic(int channelId, const std::string &text) {} - void setUserMode(int channelId, const std::string &name, int mode) {} + virtual void setUserMode(int channelId, const std::string &name, int mode) {} - void kickUser(int channelId, const std::string &name) {} - }; + virtual void kickUser(int channelId, const std::string &name) {} +}; } #endif // CHATHANDLER_H |