diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-09-26 20:35:42 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:44:17 +0300 |
commit | e34c917715aea8cefc1a78d8f08792c3bb4571a2 (patch) | |
tree | a7ee705c315efc521b421ac81ebe9ecda1895ebc /map/rotate_screen_task.hpp | |
parent | eefeba649d48a433bc291e07e771b56a66603500 (diff) |
refactored RotateScreenTask using anim::AngleInterpolation base class.
Diffstat (limited to 'map/rotate_screen_task.hpp')
-rw-r--r-- | map/rotate_screen_task.hpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/map/rotate_screen_task.hpp b/map/rotate_screen_task.hpp index 7cbde9f446..9865f2ed43 100644 --- a/map/rotate_screen_task.hpp +++ b/map/rotate_screen_task.hpp @@ -1,31 +1,23 @@ #pragma once -#include "../anim/task.hpp" +#include "../anim/angle_interpolation.hpp" class Framework; -class RotateScreenTask : public anim::Task +class RotateScreenTask : public anim::AngleInterpolation { private: Framework * m_framework; - - double m_startTime; - double m_startAngle; - double m_dist; - double m_endAngle; - double m_interval; + double m_outAngle; public: RotateScreenTask(Framework * framework, double startAngle, double endAngle, - double interval); + double speed); - void OnStart(double ts); void OnStep(double ts); void OnEnd(double ts); - - double EndAngle() const; }; |