From fc199c3ae60d4c4cf76236c7f4891113daa3cbc4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Apr 2013 20:54:27 +0300 Subject: improve skillhandler class. --- src/net/tmwa/skillhandler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/net/tmwa/skillhandler.cpp') diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index 72ab4b6ec..9dd6af1fe 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -71,7 +71,7 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) BLOCK_END("SkillHandler::handleMessage") } -void SkillHandler::useBeing(int id, int level, int beingId) +void SkillHandler::useBeing(const int id, const int level, const int beingId) const { MessageOut outMsg(CMSG_SKILL_USE_BEING); outMsg.writeInt16(static_cast(id)); @@ -79,7 +79,8 @@ void SkillHandler::useBeing(int id, int level, int beingId) outMsg.writeInt32(beingId); } -void SkillHandler::usePos(int id, int level, int x, int y) +void SkillHandler::usePos(const int id, const int level, + const int x, const int y) const { MessageOut outMsg(CMSG_SKILL_USE_POSITION); outMsg.writeInt16(static_cast(level)); @@ -88,7 +89,7 @@ void SkillHandler::usePos(int id, int level, int x, int y) outMsg.writeInt16(static_cast(y)); } -void SkillHandler::useMap(int id, const std::string &map) +void SkillHandler::useMap(const int id, const std::string &map) const { MessageOut outMsg(CMSG_SKILL_USE_MAP); outMsg.writeInt16(static_cast(id)); -- cgit v1.2.3-70-g09d2