summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-19 17:43:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-19 17:43:40 +0300
commit53bbb5541d4770d39f98bf0a789cc24918061e5b (patch)
tree62b5ee3e82db68974deb972ca4f2ca219f280bef /src/net/ea/playerhandler.cpp
parent8f36f816373904eeb1c0b800114e3c44bad168e8 (diff)
downloadmv-53bbb5541d4770d39f98bf0a789cc24918061e5b.tar.gz
mv-53bbb5541d4770d39f98bf0a789cc24918061e5b.tar.bz2
mv-53bbb5541d4770d39f98bf0a789cc24918061e5b.tar.xz
mv-53bbb5541d4770d39f98bf0a789cc24918061e5b.zip
Add static in playerhandler.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 55054c928..3d25c83d0 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -173,7 +173,7 @@ void PlayerHandler::processPlayerWarp(Net::MessageIn &msg)
BLOCK_END("PlayerHandler::processPlayerWarp")
}
-void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg) const
+void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate1")
const int type = msg.readInt16("type");
@@ -184,7 +184,7 @@ void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg) const
return;
}
- setStat(type, value, -1, true);
+ playerHandler->setStat(type, value, -1, true);
if (PlayerInfo::getAttribute(Attributes::HP) == 0 && !deathNotice)
{
@@ -205,27 +205,27 @@ void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg) const
BLOCK_END("PlayerHandler::processPlayerStatUpdate1")
}
-void PlayerHandler::processPlayerStatUpdate2(Net::MessageIn &msg) const
+void PlayerHandler::processPlayerStatUpdate2(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate2")
const int type = msg.readInt16("type");
const int value = msg.readInt32("value");
- setStat(type, value, -1, true);
+ playerHandler->setStat(type, value, -1, true);
BLOCK_END("PlayerHandler::processPlayerStatUpdate2")
}
-void PlayerHandler::processPlayerStatUpdate3(Net::MessageIn &msg) const
+void PlayerHandler::processPlayerStatUpdate3(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate3")
const int type = msg.readInt32("type");
const int base = msg.readInt32("base");
const int bonus = msg.readInt32("bonus");
- setStat(type, base, bonus, false);
+ playerHandler->setStat(type, base, bonus, false);
BLOCK_END("PlayerHandler::processPlayerStatUpdate3")
}
-void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg) const
+void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate4")
const int type = msg.readInt16();
@@ -241,17 +241,17 @@ void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg) const
NotifyManager::notify(NotifyTypes::SKILL_RAISE_ERROR);
}
- setStat(type, value, -1, true);
+ playerHandler->setStat(type, value, -1, true);
BLOCK_END("PlayerHandler::processPlayerStatUpdate4")
}
-void PlayerHandler::processPlayerStatUpdate6(Net::MessageIn &msg) const
+void PlayerHandler::processPlayerStatUpdate6(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate6")
const int type = msg.readInt16("type");
const int value = msg.readUInt8("value");
if (statusWindow)
- setStat(type, value, -1, true);
+ playerHandler->setStat(type, value, -1, true);
BLOCK_END("PlayerHandler::processPlayerStatUpdate6")
}