summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-29 21:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-29 21:55:55 +0300
commitcc57dcd0e05a9c37fa4281c0190776a36b277e20 (patch)
treeb39bd665a52337ec4c05d909567c7be30e67fcbc /src/net/ea/beinghandler.cpp
parent2223d15c84a660dd10dc131455416e2f49368409 (diff)
downloadmanaverse-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.gz
manaverse-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.bz2
manaverse-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.xz
manaverse-cc57dcd0e05a9c37fa4281c0190776a36b277e20.zip
fix code style.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 9d8d760f9..2f982a425 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -60,7 +60,7 @@ namespace Ea
{
const int EMOTION_TIME = 500; /**< Duration of emotion icon */
-BeingHandler::BeingHandler(bool enableSync) :
+BeingHandler::BeingHandler(const bool enableSync) :
mSync(enableSync),
mSpawnId(0),
mHideShield(config.getBoolValue("hideShield"))
@@ -552,7 +552,7 @@ void BeingHandler::processBeingAction(Net::MessageIn &msg) const
}
}
-void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg)
+void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) const
{
if (!effectManager || !actorSpriteManager)
return;
@@ -575,7 +575,7 @@ void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg)
}
}
-void BeingHandler::processBeingEmotion(Net::MessageIn &msg)
+void BeingHandler::processBeingEmotion(Net::MessageIn &msg) const
{
if (!player_node || !actorSpriteManager)
return;
@@ -597,7 +597,7 @@ void BeingHandler::processBeingEmotion(Net::MessageIn &msg)
dstBeing->setOtherTime();
}
-void BeingHandler::processNameResponse(Net::MessageIn &msg)
+void BeingHandler::processNameResponse(Net::MessageIn &msg) const
{
if (!player_node || !actorSpriteManager)
return;
@@ -637,7 +637,7 @@ void BeingHandler::processNameResponse(Net::MessageIn &msg)
}
}
-void BeingHandler::processIpResponse(Net::MessageIn &msg)
+void BeingHandler::processIpResponse(Net::MessageIn &msg) const
{
if (!actorSpriteManager)
return;
@@ -647,7 +647,7 @@ void BeingHandler::processIpResponse(Net::MessageIn &msg)
dstBeing->setIp(ipToString(msg.readInt32()));
}
-void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg)
+void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const
{
if (!actorSpriteManager)
return;
@@ -671,7 +671,7 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg)
}
}
-void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg)
+void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const
{
if (!actorSpriteManager)
return;
@@ -689,7 +689,7 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg)
player_node->imitateDirection(dstBeing, dir);
}
-void BeingHandler::processPlayerStop(Net::MessageIn &msg)
+void BeingHandler::processPlayerStop(Net::MessageIn &msg) const
{
if (!actorSpriteManager || !player_node)
return;
@@ -723,6 +723,7 @@ void BeingHandler::processPlayerStop(Net::MessageIn &msg)
}
void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg A_UNUSED)
+ const
{
/*
* This is an *advisory* message, telling the client that
@@ -734,7 +735,7 @@ void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg A_UNUSED)
player_node->fixAttackTarget();
}
-void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg)
+void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const
{
if (!actorSpriteManager)
return;
@@ -758,7 +759,7 @@ void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg)
statusEffects & 0xffff));
}
-void BeingHandler::processBeingStatusChange(Net::MessageIn &msg)
+void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const
{
if (!actorSpriteManager)
return;
@@ -773,7 +774,7 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg)
dstBeing->setStatusEffect(status, flag);
}
-void BeingHandler::processSkilCasting(Net::MessageIn &msg)
+void BeingHandler::processSkilCasting(Net::MessageIn &msg) const
{
msg.readInt32(); // src id
msg.readInt32(); // dst id
@@ -784,7 +785,7 @@ void BeingHandler::processSkilCasting(Net::MessageIn &msg)
msg.readInt32(); // cast time
}
-void BeingHandler::processSkillNoDamage(Net::MessageIn &msg)
+void BeingHandler::processSkillNoDamage(Net::MessageIn &msg) const
{
msg.readInt16(); // skill id
msg.readInt16(); // heal
@@ -793,7 +794,7 @@ void BeingHandler::processSkillNoDamage(Net::MessageIn &msg)
msg.readInt8(); // fail
}
-void BeingHandler::processPvpMapMode(Net::MessageIn &msg)
+void BeingHandler::processPvpMapMode(Net::MessageIn &msg) const
{
const Game *const game = Game::instance();
if (!game)
@@ -804,7 +805,7 @@ void BeingHandler::processPvpMapMode(Net::MessageIn &msg)
map->setPvpMode(msg.readInt16());
}
-void BeingHandler::processPvpSet(Net::MessageIn &msg)
+void BeingHandler::processPvpSet(Net::MessageIn &msg) const
{
const int id = msg.readInt32(); // id
const int rank = msg.readInt32(); // rank