summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.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/beinghandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmanaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
manaverse-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp166
1 files changed, 0 insertions, 166 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index cf0df34e4..b3529b53c 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -38,44 +38,8 @@ namespace TmwAthena
{
BeingHandler::BeingHandler(const bool enableSync) :
- MessageHandler(),
Ea::BeingHandler(enableSync)
{
- static const uint16_t _messages[] =
- {
- SMSG_BEING_VISIBLE,
- SMSG_BEING_MOVE,
- SMSG_BEING_MOVE2,
- SMSG_BEING_REMOVE,
- SMSG_SKILL_DAMAGE,
- SMSG_BEING_ACTION,
- SMSG_BEING_SELFEFFECT,
- SMSG_BEING_EMOTION,
- SMSG_BEING_CHANGE_LOOKS,
- SMSG_BEING_CHANGE_LOOKS2,
- SMSG_BEING_NAME_RESPONSE,
- SMSG_PLAYER_GUILD_PARTY_INFO,
- SMSG_BEING_CHANGE_DIRECTION,
- SMSG_PLAYER_UPDATE_1,
- SMSG_PLAYER_UPDATE_2,
- SMSG_PLAYER_MOVE,
- SMSG_PLAYER_STOP,
- SMSG_PLAYER_MOVE_TO_ATTACK,
- SMSG_PLAYER_STATUS_CHANGE,
- SMSG_BEING_STATUS_CHANGE,
- SMSG_BEING_RESURRECT,
- SMSG_SOLVE_CHAR_NAME,
- SMSG_BEING_SPAWN,
- SMSG_SKILL_CASTING,
- SMSG_SKILL_CAST_CANCEL,
- SMSG_SKILL_NO_DAMAGE,
- SMSG_BEING_IP_RESPONSE,
- SMSG_PVP_MAP_MODE,
- SMSG_PVP_SET,
- SMSG_BEING_MOVE3,
- 0
- };
- handledMessages = _messages;
beingHandler = this;
}
@@ -85,136 +49,6 @@ void BeingHandler::requestNameById(const BeingId id) const
outMsg.writeBeingId(id, "being id");
}
-void BeingHandler::handleMessage(Net::MessageIn &msg)
-{
- BLOCK_START("BeingHandler::handleMessage")
- switch (msg.getId())
- {
- case SMSG_BEING_VISIBLE:
- BeingRecv::processBeingVisible(msg);
- break;
-
- case SMSG_BEING_MOVE:
- BeingRecv::processBeingMove(msg);
- break;
-
- case SMSG_BEING_MOVE2:
- BeingRecv::processBeingMove2(msg);
- break;
-
- case SMSG_BEING_MOVE3:
- Ea::BeingRecv::processBeingMove3(msg);
- break;
-
- case SMSG_BEING_SPAWN:
- BeingRecv::processBeingSpawn(msg);
- break;
-
- case SMSG_BEING_REMOVE:
- Ea::BeingRecv::processBeingRemove(msg);
- break;
-
- case SMSG_BEING_RESURRECT:
- BeingRecv::processBeingResurrect(msg);
- break;
-
- case SMSG_SKILL_DAMAGE:
- Ea::BeingRecv::processSkillDamage(msg);
- break;
-
- case SMSG_BEING_ACTION:
- Ea::BeingRecv::processBeingAction(msg);
- break;
-
- case SMSG_BEING_SELFEFFECT:
- BeingRecv::processBeingSelfEffect(msg);
- break;
-
- case SMSG_BEING_EMOTION:
- Ea::BeingRecv::processBeingEmotion(msg);
- break;
-
- case SMSG_BEING_CHANGE_LOOKS:
- BeingRecv::processBeingChangeLook(msg);
- break;
-
- case SMSG_BEING_CHANGE_LOOKS2:
- BeingRecv::processBeingChangeLook2(msg);
- break;
-
- case SMSG_BEING_NAME_RESPONSE:
- Ea::BeingRecv::processNameResponse(msg);
- break;
-
- case SMSG_BEING_IP_RESPONSE:
- BeingRecv::processIpResponse(msg);
- break;
-
- case SMSG_SOLVE_CHAR_NAME:
- break;
-
- case SMSG_PLAYER_GUILD_PARTY_INFO:
- BeingRecv::processPlayerGuilPartyInfo(msg);
- break;
-
- case SMSG_BEING_CHANGE_DIRECTION:
- BeingRecv::processBeingChangeDirection(msg);
- break;
-
- case SMSG_PLAYER_UPDATE_1:
- BeingRecv::processPlayerUpdate1(msg);
- break;
-
- case SMSG_PLAYER_UPDATE_2:
- BeingRecv::processPlayerUpdate2(msg);
- break;
-
- case SMSG_PLAYER_MOVE:
- BeingRecv::processPlayerMove(msg);
- break;
-
- case SMSG_PLAYER_STOP:
- Ea::BeingRecv::processPlayerStop(msg);
- break;
-
- case SMSG_PLAYER_MOVE_TO_ATTACK:
- Ea::BeingRecv::processPlayerMoveToAttack(msg);
- break;
-
- case SMSG_PLAYER_STATUS_CHANGE:
- BeingRecv::processPlaterStatusChange(msg);
- break;
-
- case SMSG_BEING_STATUS_CHANGE:
- BeingRecv::processBeingStatusChange(msg);
- break;
-
- case SMSG_SKILL_CASTING:
- BeingRecv::processSkillCasting(msg);
- break;
-
- case SMSG_SKILL_CAST_CANCEL:
- BeingRecv::processSkillCastCancel(msg);
- break;
-
- case SMSG_SKILL_NO_DAMAGE:
- Ea::BeingRecv::processSkillNoDamage(msg);
- break;
-
- case SMSG_PVP_MAP_MODE:
- Ea::BeingRecv::processPvpMapMode(msg);
- break;
-
- case SMSG_PVP_SET:
- BeingRecv::processPvpSet(msg);
- break;
-
- default:
- break;
- }
- BLOCK_END("BeingHandler::handleMessage")
-}
-
void BeingHandler::undress(Being *const being) const
{
if (!being)