Public Types | |
enum | cycle_state { UNSET, CYCLE, NO_CYCLE } |
Public Types inherited from animated< unit_frame > | |
typedef std::pair< int, unit_frame > | frame_description |
typedef std::vector < frame_description > | anim_description |
Public Attributes | |
bool | accelerate |
Private Attributes | |
frame_parsed_parameters | parameters_ |
halo::handle | halo_id_ |
int | last_frame_begin_time_ |
bool | cycles_ |
Additional Inherited Members | |
Static Public Attributes inherited from animated< unit_frame > | |
static const unit_frame | void_value_ |
Protected Member Functions inherited from animated< unit_frame > | |
void | remove_frames_until (int starting_time) |
void | set_end_time (int ending_time) |
Protected Attributes inherited from animated< unit_frame > | |
int | starting_frame_time_ |
Definition at line 86 of file animation.hpp.
Enumerator | |
---|---|
UNSET | |
CYCLE | |
NO_CYCLE |
Definition at line 103 of file animation.hpp.
|
inlineexplicit |
Definition at line 89 of file animation.hpp.
|
explicit |
Definition at line 876 of file animation.cpp.
References animated< unit_frame >::add_frame(), config::child_range(), cycles_, frame_parsed_parameters::does_not_change(), unit_frame::does_not_change(), unit_frame::duration(), animated< unit_frame >::force_change(), animated< unit_frame >::get_animation_duration(), parameters_, and animated< unit_frame >::starting_frame_time_.
|
virtual |
Definition at line 1251 of file animation.cpp.
void unit_animation::particule::clear_halo | ( | ) |
Definition at line 1239 of file animation.cpp.
Referenced by unit_animation::clear_haloes().
std::set< map_location > unit_animation::particule::get_overlaped_hex | ( | const frame_parameters & | value, |
const map_location & | src, | ||
const map_location & | dst | ||
) |
Definition at line 1243 of file animation.cpp.
References unit_animation::get_animation_time(), unit_animation::get_begin_time(), and unit_frame::get_overlaped_hex().
Referenced by unit_animation::invalidate().
bool unit_animation::particule::need_minimal_update | ( | ) | const |
Definition at line 868 of file animation.cpp.
References unit_animation::get_current_frame_begin_time().
Referenced by unit_animation::need_minimal_update().
bool unit_animation::particule::need_update | ( | ) | const |
Definition at line 860 of file animation.cpp.
References unit_animation::need_update().
Referenced by unit_animation::need_update().
void unit_animation::particule::override | ( | int | start_time, |
int | duration, | ||
const cycle_state | cycles, | ||
const std::string & | highlight = "" , |
||
const std::string & | blend_ratio = "" , |
||
Uint32 | blend_color = 0 , |
||
const std::string & | offset = "" , |
||
const std::string & | layer = "" , |
||
const std::string & | modifiers = "" |
||
) |
Definition at line 830 of file animation.cpp.
References animated< unit_frame >::add_frame(), CYCLE, cycles_, animated< unit_frame >::get_animation_duration(), animated< unit_frame >::get_last_frame(), NO_CYCLE, frame_parsed_parameters::override(), parameters_, animated< unit_frame >::set_begin_time(), and animated< unit_frame >::set_end_time().
|
inline |
Definition at line 116 of file animation.hpp.
References animated< unit_frame >::get_animation_time(), animated< unit_frame >::get_begin_time(), animated< unit_frame >::get_current_frame(), animated< unit_frame >::get_current_frame_time(), unit_frame::merge_parameters(), frame_parsed_parameters::parameters(), and parameters_.
Referenced by unit_animation::get_current_params().
void unit_animation::particule::redraw | ( | const frame_parameters & | value, |
const map_location & | src, | ||
const map_location & | dst, | ||
halo::manager & | halo_man | ||
) |
Definition at line 1216 of file animation.cpp.
References unit_animation::get_animation_time(), unit_animation::get_begin_time(), unit_animation::get_current_frame_begin_time(), and unit_frame::redraw().
Referenced by unit_animation::redraw().
Definition at line 1256 of file animation.cpp.
References unit_animation::get_begin_time(), and animated< T, T_void_value >::start_animation().
Referenced by unit_animation::start_animation().
bool unit_animation::particule::accelerate |
Definition at line 118 of file animation.hpp.
Referenced by unit_animation::start_animation(), and unit_animation::update_last_draw_time().
|
private |
Definition at line 125 of file animation.hpp.
Referenced by override(), and particule().
|
private |
Definition at line 123 of file animation.hpp.
|
private |
Definition at line 124 of file animation.hpp.
|
private |
Definition at line 122 of file animation.hpp.
Referenced by override(), parameters(), and particule().