summaryrefslogtreecommitdiff
path: root/src/net/ea/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-10 20:54:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-10 20:54:27 +0300
commitfc199c3ae60d4c4cf76236c7f4891113daa3cbc4 (patch)
tree0ecb3d397a9224c280bebfa22aeb1588edf63371 /src/net/ea/skillhandler.cpp
parentb748c8947e6225376e77b09f4c7c335985d934ef (diff)
downloadmv-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.tar.gz
mv-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.tar.bz2
mv-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.tar.xz
mv-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.zip
improve skillhandler class.
Diffstat (limited to 'src/net/ea/skillhandler.cpp')
-rw-r--r--src/net/ea/skillhandler.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp
index ed2b1973d..1e517a729 100644
--- a/src/net/ea/skillhandler.cpp
+++ b/src/net/ea/skillhandler.cpp
@@ -71,12 +71,7 @@ SkillHandler::SkillHandler()
{
}
-void SkillHandler::use(int id A_UNUSED)
-{
- // TODO
-}
-
-void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
+void SkillHandler::processPlayerSkills(Net::MessageIn &msg) const
{
msg.readInt16(); // length
const int skillCount = (msg.getLength() - 4) / 37;
@@ -106,7 +101,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
skillDialog->playUpdateEffect(updateSkill);
}
-void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
+void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg) const
{
const int skillId = msg.readInt16();
const int level = msg.readInt16();
@@ -124,7 +119,7 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
}
}
-void SkillHandler::processSkillFailed(Net::MessageIn &msg)
+void SkillHandler::processSkillFailed(Net::MessageIn &msg) const
{
// Action failed (ex. sit because you have not reached the
// right level)