From 34e9ca0dbab79dea6819b153ee136ae8f4caaa3d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Oct 2014 17:28:57 +0300 Subject: add static in partyhandler. --- src/net/eathena/partyhandler.cpp | 10 +++++----- src/net/eathena/partyhandler.h | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/net/eathena') 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 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(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 -- cgit v1.2.3-70-g09d2