36 explicit animated(
const std::vector<frame_description>& cfg,
int start_time = 0,
bool force_change =
false);
118 frame(
int duration,
const T& value,
int start_time)
int get_current_animation_tick()
void new_animation_frame()
const T & get_first_frame() const
int get_current_frame_begin_time() const
const T & get_frame(std::size_t n) const
std::vector< frame > frames_
int time_to_tick(int animation_time) const
virtual ~animated()=default
int get_animation_time_potential() const
void set_max_animation_time(int time)
void set_end_time(int ending_time)
bool animation_finished_potential() const
int get_begin_time() const
animated(int start_time=0)
void update_last_draw_time(double acceleration=0)
void start_animation(int start_time, bool cycles=false)
Starts an animation cycle.
int get_animation_duration() const
std::vector< frame_description > anim_description
void remove_frames_until(int starting_time)
const T & get_last_frame() const
animated(const std::vector< frame_description > &cfg, int start_time=0, bool force_change=false)
int get_current_frame_time() const
bool does_not_change() const
void set_begin_time(int new_begin_time)
int get_current_frame_end_time() const
bool animation_finished() const
Returns true if the current animation was finished.
std::pair< int, T > frame_description
int get_current_frame_duration() const
const T & get_current_frame() const
int get_animation_time() const
void set_animation_time(int time)
std::size_t get_frames_count() const
void add_frame(int duration, const T &value, bool force_change=false)
Adds a frame to an animation.
static const T void_value_
int tick_to_time(int animation_tick) const
frame(int duration, const T &value, int start_time)
static map_location::DIRECTION n