summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-17 13:15:56 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-17 13:15:56 +0300
commit5548875f34ea78e9917c512fb452718ccec5ced5 (patch)
tree053be91b21db5d771a63ccb86b15d4b01035eba3 /src/net/tmwa
parenta2710185944a34f510fa1c940212617913c50dee (diff)
downloadmanaverse-5548875f34ea78e9917c512fb452718ccec5ced5.tar.gz
manaverse-5548875f34ea78e9917c512fb452718ccec5ced5.tar.bz2
manaverse-5548875f34ea78e9917c512fb452718ccec5ced5.tar.xz
manaverse-5548875f34ea78e9917c512fb452718ccec5ced5.zip
Add static in beinthandler.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/beinghandler.cpp38
-rw-r--r--src/net/tmwa/beinghandler.h44
2 files changed, 41 insertions, 41 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 9ff7b3ad0..fb8a5d3fe 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -256,7 +256,7 @@ void BeingHandler::requestRanks(const Rank::Rank rank A_UNUSED) const
{
}
-void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
+void BeingHandler::processBeingChangeLook(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingChangeLook")
if (!actorManager)
@@ -281,7 +281,7 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processBeingChangeLook")
}
-void BeingHandler::processBeingChangeLook2(Net::MessageIn &msg) const
+void BeingHandler::processBeingChangeLook2(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingChangeLook")
if (!actorManager)
@@ -319,7 +319,7 @@ void BeingHandler::processBeingChangeLook2(Net::MessageIn &msg) const
void BeingHandler::processBeingChangeLookContinue(Being *const dstBeing,
const uint8_t type,
const int id,
- const int id2) const
+ const int id2)
{
if (dstBeing->getType() == ActorType::Player)
dstBeing->setOtherTime();
@@ -467,7 +467,7 @@ void BeingHandler::processNameResponse2(Net::MessageIn &msg)
BLOCK_END("BeingHandler::processNameResponse2")
}
-void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg) const
+void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processPlayerMoveUpdate")
if (!actorManager || !localPlayer)
@@ -509,7 +509,7 @@ void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg) const
{
actorManager->undelete(dstBeing);
if (serverVersion < 1)
- requestNameById(id);
+ beingHandler->requestNameById(id);
}
uint8_t dir = dstBeing->getDirectionDelayed();
@@ -619,7 +619,7 @@ void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processPlayerMoveUpdate")
}
-void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg) const
+void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processPlayerMoveUpdate")
if (!actorManager || !localPlayer)
@@ -661,7 +661,7 @@ void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg) const
{
actorManager->undelete(dstBeing);
if (serverVersion < 1)
- requestNameById(id);
+ beingHandler->requestNameById(id);
}
uint8_t dir = dstBeing->getDirectionDelayed();
@@ -767,7 +767,7 @@ void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processPlayerMoveUpdate")
}
-void BeingHandler::processPlayerMove(Net::MessageIn &msg) const
+void BeingHandler::processPlayerMove(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processPlayerMoveUpdate")
if (!actorManager || !localPlayer)
@@ -809,7 +809,7 @@ void BeingHandler::processPlayerMove(Net::MessageIn &msg) const
{
actorManager->undelete(dstBeing);
if (serverVersion < 1)
- requestNameById(id);
+ beingHandler->requestNameById(id);
}
const uint8_t dir = dstBeing->getDirectionDelayed();
@@ -1063,7 +1063,7 @@ void BeingHandler::processBeingVisible(Net::MessageIn &msg)
{
actorManager->undelete(dstBeing);
if (serverVersion < 1)
- requestNameById(id);
+ beingHandler->requestNameById(id);
}
}
@@ -1273,7 +1273,7 @@ void BeingHandler::processBeingMove(Net::MessageIn &msg)
{
actorManager->undelete(dstBeing);
if (serverVersion < 1)
- requestNameById(id);
+ beingHandler->requestNameById(id);
}
}
@@ -1410,7 +1410,7 @@ void BeingHandler::processBeingSpawn(Net::MessageIn &msg)
BLOCK_END("BeingHandler::processBeingSpawn")
}
-void BeingHandler::processSkillCasting(Net::MessageIn &msg) const
+void BeingHandler::processSkillCasting(Net::MessageIn &msg)
{
msg.readInt32("src id");
msg.readInt32("dst id");
@@ -1421,7 +1421,7 @@ void BeingHandler::processSkillCasting(Net::MessageIn &msg) const
msg.readInt32("cast time");
}
-void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const
+void BeingHandler::processBeingStatusChange(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingStatusChange")
if (!actorManager)
@@ -1441,7 +1441,7 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processBeingStatusChange")
}
-void BeingHandler::processBeingMove2(Net::MessageIn &msg) const
+void BeingHandler::processBeingMove2(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingMove2")
if (!actorManager)
@@ -1481,7 +1481,7 @@ void BeingHandler::processBeingMove2(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processBeingMove2")
}
-void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const
+void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingChangeDirection")
if (!actorManager)
@@ -1562,7 +1562,7 @@ void BeingHandler::viewPlayerEquipment(const Being *const being A_UNUSED)
{
}
-void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const
+void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processPlayerStop")
if (!actorManager)
@@ -1590,7 +1590,7 @@ void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processPlayerStop")
}
-void BeingHandler::processBeingResurrect(Net::MessageIn &msg) const
+void BeingHandler::processBeingResurrect(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingResurrect")
if (!actorManager || !localPlayer)
@@ -1618,7 +1618,7 @@ void BeingHandler::processBeingResurrect(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processBeingResurrect")
}
-void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const
+void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processPlayerGuilPartyInfo")
if (!actorManager)
@@ -1647,7 +1647,7 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processPlayerGuilPartyInfo")
}
-void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) const
+void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingSelfEffect")
if (!effectManager || !actorManager)
diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h
index 9a5bc993b..0caaa9979 100644
--- a/src/net/tmwa/beinghandler.h
+++ b/src/net/tmwa/beinghandler.h
@@ -45,47 +45,47 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
void requestRanks(const Rank::Rank rank A_UNUSED) const override final;
- void viewPlayerEquipment(const Being *const being) override final;
-
protected:
- void processBeingChangeLook(Net::MessageIn &msg) const;
+ void viewPlayerEquipment(const Being *const being);
+
+ static void processBeingChangeLook(Net::MessageIn &msg);
- void processBeingChangeLook2(Net::MessageIn &msg) const;
+ static void processBeingChangeLook2(Net::MessageIn &msg);
- void processBeingVisible(Net::MessageIn &msg);
+ static void processBeingVisible(Net::MessageIn &msg);
- void processBeingMove(Net::MessageIn &msg);
+ static void processBeingMove(Net::MessageIn &msg);
static void processNameResponse2(Net::MessageIn &msg);
- void processPlayerUpdate1(Net::MessageIn &msg) const;
+ static void processPlayerUpdate1(Net::MessageIn &msg);
- void processPlayerUpdate2(Net::MessageIn &msg) const;
+ static void processPlayerUpdate2(Net::MessageIn &msg);
- void processPlayerMove(Net::MessageIn &msg) const;
+ static void processPlayerMove(Net::MessageIn &msg);
static void processBeingMove3(Net::MessageIn &msg);
- void processBeingSpawn(Net::MessageIn &msg);
+ static void processBeingSpawn(Net::MessageIn &msg);
- void processSkillCasting(Net::MessageIn &msg) const;
+ static void processSkillCasting(Net::MessageIn &msg);
- void processBeingStatusChange(Net::MessageIn &msg) const;
+ static void processBeingStatusChange(Net::MessageIn &msg);
- void processBeingMove2(Net::MessageIn &msg) const;
+ static void processBeingMove2(Net::MessageIn &msg);
- void processBeingChangeDirection(Net::MessageIn &msg) const;
+ static void processBeingChangeDirection(Net::MessageIn &msg);
- void processBeingChangeLookContinue(Being *const dstBeing,
- const uint8_t type,
- const int id,
- const int id2) const;
+ static void processBeingChangeLookContinue(Being *const dstBeing,
+ const uint8_t type,
+ const int id,
+ const int id2);
- void processPlaterStatusChange(Net::MessageIn &msg) const;
+ static void processPlaterStatusChange(Net::MessageIn &msg);
- void processBeingResurrect(Net::MessageIn &msg) const;
+ static void processBeingResurrect(Net::MessageIn &msg);
- void processPlayerGuilPartyInfo(Net::MessageIn &msg) const;
+ static void processPlayerGuilPartyInfo(Net::MessageIn &msg);
static void setServerGender(Being *const being,
const uint8_t gender);
@@ -93,7 +93,7 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
static void applyPlayerAction(Being *const being,
const uint8_t type);
- void processBeingSelfEffect(Net::MessageIn &msg) const;
+ static void processBeingSelfEffect(Net::MessageIn &msg);
};
} // namespace TmwAthena