summaryrefslogtreecommitdiff
path: root/src/net/eathena/questhandler.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/questhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmanaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/questhandler.cpp')
-rw-r--r--src/net/eathena/questhandler.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/net/eathena/questhandler.cpp b/src/net/eathena/questhandler.cpp
index db70958a4..8d92a698e 100644
--- a/src/net/eathena/questhandler.cpp
+++ b/src/net/eathena/questhandler.cpp
@@ -35,63 +35,11 @@ namespace EAthena
{
QuestHandler::QuestHandler() :
- MessageHandler(),
Net::QuestHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_QUEST_ADD,
- SMSG_QUEST_LIST,
- SMSG_QUEST_LIST_OBJECTIVES,
- SMSG_QUEST_UPDATE_OBJECTIVES,
- SMSG_QUEST_REMOVE,
- SMSG_QUEST_ACTIVATE,
- SMSG_QUEST_NPC_EFFECT,
- 0
- };
- handledMessages = _messages;
questHandler = this;
}
-void QuestHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("QuestHandler::handleMessage")
- switch (msg.getId())
- {
- case SMSG_QUEST_ADD:
- QuestRecv::processAddQuest(msg);
- break;
-
- case SMSG_QUEST_LIST:
- QuestRecv::processAddQuests(msg);
- break;
-
- case SMSG_QUEST_LIST_OBJECTIVES:
- QuestRecv::processAddQuestsObjectives(msg);
- break;
-
- case SMSG_QUEST_UPDATE_OBJECTIVES:
- QuestRecv::processUpdateQuestsObjectives(msg);
- break;
-
- case SMSG_QUEST_REMOVE:
- QuestRecv::processRemoveQuest(msg);
- break;
-
- case SMSG_QUEST_ACTIVATE:
- QuestRecv::processActivateQuest(msg);
- break;
-
- case SMSG_QUEST_NPC_EFFECT:
- QuestRecv::processNpcQuestEffect(msg);
- break;
-
- default:
- break;
- }
- BLOCK_END("QuestHandler::handleMessage")
-}
-
void QuestHandler::setQeustActiveState(const int questId,
const bool active) const
{