summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.cpp
diff options
context:
space:
mode:
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);