diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-10 18:56:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-10 18:56:40 +0300 |
commit | b748c8947e6225376e77b09f4c7c335985d934ef (patch) | |
tree | ed23bfbad8b9344d54c7c738a49d5ea49afa3598 /src/net/tmwa | |
parent | 919d790980be710ec991af3654521225e97b5f79 (diff) | |
download | ManaVerse-b748c8947e6225376e77b09f4c7c335985d934ef.tar.gz ManaVerse-b748c8947e6225376e77b09f4c7c335985d934ef.tar.bz2 ManaVerse-b748c8947e6225376e77b09f4c7c335985d934ef.tar.xz ManaVerse-b748c8947e6225376e77b09f4c7c335985d934ef.zip |
improve questhandler class.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/questhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/questhandler.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp index 29aafd761..9789c2eb4 100644 --- a/src/net/tmwa/questhandler.cpp +++ b/src/net/tmwa/questhandler.cpp @@ -70,7 +70,7 @@ void QuestHandler::handleMessage(Net::MessageIn &msg) BLOCK_END("QuestHandler::handleMessage") } -void QuestHandler::processSetQuestVar(Net::MessageIn &msg A_UNUSED) +void QuestHandler::processSetQuestVar(Net::MessageIn &msg A_UNUSED) const { const int var = msg.readInt16(); // variable const int val = msg.readInt32(); // value @@ -86,7 +86,7 @@ void QuestHandler::processSetQuestVar(Net::MessageIn &msg A_UNUSED) } } -void QuestHandler::processPlayerQuests(Net::MessageIn &msg A_UNUSED) +void QuestHandler::processPlayerQuests(Net::MessageIn &msg A_UNUSED) const { const int count = (msg.readInt16() - 4) / 6; for (int f = 0; f < count; f ++) diff --git a/src/net/tmwa/questhandler.h b/src/net/tmwa/questhandler.h index 17b8bd493..61d40d6b1 100644 --- a/src/net/tmwa/questhandler.h +++ b/src/net/tmwa/questhandler.h @@ -40,11 +40,11 @@ class QuestHandler final : public MessageHandler A_DELETE_COPY(QuestHandler) - void handleMessage(Net::MessageIn &msg); + void handleMessage(Net::MessageIn &msg) override; - void processSetQuestVar(Net::MessageIn &msg); + void processSetQuestVar(Net::MessageIn &msg) const; - void processPlayerQuests(Net::MessageIn &msg); + void processPlayerQuests(Net::MessageIn &msg) const; }; } // namespace TmwAthena |