diff options
author | vng <viktor.govako@gmail.com> | 2014-09-06 13:54:20 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:26:10 +0300 |
commit | d9ca6e56ef92b248221b66ab0f79437c573c469b (patch) | |
tree | 830f5d1ce26c3a0289fc2d8e7cfa04071d816c1c /map/alfa_animation_task.hpp | |
parent | 573e647de3a22282d0e993c30ffa05f4075c1e93 (diff) |
Minor refactoring of InformationDisplay:
- remove useless class data
- do not recalculate layout on every frame draw; do it when size changed only
- use unique_ptr instead of shared_ptr
- remove useless includes
Diffstat (limited to 'map/alfa_animation_task.hpp')
-rw-r--r-- | map/alfa_animation_task.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/map/alfa_animation_task.hpp b/map/alfa_animation_task.hpp index cc446fc4b0..51be4d28dc 100644 --- a/map/alfa_animation_task.hpp +++ b/map/alfa_animation_task.hpp @@ -2,16 +2,19 @@ #include "../anim/task.hpp" + class Framework; class AlfaAnimationTask : public anim::Task { - typedef anim::Task base_t; + typedef anim::Task BaseT; + public: - AlfaAnimationTask(double start, double end, double timeInterval, double timeOffset, Framework * f); + AlfaAnimationTask(double start, double end, + double timeInterval, double timeOffset, + Framework * f); bool IsHiding() const; - float GetCurrentAlfa() const; virtual void OnStart(double ts); |