summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.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/eathena/partyhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
mv-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r--src/net/eathena/partyhandler.cpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index 47bcf7aef..ea672e11a 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -43,26 +43,8 @@ namespace EAthena
{
PartyHandler::PartyHandler() :
- MessageHandler(),
Ea::PartyHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_PARTY_CREATE,
- SMSG_PARTY_INFO,
- SMSG_PARTY_INVITE_RESPONSE,
- SMSG_PARTY_INVITED,
- SMSG_PARTY_SETTINGS,
- SMSG_PARTY_LEAVE,
- SMSG_PARTY_UPDATE_COORDS,
- SMSG_PARTY_MESSAGE,
- SMSG_PARTY_INVITATION_STATS,
- SMSG_PARTY_MEMBER_INFO,
- SMSG_PARTY_ITEM_PICKUP,
- SMSG_PARTY_LEADER,
- 0
- };
- handledMessages = _messages;
partyHandler = this;
}
@@ -70,52 +52,6 @@ PartyHandler::~PartyHandler()
{
}
-void PartyHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_PARTY_CREATE:
- Ea::PartyRecv::processPartyCreate(msg);
- break;
- case SMSG_PARTY_INFO:
- PartyRecv::processPartyInfo(msg);
- break;
- case SMSG_PARTY_INVITE_RESPONSE:
- PartyRecv::processPartyInviteResponse(msg);
- break;
- case SMSG_PARTY_INVITED:
- PartyRecv::processPartyInvited(msg);
- break;
- case SMSG_PARTY_SETTINGS:
- PartyRecv::processPartySettings(msg);
- break;
- case SMSG_PARTY_LEAVE:
- Ea::PartyRecv::processPartyLeave(msg);
- break;
- case SMSG_PARTY_UPDATE_COORDS:
- Ea::PartyRecv::processPartyUpdateCoords(msg);
- break;
- case SMSG_PARTY_MESSAGE:
- PartyRecv::processPartyMessage(msg);
- break;
- case SMSG_PARTY_INVITATION_STATS:
- PartyRecv::processPartyInvitationStats(msg);
- break;
- case SMSG_PARTY_MEMBER_INFO:
- PartyRecv::processPartyMemberInfo(msg);
- break;
- case SMSG_PARTY_ITEM_PICKUP:
- PartyRecv::processPartyItemPickup(msg);
- break;
- case SMSG_PARTY_LEADER:
- PartyRecv::processPartyLeader(msg);
- break;
-
- default:
- break;
- }
-}
-
void PartyHandler::create(const std::string &name) const
{
createOutPacket(CMSG_PARTY_CREATE);