summaryrefslogtreecommitdiff
path: root/src/net/eathena/familyhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/familyhandler.cpp')
-rw-r--r--src/net/eathena/familyhandler.cpp37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp
index 8d4949b4f..37c6cd079 100644
--- a/src/net/eathena/familyhandler.cpp
+++ b/src/net/eathena/familyhandler.cpp
@@ -33,49 +33,14 @@ extern Net::FamilyHandler *familyHandler;
namespace EAthena
{
-FamilyHandler::FamilyHandler() :
- MessageHandler()
+FamilyHandler::FamilyHandler()
{
FamilyRecv::mParent1 = 0;
FamilyRecv::mParent2 = 0;
- static const uint16_t _messages[] =
- {
- SMSG_FAMILY_ASK_FOR_CHILD,
- SMSG_FAMILY_CALL_PARTNER,
- SMSG_FAMILY_DIVORCED,
- SMSG_FAMILY_ASK_FOR_CHILD_REPLY,
- 0
- };
- handledMessages = _messages;
familyHandler = this;
}
-void FamilyHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_FAMILY_ASK_FOR_CHILD:
- FamilyRecv::processAskForChild(msg);
- break;
-
- case SMSG_FAMILY_CALL_PARTNER:
- FamilyRecv::processCallPartner(msg);
- break;
-
- case SMSG_FAMILY_DIVORCED:
- FamilyRecv::processDivorced(msg);
- break;
-
- case SMSG_FAMILY_ASK_FOR_CHILD_REPLY:
- FamilyRecv::processAskForChildReply(msg);
- break;
-
- default:
- break;
- }
-}
-
void FamilyHandler::askForChild(const Being *const being)
{
if (!being)