diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-19 17:28:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-19 17:28:57 +0300 |
commit | 34e9ca0dbab79dea6819b153ee136ae8f4caaa3d (patch) | |
tree | 7e6d8b928c2a9f50ee144143eee61313ddd54cf2 /src/net/eathena | |
parent | 628219ea2bfd48ad236f9c253dc412edcc8e3004 (diff) | |
download | mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.tar.gz mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.tar.bz2 mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.tar.xz mv-34e9ca0dbab79dea6819b153ee136ae8f4caaa3d.zip |
add static in partyhandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/partyhandler.h | 18 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index 6b132646c..a3ccb6776 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -277,7 +277,7 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) processPartySettingsContinue(exp, item); } -void PartyHandler::processPartyInfo(Net::MessageIn &msg) const +void PartyHandler::processPartyInfo(Net::MessageIn &msg) { bool isOldParty = false; std::set<std::string> names; @@ -384,7 +384,7 @@ void PartyHandler::processPartyInfo(Net::MessageIn &msg) const } } -void PartyHandler::processPartyMessage(Net::MessageIn &msg) const +void PartyHandler::processPartyMessage(Net::MessageIn &msg) { const int msgLength = msg.readInt16() - 8; if (msgLength <= 0) @@ -412,7 +412,7 @@ void PartyHandler::processPartyMessage(Net::MessageIn &msg) const } } -void PartyHandler::processPartyInviteResponse(Net::MessageIn &msg) const +void PartyHandler::processPartyInviteResponse(Net::MessageIn &msg) { if (!partyTab) return; @@ -470,7 +470,7 @@ void PartyHandler::allowInvite(const bool allow) const outMsg.writeInt8(static_cast<int8_t>(allow ? 1 : 0)); } -void PartyHandler::processPartyItemPickup(Net::MessageIn &msg) const +void PartyHandler::processPartyItemPickup(Net::MessageIn &msg) { // +++ probably need add option to show pickup notifications // in party tab @@ -487,7 +487,7 @@ void PartyHandler::processPartyItemPickup(Net::MessageIn &msg) const msg.readUInt8("item type"); } -void PartyHandler::processPartyLeader(Net::MessageIn &msg) const +void PartyHandler::processPartyLeader(Net::MessageIn &msg) { PartyMember *const oldMember = Ea::taParty->getMember( msg.readInt32("old leder id")); diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h index bc8c550a8..c4bab0f47 100644 --- a/src/net/eathena/partyhandler.h +++ b/src/net/eathena/partyhandler.h @@ -63,24 +63,24 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler void changeLeader(const std::string &name) const override final; - void processPartySettings(Net::MessageIn &msg); - void allowInvite(const bool allow) const override final; protected: - void processPartyInvitationStats(Net::MessageIn &msg); + static void processPartySettings(Net::MessageIn &msg); + + static void processPartyInvitationStats(Net::MessageIn &msg); - void processPartyMemberInfo(Net::MessageIn &msg); + static void processPartyMemberInfo(Net::MessageIn &msg); - void processPartyInfo(Net::MessageIn &msg) const; + static void processPartyInfo(Net::MessageIn &msg); - void processPartyMessage(Net::MessageIn &msg) const; + static void processPartyMessage(Net::MessageIn &msg); - void processPartyInviteResponse(Net::MessageIn &msg) const; + static void processPartyInviteResponse(Net::MessageIn &msg); - void processPartyItemPickup(Net::MessageIn &msg) const; + static void processPartyItemPickup(Net::MessageIn &msg); - void processPartyLeader(Net::MessageIn &msg) const; + static void processPartyLeader(Net::MessageIn &msg); }; } // namespace EAthena |