diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-10 20:54:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-10 20:54:27 +0300 |
commit | fc199c3ae60d4c4cf76236c7f4891113daa3cbc4 (patch) | |
tree | 0ecb3d397a9224c280bebfa22aeb1588edf63371 /src/net/eathena/skillhandler.cpp | |
parent | b748c8947e6225376e77b09f4c7c335985d934ef (diff) | |
download | plus-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.tar.gz plus-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.tar.bz2 plus-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.tar.xz plus-fc199c3ae60d4c4cf76236c7f4891113daa3cbc4.zip |
improve skillhandler class.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index a36ba7435..75aae7608 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -69,7 +69,8 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) } } -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<int16_t>(id)); @@ -77,7 +78,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<int16_t>(level)); @@ -86,7 +88,7 @@ void SkillHandler::usePos(int id, int level, int x, int y) outMsg.writeInt16(static_cast<int16_t>(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<int16_t>(id)); |