summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-01 14:13:11 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-01 14:13:11 -0600
commitb987a2806dbcd87a23850901f6f0b86f0801086c (patch)
treee373f4869436f830c2cdeeeaf34a941560ded3fe /src/net/ea/chathandler.h
parent6ef22b50f3d0c2410af5bd2543bedc0b3d692f83 (diff)
downloadmana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.gz
mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.bz2
mana-b987a2806dbcd87a23850901f6f0b86f0801086c.tar.xz
mana-b987a2806dbcd87a23850901f6f0b86f0801086c.zip
Create a few more handlers for eAthena
Map, chat, and admin have been finished (to the degree they handle all existing cases).
Diffstat (limited to 'src/net/ea/chathandler.h')
-rw-r--r--src/net/ea/chathandler.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h
index 93e3e272..99c580dd 100644
--- a/src/net/ea/chathandler.h
+++ b/src/net/ea/chathandler.h
@@ -23,13 +23,39 @@
#define NET_EA_CHATHANDLER_H
#include "net/messagehandler.h"
+#include "net/net.h"
-class ChatHandler : public MessageHandler
+class ChatHandler : public MessageHandler, public Net::ChatHandler
{
public:
ChatHandler();
virtual void handleMessage(MessageIn &msg);
+
+ virtual void talk(const std::string &text);
+
+ virtual void me(const std::string &text);
+
+ virtual void privateMessage(const std::string &recipient,
+ const std::string &text);
+
+ virtual void channelList();
+
+ virtual void enterChannel(int channelId, const std::string &password);
+
+ virtual void quitChannel(int channelId);
+
+ virtual void sendToChannel(int channelId, const std::string &text);
+
+ virtual void userList(int channelId);
+
+ virtual void setChannelTopic(int channelId, const std::string &text);
+
+ virtual void setUserMode(int channelId, const std::string &name, int mode);
+
+ virtual void kickUser(int channelId, const std::string &name);
};
+extern ChatHandler *chatHandler;
+
#endif // NET_EA_CHATHANDLER_H