summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index ad34acb61..a3071c1a5 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -44,70 +44,11 @@ namespace TmwAthena
{
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_MVP_EFFECT,
- SMSG_IGNORE_ALL_RESPONSE,
- SMSG_SCRIPT_MESSAGE,
- 0
- };
- handledMessages = _messages;
chatHandler = this;
}
-void ChatHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("ChatHandler::handleMessage")
- 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_GM_CHAT:
- ChatRecv::processGmChat(msg);
- break;
-
- case SMSG_MVP_EFFECT:
- Ea::ChatRecv::processMVPEffect(msg);
- break;
-
- case SMSG_IGNORE_ALL_RESPONSE:
- Ea::ChatRecv::processIgnoreAllResponse(msg);
- break;
-
- case SMSG_SCRIPT_MESSAGE:
- ChatRecv::processScriptMessage(msg);
- break;
-
- default:
- break;
- }
- BLOCK_END("ChatHandler::handleMessage")
-}
-
void ChatHandler::talk(const std::string &restrict text,
const std::string &restrict channel A_UNUSED) const
{