Global timeline management for the animation system. More...
#include "animated.hpp"Go to the source code of this file.
Functions | |
| void | update_animation_timers (double acceleration) |
| Updates both animation timelines. More... | |
| std::chrono::steady_clock::time_point | get_current_animation_tick (bool uses_acceleration) |
| Gets the current time point for animations. More... | |
Global timeline management for the animation system.
Maintains two parallel timelines:
Definition in file animated.cpp.
| std::chrono::steady_clock::time_point get_current_animation_tick | ( | bool | uses_acceleration | ) |
Gets the current time point for animations.
| uses_acceleration | If true, returns accelerated timeline; otherwise normal timeline |
Definition at line 49 of file animated.cpp.
Referenced by unit_animation_component::refresh().
| void update_animation_timers | ( | double | acceleration = 1.0 | ) |
Updates both animation timelines.
Should be called once per frame before advancing any animations.
| acceleration | Multiplier for the accelerated timeline (1.0 = normal speed) |
Definition at line 38 of file animated.cpp.
Referenced by display::invalidate_animations(), and unit_animator::wait_until().