diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 21:50:02 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 21:50:02 -0600 |
commit | bcc4695387d21f9629ab6f013aadbfe0d238aa6d (patch) | |
tree | 2e095ec94e99e788eb851a37cdf5eae68270424c /src/net/tmwserv/chathandler.h | |
parent | 9078373860729cdf80db8d09cbdee478dc54ec64 (diff) | |
download | mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.gz mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.bz2 mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.xz mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.zip |
Implement TMWServ's Admin-, Chat-, and MapHandlers
Diffstat (limited to 'src/net/tmwserv/chathandler.h')
-rw-r--r-- | src/net/tmwserv/chathandler.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/src/net/tmwserv/chathandler.h b/src/net/tmwserv/chathandler.h index f0604da8..05f5243d 100644 --- a/src/net/tmwserv/chathandler.h +++ b/src/net/tmwserv/chathandler.h @@ -22,9 +22,12 @@ #ifndef NET_TMWSERV_CHATHANDLER_H #define NET_TMWSERV_CHATHANDLER_H +#include "net/chathandler.h" #include "net/messagehandler.h" -class ChatHandler : public MessageHandler +namespace TmwServ { + +class ChatHandler : public MessageHandler, public Net::ChatHandler { public: ChatHandler(); @@ -33,6 +36,30 @@ class ChatHandler : public MessageHandler * Handle the given message appropriately. */ void handleMessage(MessageIn &msg); + + void talk(const std::string &text); + + void me(const std::string &text); + + void privateMessage(const std::string &recipient, + const std::string &text); + + void channelList(); + + void enterChannel(const std::string &channel, + const std::string &password); + + void quitChannel(int channelId); + + void sendToChannel(int channelId, const std::string &text); + + void userList(const std::string &channel); + + void setChannelTopic(int channelId, const std::string &text); + + void setUserMode(int channelId, const std::string &name, int mode); + + void kickUser(int channelId, const std::string &name); private: /** @@ -81,4 +108,6 @@ class ChatHandler : public MessageHandler void handleChannelEvent(MessageIn &msg); }; +} // namespace TmwServ + #endif |