YAPOG  0.0.1
Yet Another Pokemon Online Game
ObjectMoveInfoHandler.cpp
Go to the documentation of this file.
2 
6 
7 namespace ycl
8 {
10  : yap::BaseDynamicWorldObjectVisitor ()
11  , packet_ (packet)
12  {
13  }
14 
16  {
17  }
18 
20  yap::DynamicWorldObject& visitable)
21  {
23 
24  yap::Vector2 objectPosition = packet_.ReadVector2 ();
25  yap::Vector2 objectVelocity = packet_.ReadVector2 ();
26 
27  visitable.SetPosition (objectPosition);
28  visitable.RawSetVelocity (objectVelocity);
29  }
30 } // namespace ycl