summaryrefslogtreecommitdiff
path: root/src/net/eathena/homunculushandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r--src/net/eathena/homunculushandler.cpp42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp
index 53eac18ab..c29149f44 100644
--- a/src/net/eathena/homunculushandler.cpp
+++ b/src/net/eathena/homunculushandler.cpp
@@ -35,51 +35,11 @@ extern Net::HomunculusHandler *homunculusHandler;
namespace EAthena
{
-HomunculusHandler::HomunculusHandler() :
- MessageHandler()
+HomunculusHandler::HomunculusHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_HOMUNCULUS_SKILLS,
- SMSG_HOMUNCULUS_DATA,
- SMSG_HOMUNCULUS_INFO,
- SMSG_HOMUNCULUS_SKILL_UP,
- SMSG_HOMUNCULUS_FOOD,
- 0
- };
- handledMessages = _messages;
homunculusHandler = this;
}
-void HomunculusHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_HOMUNCULUS_SKILLS:
- HomunculusRecv::processHomunculusSkills(msg);
- break;
-
- case SMSG_HOMUNCULUS_DATA:
- HomunculusRecv::processHomunculusData(msg);
- break;
-
- case SMSG_HOMUNCULUS_INFO:
- HomunculusRecv::processHomunculusInfo(msg);
- break;
-
- case SMSG_HOMUNCULUS_SKILL_UP:
- HomunculusRecv::processHomunculusSkillUp(msg);
- break;
-
- case SMSG_HOMUNCULUS_FOOD:
- HomunculusRecv::processHomunculusFood(msg);
- break;
-
- default:
- break;
- }
-}
-
void HomunculusHandler::setName(const std::string &name) const
{
createOutPacket(CMSG_HOMUNCULUS_SET_NAME);