summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp156
1 files changed, 0 insertions, 156 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 4779cee4b..7c4bab97a 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -56,167 +56,11 @@ namespace EAthena
{
PlayerHandler::PlayerHandler() :
- MessageHandler(),
Ea::PlayerHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_WALK_RESPONSE,
- SMSG_PLAYER_WARP,
- SMSG_PLAYER_STAT_UPDATE_1,
- SMSG_PLAYER_STAT_UPDATE_2,
- SMSG_PLAYER_STAT_UPDATE_3,
- SMSG_PLAYER_STAT_UPDATE_4,
- SMSG_PLAYER_STAT_UPDATE_5,
- SMSG_PLAYER_STAT_UPDATE_6,
- SMSG_PLAYER_ARROW_MESSAGE,
- SMSG_PLAYER_SHORTCUTS,
- SMSG_PLAYER_SHOW_EQUIP,
- SMSG_PLAYER_GET_EXP,
- SMSG_PVP_INFO,
- SMSG_PLAYER_HEAL,
- SMSG_PLAYER_SKILL_MESSAGE,
- SMSG_MAP_MASK,
- SMSG_MAP_MUSIC,
- SMSG_ONLINE_LIST,
- SMSG_PLAYER_NOTIFY_MAPINFO,
- SMSG_PLAYER_FAME_BLACKSMITH,
- SMSG_PLAYER_FAME_ALCHEMIST,
- SMSG_PLAYER_UPGRADE_MESSAGE,
- SMSG_PLAYER_FAME_TAEKWON,
- SMSG_PLAYER_READ_BOOK,
- SMSG_PLAYER_EQUIP_TICK_ACK,
- SMSG_AUTOSHADOW_SPELL_LIST,
- SMSG_PLAYER_RANK_POINTS,
- SMSG_PLAYER_CLIENT_COMMAND,
- 0
- };
- handledMessages = _messages;
playerHandler = this;
}
-void PlayerHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_WALK_RESPONSE:
- PlayerRecv::processWalkResponse(msg);
- break;
-
- case SMSG_PLAYER_WARP:
- Ea::PlayerRecv::processPlayerWarp(msg);
- break;
-
- case SMSG_PLAYER_STAT_UPDATE_1:
- Ea::PlayerRecv::processPlayerStatUpdate1(msg);
- break;
-
- case SMSG_PLAYER_STAT_UPDATE_2:
- Ea::PlayerRecv::processPlayerStatUpdate2(msg);
- break;
-
- case SMSG_PLAYER_STAT_UPDATE_3: // Update a base attribute
- Ea::PlayerRecv::processPlayerStatUpdate3(msg);
- break;
-
- case SMSG_PLAYER_STAT_UPDATE_4: // Attribute increase ack
- Ea::PlayerRecv::processPlayerStatUpdate4(msg);
- break;
-
- // Updates stats and status points
- case SMSG_PLAYER_STAT_UPDATE_5:
- PlayerRecv::processPlayerStatUpdate5(msg);
- break;
-
- case SMSG_PLAYER_STAT_UPDATE_6:
- Ea::PlayerRecv::processPlayerStatUpdate6(msg);
- break;
-
- case SMSG_PLAYER_ARROW_MESSAGE:
- Ea::PlayerRecv::processPlayerArrowMessage(msg);
- break;
-
- case SMSG_PLAYER_SHORTCUTS:
- PlayerRecv::processPlayerShortcuts(msg);
- break;
-
- case SMSG_PLAYER_SHOW_EQUIP:
- PlayerRecv::processPlayerShowEquip(msg);
- break;
-
- case SMSG_PLAYER_GET_EXP:
- PlayerRecv::processPlayerGetExp(msg);
- break;
-
- case SMSG_PVP_INFO:
- PlayerRecv::processPvpInfo(msg);
- break;
-
- case SMSG_PLAYER_HEAL:
- PlayerRecv::processPlayerHeal(msg);
- break;
-
- case SMSG_PLAYER_SKILL_MESSAGE:
- PlayerRecv::processPlayerSkillMessage(msg);
- break;
-
- case SMSG_MAP_MASK:
- PlayerRecv::processMapMask(msg);
- break;
-
- case SMSG_MAP_MUSIC:
- Ea::PlayerRecv::processMapMusic(msg);
- break;
-
- case SMSG_ONLINE_LIST:
- PlayerRecv::processOnlineList(msg);
- break;
-
- case SMSG_PLAYER_NOTIFY_MAPINFO:
- PlayerRecv::processNotifyMapInfo(msg);
- break;
-
- case SMSG_PLAYER_FAME_BLACKSMITH:
- PlayerRecv::processPlayerFameBlacksmith(msg);
- break;
-
- case SMSG_PLAYER_FAME_ALCHEMIST:
- PlayerRecv::processPlayerFameAlchemist(msg);
- break;
-
- case SMSG_PLAYER_UPGRADE_MESSAGE:
- PlayerRecv::processPlayerUpgradeMessage(msg);
- break;
-
- case SMSG_PLAYER_FAME_TAEKWON:
- PlayerRecv::processPlayerFameTaekwon(msg);
- break;
-
- case SMSG_PLAYER_READ_BOOK:
- PlayerRecv::processPlayerReadBook(msg);
- break;
-
- case SMSG_PLAYER_EQUIP_TICK_ACK:
- PlayerRecv::processPlayerEquipTickAck(msg);
- break;
-
- case SMSG_AUTOSHADOW_SPELL_LIST:
- PlayerRecv::processPlayerAutoShadowSpellList(msg);
- break;
-
- case SMSG_PLAYER_RANK_POINTS:
- PlayerRecv::processPlayerRankPoints(msg);
- break;
-
- case SMSG_PLAYER_CLIENT_COMMAND:
- PlayerRecv::processPlayerClientCommand(msg);
- break;
-
- default:
- break;
- }
-}
-
void PlayerHandler::attack(const BeingId id,
const Keep keep) const
{