diff options
Diffstat (limited to 'src/net/manaserv/beinghandler.h')
-rw-r--r-- | src/net/manaserv/beinghandler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/manaserv/beinghandler.h b/src/net/manaserv/beinghandler.h index 0da4a296..a34e6537 100644 --- a/src/net/manaserv/beinghandler.h +++ b/src/net/manaserv/beinghandler.h @@ -33,6 +33,14 @@ class BeingHandler : public MessageHandler void handleMessage(Net::MessageIn &msg); + /** + * Translate a given speed in tiles per seconds + * into pixels per ticks. + * Used to optimize Being::logic() calls. + * @see MILLISECONDS_IN_A_TICKS + */ + static float giveSpeedInPixelsPerTicks(float speedInTilesPerSeconds); + private: void handleBeingAttackMessage(Net::MessageIn &msg); void handleBeingEnterMessage(Net::MessageIn &msg); |