diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-26 00:33:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-26 00:33:27 +0300 |
commit | 424023ca450e6f44d4d66468c1c3e3b551d9200c (patch) | |
tree | 799c3c399324a30fea05d712a042c21914e4e62f /src/net/eathena/elementalhandler.cpp | |
parent | 5ddbefcd1768f6274b46e4516277fbb0432f3f2d (diff) | |
download | mv-424023ca450e6f44d4d66468c1c3e3b551d9200c.tar.gz mv-424023ca450e6f44d4d66468c1c3e3b551d9200c.tar.bz2 mv-424023ca450e6f44d4d66468c1c3e3b551d9200c.tar.xz mv-424023ca450e6f44d4d66468c1c3e3b551d9200c.zip |
Move receive code from elementalhandler into separate file.
Diffstat (limited to 'src/net/eathena/elementalhandler.cpp')
-rw-r--r-- | src/net/eathena/elementalhandler.cpp | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp index b1f5b914f..1ddbb491f 100644 --- a/src/net/eathena/elementalhandler.cpp +++ b/src/net/eathena/elementalhandler.cpp @@ -22,6 +22,7 @@ #include "logger.h" +#include "net/eathena/elementalrecv.h" #include "net/eathena/protocol.h" #include "debug.h" @@ -49,11 +50,11 @@ void ElementalHandler::handleMessage(Net::MessageIn &msg) switch (msg.getId()) { case SMSG_ELEMENTAL_UPDATE_STATUS: - processElementalUpdateStatus(msg); + ElementalRecv::processElementalUpdateStatus(msg); break; case SMSG_ELEMENTAL_INFO: - processElementalInfo(msg); + ElementalRecv::processElementalInfo(msg); break; default: @@ -61,21 +62,4 @@ void ElementalHandler::handleMessage(Net::MessageIn &msg) } } -void ElementalHandler::processElementalUpdateStatus(Net::MessageIn &msg) -{ - UNIMPLIMENTEDPACKET; - msg.readInt16("type"); - msg.readInt32("value"); -} - -void ElementalHandler::processElementalInfo(Net::MessageIn &msg) -{ - UNIMPLIMENTEDPACKET; - msg.readInt32("elemental id"); - msg.readInt32("hp"); - msg.readInt32("max hp"); - msg.readInt32("sp"); - msg.readInt32("max sp"); -} - } // namespace EAthena |