diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-19 23:41:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-20 20:50:00 +0300 |
commit | 78ab801cc5dfe687718ec7e027c3050bed62a1e9 (patch) | |
tree | 064fc82cf6aed1dbcd0a5650b146e74cf23a20a0 /src/net/tmwa/beinghandler.h | |
parent | 2a2155ae3c601fe1f813f9214b1421e4ac634148 (diff) | |
download | manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.gz manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.bz2 manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.tar.xz manaverse-78ab801cc5dfe687718ec7e027c3050bed62a1e9.zip |
Start separating netcode to functions and moving some code to ea name space
for future usage for different server types.
Processed classes: adminhandler, beinghandler, buysellhandler.
Diffstat (limited to 'src/net/tmwa/beinghandler.h')
-rw-r--r-- | src/net/tmwa/beinghandler.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index aa278b1d6..5e741aaa8 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -26,12 +26,14 @@ #include "net/beinghandler.h" #include "net/net.h" +#include "net/ea/beinghandler.h" + #include "net/tmwa/messagehandler.h" namespace TmwAthena { -class BeingHandler : public MessageHandler, public Net::BeingHandler +class BeingHandler : public MessageHandler, public Ea::BeingHandler { public: BeingHandler(bool enableSync); @@ -42,10 +44,12 @@ class BeingHandler : public MessageHandler, public Net::BeingHandler virtual void undress(Being *being); - private: - // Should we honor server "Stop Walking" packets - bool mSync; - int mSpawnId; + protected: + virtual void processBeingChangeLook(Net::MessageIn &msg, bool look2); + + void processNameResponse2(Net::MessageIn &msg); + + virtual void processPlayerMoveUpdate(Net::MessageIn &msg, int type); }; } // namespace TmwAthena |