summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/eathena/chathandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp177
1 files changed, 0 insertions, 177 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 9ef9b5d3b..2721bb3fb 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -44,188 +44,11 @@ namespace EAthena
{
ChatHandler::ChatHandler() :
- MessageHandler(),
Ea::ChatHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_BEING_CHAT,
- SMSG_PLAYER_CHAT,
- SMSG_WHISPER,
- SMSG_WHISPER_RESPONSE,
- SMSG_GM_CHAT,
- SMSG_GM_CHAT2,
- SMSG_MVP_EFFECT,
- SMSG_MVP_ITEM,
- SMSG_MVP_EXP,
- SMSG_MVP_NO_ITEM,
- SMSG_IGNORE_ALL_RESPONSE,
- SMSG_COLOR_MESSAGE,
- SMSG_CHAT_IGNORE_LIST,
- SMSG_FORMAT_MESSAGE,
- SMSG_FORMAT_MESSAGE_NUMBER,
- SMSG_FORMAT_MESSAGE_SKILL,
- SMSG_CHAT_DISPLAY,
- SMSG_CHAT_ROOM_JOIN_ACK,
- SMSG_CHAT_ROOM_LEAVE,
- SMSG_CHAT_JOIN_CHANNEL,
- SMSG_IGNORE_NICK_ACK,
- SMSG_CHAT_ROOM_CREATE_ACK,
- SMSG_CHAT_ROOM_DESTROY,
- SMSG_CHAT_ROOM_JOIN_FAILED,
- SMSG_CHAT_ROOM_ADD_MEMBER,
- SMSG_CHAT_ROOM_SETTINGS,
- SMSG_CHAT_ROOM_ROLE_CHANGE,
- SMSG_MANNER_MESSAGE,
- SMSG_CHAT_SILENCE,
- SMSG_CHAT_TALKIE_BOX,
- SMSG_BATTLE_CHAT_MESSAGE,
- SMSG_SCRIPT_MESSAGE,
- 0
- };
- handledMessages = _messages;
chatHandler = this;
}
-void ChatHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_WHISPER_RESPONSE:
- ChatRecv::processWhisperResponse(msg);
- break;
-
- // Received whisper
- case SMSG_WHISPER:
- ChatRecv::processWhisper(msg);
- break;
-
- // Received speech from being
- case SMSG_BEING_CHAT:
- ChatRecv::processBeingChat(msg);
- break;
-
- case SMSG_PLAYER_CHAT:
- ChatRecv::processChat(msg);
- break;
-
- case SMSG_FORMAT_MESSAGE:
- ChatRecv::processFormatMessage(msg);
- break;
-
- case SMSG_FORMAT_MESSAGE_NUMBER:
- ChatRecv::processFormatMessageNumber(msg);
- break;
-
- case SMSG_FORMAT_MESSAGE_SKILL:
- ChatRecv::processFormatMessageSkill(msg);
- break;
-
- case SMSG_COLOR_MESSAGE:
- ChatRecv::processColorChat(msg);
- break;
-
- case SMSG_GM_CHAT:
- ChatRecv::processGmChat(msg);
- break;
-
- case SMSG_GM_CHAT2:
- ChatRecv::processGmChat2(msg);
- break;
-
- case SMSG_MVP_EFFECT:
- Ea::ChatRecv::processMVPEffect(msg);
- break;
-
- case SMSG_MVP_ITEM:
- ChatRecv::processMVPItem(msg);
- break;
-
- case SMSG_MVP_EXP:
- ChatRecv::processMVPExp(msg);
- break;
-
- case SMSG_MVP_NO_ITEM:
- ChatRecv::processMVPNoItem(msg);
- break;
-
- case SMSG_IGNORE_ALL_RESPONSE:
- Ea::ChatRecv::processIgnoreAllResponse(msg);
- break;
-
- case SMSG_CHAT_IGNORE_LIST:
- ChatRecv::processChatIgnoreList(msg);
- break;
-
- case SMSG_CHAT_DISPLAY:
- ChatRecv::processChatDisplay(msg);
- break;
-
- case SMSG_CHAT_ROOM_JOIN_ACK:
- ChatRecv::processChatRoomJoinAck(msg);
- break;
-
- case SMSG_CHAT_ROOM_LEAVE:
- ChatRecv::processChatRoomLeave(msg);
- break;
-
- case SMSG_CHAT_JOIN_CHANNEL:
- ChatRecv::processJoinChannel(msg);
- break;
-
- case SMSG_IGNORE_NICK_ACK:
- ChatRecv::processIgnoreNickAck(msg);
- break;
-
- case SMSG_CHAT_ROOM_CREATE_ACK:
- ChatRecv::processChatRoomCreateAck(msg);
- break;
-
- case SMSG_CHAT_ROOM_DESTROY:
- ChatRecv::processChatRoomDestroy(msg);
- break;
-
- case SMSG_CHAT_ROOM_JOIN_FAILED:
- ChatRecv::processChatRoomJoinFailed(msg);
- break;
-
- case SMSG_CHAT_ROOM_ADD_MEMBER:
- ChatRecv::processChatRoomAddMember(msg);
- break;
-
- case SMSG_CHAT_ROOM_SETTINGS:
- ChatRecv::processChatRoomSettings(msg);
- break;
-
- case SMSG_CHAT_ROOM_ROLE_CHANGE:
- ChatRecv::processChatRoomRoleChange(msg);
- break;
-
- case SMSG_MANNER_MESSAGE:
- ChatRecv::processMannerMessage(msg);
- break;
-
- case SMSG_CHAT_SILENCE:
- ChatRecv::processChatSilence(msg);
- break;
-
- case SMSG_CHAT_TALKIE_BOX:
- ChatRecv::processChatTalkieBox(msg);
- break;
-
- case SMSG_BATTLE_CHAT_MESSAGE:
- ChatRecv::processBattleChatMessage(msg);
- break;
-
- case SMSG_SCRIPT_MESSAGE:
- ChatRecv::processScriptMessage(msg);
- break;
-
- default:
- break;
- }
-}
-
void ChatHandler::talk(const std::string &restrict text,
const std::string &restrict channel A_UNUSED) const
{