diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-09-19 17:34:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:28:22 +0300 |
commit | 3669e19b813c50e521e9db86777fc715572a73bb (patch) | |
tree | 88d477087f694dfb5b0d888c4f1a8a91bf020528 /map/location_state.hpp | |
parent | c942cfaa0beafafac1c312abee52e61f529fef82 (diff) |
[core] location state animations
Diffstat (limited to 'map/location_state.hpp')
-rw-r--r-- | map/location_state.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/map/location_state.hpp b/map/location_state.hpp index fc63293b8a..adea91354b 100644 --- a/map/location_state.hpp +++ b/map/location_state.hpp @@ -13,6 +13,7 @@ class Framework; namespace graphics { class DisplayList; } +namespace anim { class Task;} namespace location { @@ -116,7 +117,6 @@ namespace location bool IsDirectionKnown() const; bool IsInRouting() const; - void FollowCompass(); void SetModeInfo(uint16_t modeInfo); private: @@ -142,12 +142,20 @@ namespace location TPositionListeners m_positionListeners; int m_currentSlotID; - /// @nameCompass Rendering Parameters + /// @name Compass Rendering Parameters //@{ unique_ptr<graphics::DisplayList> m_positionArrow; unique_ptr<graphics::DisplayList> m_locationMarkDL; unique_ptr<graphics::DisplayList> m_positionMarkDL; graphics::Color m_locationAreaColor; //@} + + /// @name Rotation mode animation + //@{ + shared_ptr<anim::Task> m_animTask; + bool FollowCompass(); + void CreateAnimTask(); + void EndAnimation(); + //@} }; } |