summaryrefslogtreecommitdiff
path: root/src/net/ea/partyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-19 17:28:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-19 17:28:57 +0300
commit34e9ca0dbab79dea6819b153ee136ae8f4caaa3d (patch)
tree7e6d8b928c2a9f50ee144143eee61313ddd54cf2 /src/net/ea/partyhandler.cpp
parent628219ea2bfd48ad236f9c253dc412edcc8e3004 (diff)
downloadmv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.tar.gz
mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.tar.bz2
mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.tar.xz
mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.zip
add static in partyhandler.
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-rw-r--r--src/net/ea/partyhandler.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 425ba7793..a04e4861c 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -45,11 +45,14 @@ namespace Ea
{
Party *taParty = nullptr;
+Net::PartyShare::Type PartyHandler::mShareExp = Net::PartyShare::UNKNOWN;
+Net::PartyShare::Type PartyHandler::mShareItems = Net::PartyShare::UNKNOWN;
PartyHandler::PartyHandler() :
- mShareExp(Net::PartyShare::UNKNOWN),
- mShareItems(Net::PartyShare::UNKNOWN)
+ Net::PartyHandler()
{
+ mShareExp = Net::PartyShare::UNKNOWN;
+ mShareItems = Net::PartyShare::UNKNOWN;
taParty = Party::getParty(1);
}
@@ -72,7 +75,7 @@ void PartyHandler::clear() const
taParty = nullptr;
}
-void PartyHandler::processPartyCreate(Net::MessageIn &msg) const
+void PartyHandler::processPartyCreate(Net::MessageIn &msg)
{
if (msg.readUInt8())
NotifyManager::notify(NotifyTypes::PARTY_CREATE_FAILED);
@@ -80,7 +83,7 @@ void PartyHandler::processPartyCreate(Net::MessageIn &msg) const
NotifyManager::notify(NotifyTypes::PARTY_CREATED);
}
-void PartyHandler::processPartyInvited(Net::MessageIn &msg) const
+void PartyHandler::processPartyInvited(Net::MessageIn &msg)
{
const int id = msg.readInt32();
const std::string partyName = msg.readString(24);
@@ -154,7 +157,7 @@ void PartyHandler::processPartySettingsContinue(const int16_t exp,
}
}
-void PartyHandler::processPartyMove(Net::MessageIn &msg) const
+void PartyHandler::processPartyMove(Net::MessageIn &msg)
{
const int id = msg.readInt32(); // id
PartyMember *m = nullptr;
@@ -185,7 +188,7 @@ void PartyHandler::processPartyMove(Net::MessageIn &msg) const
}
}
-void PartyHandler::processPartyLeave(Net::MessageIn &msg) const
+void PartyHandler::processPartyLeave(Net::MessageIn &msg)
{
const int id = msg.readInt32("account id");
const std::string nick = msg.readString(24, "nick");
@@ -269,7 +272,7 @@ void PartyHandler::processPartyLeave(Net::MessageIn &msg) const
}
}
-void PartyHandler::processPartyUpdateHp(Net::MessageIn &msg) const
+void PartyHandler::processPartyUpdateHp(Net::MessageIn &msg)
{
const int id = msg.readInt32();
const int hp = msg.readInt16();
@@ -292,7 +295,7 @@ void PartyHandler::processPartyUpdateHp(Net::MessageIn &msg) const
}
}
-void PartyHandler::processPartyUpdateCoords(Net::MessageIn &msg) const
+void PartyHandler::processPartyUpdateCoords(Net::MessageIn &msg)
{
const int id = msg.readInt32(); // id
PartyMember *m = nullptr;
@@ -315,7 +318,7 @@ ChatTab *PartyHandler::getTab() const
return partyTab;
}
-void PartyHandler::createTab() const
+void PartyHandler::createTab()
{
partyTab = new PartyTab(chatWindow);
if (config.getBoolValue("showChatHistory"))