diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/manaserv/playerhandler.h | 3 | ||||
-rw-r--r-- | src/net/playerhandler.h | 6 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.h | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/net/manaserv/playerhandler.h b/src/net/manaserv/playerhandler.h index 6069c6da..8bba1580 100644 --- a/src/net/manaserv/playerhandler.h +++ b/src/net/manaserv/playerhandler.h @@ -69,6 +69,9 @@ class PlayerHandler : public MessageHandler, public Net::PlayerHandler Vector getPixelsPerTickMoveSpeed(Vector speed, Map *map = 0); + bool usePixelPrecision() + { return true; } + private: void handleMapChangeMessage(Net::MessageIn &msg); }; diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index 23277062..5d94a093 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -74,6 +74,12 @@ class PlayerHandler * Convert the original speed in pixel per tick for internal use. */ virtual Vector getPixelsPerTickMoveSpeed(Vector speed, Map *map = 0) = 0; + + /** + * Tells whether the client has to use pixel paths. + * Return false when tiles-center positions only are to be used. + */ + virtual bool usePixelPrecision() = 0; }; } // namespace Net diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index 4df74350..42eb85f2 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -61,6 +61,9 @@ class PlayerHandler : public MessageHandler, public Net::PlayerHandler Vector getDefaultMoveSpeed(); Vector getPixelsPerTickMoveSpeed(Vector speed, Map *map = 0); + + bool usePixelPrecision() + { return false; } }; } // namespace TmwAthena |