summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 14:54:43 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 15:02:59 +0200
commitd20b79683997990a1b46ac8d4117f9195aa278f2 (patch)
tree8566fe6cd224003100be35743645c948536f26e8 /src/net/ea/chathandler.h
parent128f908908b77b242b749b27879ba2a9f70a94f6 (diff)
downloadMana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz
Mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2
Mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz
Mana-d20b79683997990a1b46ac8d4117f9195aa278f2.zip
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations * Renamed NPCHandler to NpcHandler * Renamed InvyHandler to InventoryHandler * Made all *Handler interface methods pure virtual * Used forward declarations in net.h * Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/net/ea/chathandler.h')
-rw-r--r--src/net/ea/chathandler.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h
index 99c580dd..6ca71b80 100644
--- a/src/net/ea/chathandler.h
+++ b/src/net/ea/chathandler.h
@@ -22,6 +22,7 @@
#ifndef NET_EA_CHATHANDLER_H
#define NET_EA_CHATHANDLER_H
+#include "net/chathandler.h"
#include "net/messagehandler.h"
#include "net/net.h"
@@ -30,30 +31,30 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler
public:
ChatHandler();
- virtual void handleMessage(MessageIn &msg);
+ void handleMessage(MessageIn &msg);
- virtual void talk(const std::string &text);
+ void talk(const std::string &text);
- virtual void me(const std::string &text);
+ void me(const std::string &text);
- virtual void privateMessage(const std::string &recipient,
+ void privateMessage(const std::string &recipient,
const std::string &text);
- virtual void channelList();
+ void channelList();
- virtual void enterChannel(int channelId, const std::string &password);
+ void enterChannel(int channelId, const std::string &password);
- virtual void quitChannel(int channelId);
+ void quitChannel(int channelId);
- virtual void sendToChannel(int channelId, const std::string &text);
+ void sendToChannel(int channelId, const std::string &text);
- virtual void userList(int channelId);
+ void userList(int channelId);
- virtual void setChannelTopic(int channelId, const std::string &text);
+ void setChannelTopic(int channelId, const std::string &text);
- virtual void setUserMode(int channelId, const std::string &name, int mode);
+ void setUserMode(int channelId, const std::string &name, int mode);
- virtual void kickUser(int channelId, const std::string &name);
+ void kickUser(int channelId, const std::string &name);
};
extern ChatHandler *chatHandler;