summaryrefslogtreecommitdiff
path: root/src/net/tmwa/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/tmwa/skillhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
plus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/skillhandler.cpp')
-rw-r--r--src/net/tmwa/skillhandler.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp
index 33eb884d1..ed9909e18 100644
--- a/src/net/tmwa/skillhandler.cpp
+++ b/src/net/tmwa/skillhandler.cpp
@@ -47,43 +47,11 @@ namespace TmwAthena
{
SkillHandler::SkillHandler() :
- MessageHandler(),
Ea::SkillHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_PLAYER_SKILLS,
- SMSG_SKILL_FAILED,
- SMSG_PLAYER_SKILL_UP,
- 0
- };
- handledMessages = _messages;
skillHandler = this;
}
-void SkillHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("SkillHandler::handleMessage")
- switch (msg.getId())
- {
- case SMSG_PLAYER_SKILLS:
- SkillRecv::processPlayerSkills(msg);
- break;
-
- case SMSG_PLAYER_SKILL_UP:
- Ea::SkillRecv::processPlayerSkillUp(msg);
- break;
-
- case SMSG_SKILL_FAILED:
- SkillRecv::processSkillFailed(msg);
- break;
-
- default:
- break;
- }
- BLOCK_END("SkillHandler::handleMessage")
-}
-
void SkillHandler::useBeing(const int id, const int level,
const BeingId beingId) const
{