summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:47:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:47:16 +0300
commit05f6f3e94abc5c1e1801d62100cef494e2711474 (patch)
treed3ee874dd7fa9c6b6170cae8435ea7f18eb1f102 /src/net/tmwa
parent11caa7aeeb3a7b40823da8573576d2354b7504b5 (diff)
downloadplus-05f6f3e94abc5c1e1801d62100cef494e2711474.tar.gz
plus-05f6f3e94abc5c1e1801d62100cef494e2711474.tar.bz2
plus-05f6f3e94abc5c1e1801d62100cef494e2711474.tar.xz
plus-05f6f3e94abc5c1e1801d62100cef494e2711474.zip
Add missing const and static into net classes.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/beinghandler.cpp5
-rw-r--r--src/net/tmwa/beinghandler.h4
-rw-r--r--src/net/tmwa/buysellhandler.cpp2
-rw-r--r--src/net/tmwa/buysellhandler.h2
-rw-r--r--src/net/tmwa/loginhandler.cpp2
-rw-r--r--src/net/tmwa/loginhandler.h2
-rw-r--r--src/net/tmwa/playerhandler.cpp6
-rw-r--r--src/net/tmwa/playerhandler.h6
-rw-r--r--src/net/tmwa/questhandler.cpp4
-rw-r--r--src/net/tmwa/questhandler.h4
10 files changed, 18 insertions, 19 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 043321cd5..76efd958e 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -389,12 +389,11 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
}
}
-void BeingHandler::processNameResponse2(Net::MessageIn &msg) const
+void BeingHandler::processNameResponse2(Net::MessageIn &msg)
{
if (!actorManager || !player_node)
return;
-
const int len = msg.readInt16();
const int beingId = msg.readInt32();
const std::string str = msg.readString(len - 8);
@@ -653,7 +652,7 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
dstBeing->setMoveTime();
}
-void BeingHandler::processBeingMove3(Net::MessageIn &msg) const
+void BeingHandler::processBeingMove3(Net::MessageIn &msg)
{
if (serverVersion < 10)
return;
diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h
index f35921256..f3b57b023 100644
--- a/src/net/tmwa/beinghandler.h
+++ b/src/net/tmwa/beinghandler.h
@@ -47,12 +47,12 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
void processBeingChangeLook(Net::MessageIn &msg,
const bool look2) const;
- void processNameResponse2(Net::MessageIn &msg) const;
+ static void processNameResponse2(Net::MessageIn &msg);
void processPlayerMoveUpdate(Net::MessageIn &msg,
const int type) const;
- void processBeingMove3(Net::MessageIn &msg) const;
+ static void processBeingMove3(Net::MessageIn &msg);
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp
index 71891bdec..0be6839a7 100644
--- a/src/net/tmwa/buysellhandler.cpp
+++ b/src/net/tmwa/buysellhandler.cpp
@@ -114,7 +114,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg)
mBuyDialog->sort();
}
-void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) const
+void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg)
{
switch (msg.readInt8())
{
diff --git a/src/net/tmwa/buysellhandler.h b/src/net/tmwa/buysellhandler.h
index 9fa6caddc..a0c99908f 100644
--- a/src/net/tmwa/buysellhandler.h
+++ b/src/net/tmwa/buysellhandler.h
@@ -41,7 +41,7 @@ class BuySellHandler final : public MessageHandler, public Ea::BuySellHandler
void processNpcBuy(Net::MessageIn &msg);
- void processNpcSellResponse(Net::MessageIn &msg) const;
+ static void processNpcSellResponse(Net::MessageIn &msg);
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index 95dd59350..3797a7a54 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -178,7 +178,7 @@ ServerInfo *LoginHandler::getCharServer() const
return &charServer;
}
-void LoginHandler::requestUpdateHosts() const
+void LoginHandler::requestUpdateHosts()
{
MessageOut outMsg(CMSG_SEND_CLIENT_INFO);
outMsg.writeInt8(CLIENT_PROTOCOL_VERSION);
diff --git a/src/net/tmwa/loginhandler.h b/src/net/tmwa/loginhandler.h
index 20ca3f52d..632f02d62 100644
--- a/src/net/tmwa/loginhandler.h
+++ b/src/net/tmwa/loginhandler.h
@@ -63,7 +63,7 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
void processServerVersion(Net::MessageIn &msg);
- void requestUpdateHosts() const;
+ static void requestUpdateHosts();
void processUpdateHost2(Net::MessageIn &msg) const;
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 007c29dd6..eea74a2a5 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -233,7 +233,7 @@ void PlayerHandler::requestOnlineList() const
MessageOut outMsg(CMSG_ONLINE_LIST);
}
-void PlayerHandler::processOnlineList(Net::MessageIn &msg) const
+void PlayerHandler::processOnlineList(Net::MessageIn &msg)
{
if (!whoIsOnline)
return;
@@ -309,7 +309,7 @@ void PlayerHandler::updateStatus(const uint8_t status) const
outMsg.writeInt8(0);
}
-void PlayerHandler::processMapMask(Net::MessageIn &msg) const
+void PlayerHandler::processMapMask(Net::MessageIn &msg)
{
const int mask = msg.readInt32();
msg.readInt32(); // unused
@@ -318,7 +318,7 @@ void PlayerHandler::processMapMask(Net::MessageIn &msg) const
map->setMask(mask);
}
-void PlayerHandler::processMapMusic(Net::MessageIn &msg) const
+void PlayerHandler::processMapMusic(Net::MessageIn &msg)
{
const int size = msg.readInt16() - 5;
const std::string music = msg.readString(size);
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index 5e1419119..125eea0ba 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -51,11 +51,11 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
void setDestination(const int x, const int y,
const int direction) const override final;
void changeAction(const Being::Action &action) const override final;
- void processOnlineList(Net::MessageIn &msg) const;
+ static void processOnlineList(Net::MessageIn &msg);
void requestOnlineList() const override final;
void updateStatus(const uint8_t status) const override final;
- void processMapMask(Net::MessageIn &msg) const;
- void processMapMusic(Net::MessageIn &msg) const;
+ static void processMapMask(Net::MessageIn &msg);
+ static void processMapMusic(Net::MessageIn &msg);
void respawn() const override final;
};
diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp
index 328a379dc..73ba770ea 100644
--- a/src/net/tmwa/questhandler.cpp
+++ b/src/net/tmwa/questhandler.cpp
@@ -61,7 +61,7 @@ void QuestHandler::handleMessage(Net::MessageIn &msg)
BLOCK_END("QuestHandler::handleMessage")
}
-void QuestHandler::processSetQuestVar(Net::MessageIn &msg) const
+void QuestHandler::processSetQuestVar(Net::MessageIn &msg)
{
const int var = msg.readInt16(); // variable
const int val = msg.readInt32(); // value
@@ -77,7 +77,7 @@ void QuestHandler::processSetQuestVar(Net::MessageIn &msg) const
}
}
-void QuestHandler::processPlayerQuests(Net::MessageIn &msg) const
+void QuestHandler::processPlayerQuests(Net::MessageIn &msg)
{
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 3e5e8178a..1de4ed24f 100644
--- a/src/net/tmwa/questhandler.h
+++ b/src/net/tmwa/questhandler.h
@@ -35,9 +35,9 @@ class QuestHandler final : public MessageHandler
void handleMessage(Net::MessageIn &msg) override final;
- void processSetQuestVar(Net::MessageIn &msg) const;
+ static void processSetQuestVar(Net::MessageIn &msg);
- void processPlayerQuests(Net::MessageIn &msg) const;
+ static void processPlayerQuests(Net::MessageIn &msg);
};
} // namespace TmwAthena