diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-29 21:55:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-29 21:55:55 +0300 |
commit | cc57dcd0e05a9c37fa4281c0190776a36b277e20 (patch) | |
tree | b39bd665a52337ec4c05d909567c7be30e67fcbc /src/net/ea | |
parent | 2223d15c84a660dd10dc131455416e2f49368409 (diff) | |
download | mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.gz mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.bz2 mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.xz mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.zip |
fix code style.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 29 | ||||
-rw-r--r-- | src/net/ea/beinghandler.h | 30 | ||||
-rw-r--r-- | src/net/ea/chathandler.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/chathandler.h | 2 |
4 files changed, 32 insertions, 31 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 9d8d760f9..2f982a425 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -60,7 +60,7 @@ namespace Ea { const int EMOTION_TIME = 500; /**< Duration of emotion icon */ -BeingHandler::BeingHandler(bool enableSync) : +BeingHandler::BeingHandler(const bool enableSync) : mSync(enableSync), mSpawnId(0), mHideShield(config.getBoolValue("hideShield")) @@ -552,7 +552,7 @@ void BeingHandler::processBeingAction(Net::MessageIn &msg) const } } -void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) +void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) const { if (!effectManager || !actorSpriteManager) return; @@ -575,7 +575,7 @@ void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) } } -void BeingHandler::processBeingEmotion(Net::MessageIn &msg) +void BeingHandler::processBeingEmotion(Net::MessageIn &msg) const { if (!player_node || !actorSpriteManager) return; @@ -597,7 +597,7 @@ void BeingHandler::processBeingEmotion(Net::MessageIn &msg) dstBeing->setOtherTime(); } -void BeingHandler::processNameResponse(Net::MessageIn &msg) +void BeingHandler::processNameResponse(Net::MessageIn &msg) const { if (!player_node || !actorSpriteManager) return; @@ -637,7 +637,7 @@ void BeingHandler::processNameResponse(Net::MessageIn &msg) } } -void BeingHandler::processIpResponse(Net::MessageIn &msg) +void BeingHandler::processIpResponse(Net::MessageIn &msg) const { if (!actorSpriteManager) return; @@ -647,7 +647,7 @@ void BeingHandler::processIpResponse(Net::MessageIn &msg) dstBeing->setIp(ipToString(msg.readInt32())); } -void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) +void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const { if (!actorSpriteManager) return; @@ -671,7 +671,7 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) } } -void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) +void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const { if (!actorSpriteManager) return; @@ -689,7 +689,7 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) player_node->imitateDirection(dstBeing, dir); } -void BeingHandler::processPlayerStop(Net::MessageIn &msg) +void BeingHandler::processPlayerStop(Net::MessageIn &msg) const { if (!actorSpriteManager || !player_node) return; @@ -723,6 +723,7 @@ void BeingHandler::processPlayerStop(Net::MessageIn &msg) } void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg A_UNUSED) + const { /* * This is an *advisory* message, telling the client that @@ -734,7 +735,7 @@ void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg A_UNUSED) player_node->fixAttackTarget(); } -void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) +void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const { if (!actorSpriteManager) return; @@ -758,7 +759,7 @@ void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) statusEffects & 0xffff)); } -void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) +void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const { if (!actorSpriteManager) return; @@ -773,7 +774,7 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) dstBeing->setStatusEffect(status, flag); } -void BeingHandler::processSkilCasting(Net::MessageIn &msg) +void BeingHandler::processSkilCasting(Net::MessageIn &msg) const { msg.readInt32(); // src id msg.readInt32(); // dst id @@ -784,7 +785,7 @@ void BeingHandler::processSkilCasting(Net::MessageIn &msg) msg.readInt32(); // cast time } -void BeingHandler::processSkillNoDamage(Net::MessageIn &msg) +void BeingHandler::processSkillNoDamage(Net::MessageIn &msg) const { msg.readInt16(); // skill id msg.readInt16(); // heal @@ -793,7 +794,7 @@ void BeingHandler::processSkillNoDamage(Net::MessageIn &msg) msg.readInt8(); // fail } -void BeingHandler::processPvpMapMode(Net::MessageIn &msg) +void BeingHandler::processPvpMapMode(Net::MessageIn &msg) const { const Game *const game = Game::instance(); if (!game) @@ -804,7 +805,7 @@ void BeingHandler::processPvpMapMode(Net::MessageIn &msg) map->setPvpMode(msg.readInt16()); } -void BeingHandler::processPvpSet(Net::MessageIn &msg) +void BeingHandler::processPvpSet(Net::MessageIn &msg) const { const int id = msg.readInt32(); // id const int rank = msg.readInt32(); // rank diff --git a/src/net/ea/beinghandler.h b/src/net/ea/beinghandler.h index 7af57af18..9f8fd7842 100644 --- a/src/net/ea/beinghandler.h +++ b/src/net/ea/beinghandler.h @@ -32,7 +32,7 @@ namespace Ea class BeingHandler : public Net::BeingHandler { public: - BeingHandler(bool enableSync); + BeingHandler(const bool enableSync); A_DELETE_COPY(BeingHandler) @@ -61,39 +61,39 @@ class BeingHandler : public Net::BeingHandler virtual void processBeingAction(Net::MessageIn &msg) const; - virtual void processBeingSelfEffect(Net::MessageIn &msg); + virtual void processBeingSelfEffect(Net::MessageIn &msg) const; - virtual void processBeingEmotion(Net::MessageIn &msg); + virtual void processBeingEmotion(Net::MessageIn &msg) const; virtual void processBeingChangeLook(Net::MessageIn &msg, const bool look2) const = 0; - virtual void processNameResponse(Net::MessageIn &msg); + virtual void processNameResponse(Net::MessageIn &msg) const; - virtual void processIpResponse(Net::MessageIn &msg); + virtual void processIpResponse(Net::MessageIn &msg) const; - virtual void processPlayerGuilPartyInfo(Net::MessageIn &msg); + virtual void processPlayerGuilPartyInfo(Net::MessageIn &msg) const; - virtual void processBeingChangeDirection(Net::MessageIn &msg); + virtual void processBeingChangeDirection(Net::MessageIn &msg) const; virtual void processPlayerMoveUpdate(Net::MessageIn &msg, const int type) const = 0; - virtual void processPlayerStop(Net::MessageIn &msg); + virtual void processPlayerStop(Net::MessageIn &msg) const; - virtual void processPlayerMoveToAttack(Net::MessageIn &msg); + virtual void processPlayerMoveToAttack(Net::MessageIn &msg) const; - virtual void processPlaterStatusChange(Net::MessageIn &msg); + virtual void processPlaterStatusChange(Net::MessageIn &msg) const; - virtual void processBeingStatusChange(Net::MessageIn &msg); + virtual void processBeingStatusChange(Net::MessageIn &msg) const; - virtual void processSkilCasting(Net::MessageIn &msg); + virtual void processSkilCasting(Net::MessageIn &msg) const; - virtual void processSkillNoDamage(Net::MessageIn &msg); + virtual void processSkillNoDamage(Net::MessageIn &msg) const; - virtual void processPvpMapMode(Net::MessageIn &msg); + virtual void processPvpMapMode(Net::MessageIn &msg) const; - virtual void processPvpSet(Net::MessageIn &msg); + virtual void processPvpSet(Net::MessageIn &msg) const; protected: // Should we honor server "Stop Walking" packets diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 6eb913d50..20c108229 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -100,7 +100,7 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg) } } -void ChatHandler::processWhisper(Net::MessageIn &msg) +void ChatHandler::processWhisper(Net::MessageIn &msg) const { const int chatMsgLength = msg.readInt16() - 28; std::string nick = msg.readString(24); diff --git a/src/net/ea/chathandler.h b/src/net/ea/chathandler.h index 824baba58..869d52153 100644 --- a/src/net/ea/chathandler.h +++ b/src/net/ea/chathandler.h @@ -45,7 +45,7 @@ class ChatHandler : public Net::ChatHandler virtual void processWhisperResponse(Net::MessageIn &msg); - virtual void processWhisper(Net::MessageIn &msg); + virtual void processWhisper(Net::MessageIn &msg) const; virtual void processBeingChat(Net::MessageIn &msg, const bool channels) const; |