Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-08-16 13:49:37 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:42:07 +0300
commita164270834a7d3d056f7a237a51da15621b18e07 (patch)
tree483cc7cb643d0160a31f3e02acf8edb853854609 /map/rotate_screen_task.hpp
parent96c0658a68e29d7b6671291c3c28b35dbd7d6086 (diff)
moved location handling from Framework into location::State and added "follow compass" mode.
Diffstat (limited to 'map/rotate_screen_task.hpp')
-rw-r--r--map/rotate_screen_task.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/map/rotate_screen_task.hpp b/map/rotate_screen_task.hpp
new file mode 100644
index 0000000000..f1a8c86337
--- /dev/null
+++ b/map/rotate_screen_task.hpp
@@ -0,0 +1,34 @@
+#pragma once
+
+#include "../anim/task.hpp"
+
+class Framework;
+
+class RotateScreenTask : public anim::Task
+{
+private:
+
+ Framework * m_framework;
+
+ double m_startTime;
+ double m_startAngle;
+ double m_endAngle;
+ double m_interval;
+ double m_curAngle;
+
+ bool m_isFinished;
+
+public:
+
+ RotateScreenTask(Framework * framework,
+ double startAngle,
+ double endAngle,
+ double interval);
+
+ void OnStart(double ts);
+ void OnStep(double ts);
+ void OnEnd(double ts);
+
+ bool IsFinished();
+ void Finish();
+};