Public Member Functions | |
particule (int start_time=0) | |
particule (const config &cfg, const std::string frame_string="frame") | |
virtual | ~particule () |
bool | need_update () const |
void | override (int start_time, const std::string highlight="", const std::string blend_ratio="", Uint32 blend_color=0, const std::string offset="") |
void | redraw (const frame_parameters &value) |
void | invalidate (const frame_parameters &value, const bool primary=false) const |
void | start_animation (int start_time, const gamemap::location &src, const gamemap::location &dst, bool cycles=false) |
const frame_parameters | parameters (const frame_parameters &default_val, bool primary) const |
Public Attributes | |
bool | accelerate |
Private Attributes | |
frame_builder | parameters_ |
gamemap::location | src_ |
gamemap::location | dst_ |
int | halo_id_ |
int | last_frame_begin_time_ |
Definition at line 69 of file unit_animation.hpp.
unit_animation::particule::particule | ( | int | start_time = 0 |
) | [inline, explicit] |
Definition at line 72 of file unit_animation.hpp.
unit_animation::particule::particule | ( | const config & | cfg, | |
const std::string | frame_string = "frame" | |||
) | [explicit] |
Definition at line 608 of file unit_animation.cpp.
References animated< unit_frame >::add_frame(), config::child_range(), frame_builder::does_not_change(), unit_frame::does_not_change(), frame_builder::duration(), unit_frame::duration(), animated< unit_frame >::force_change(), animated< unit_frame >::get_animation_duration(), minimum(), parameters_, and animated< unit_frame >::starting_frame_time_.
unit_animation::particule::~particule | ( | ) | [virtual] |
Definition at line 769 of file unit_animation.cpp.
References halo_id_, halo::NO_HALO, and halo::remove().
bool unit_animation::particule::need_update | ( | ) | const |
Reimplemented from animated< unit_frame >.
Definition at line 600 of file unit_animation.cpp.
References animated< unit_frame >::get_current_frame(), frame_builder::need_update(), and parameters_.
Referenced by unit_animation::need_update().
void unit_animation::particule::override | ( | int | start_time, | |
const std::string | highlight = "" , |
|||
const std::string | blend_ratio = "" , |
|||
Uint32 | blend_color = 0 , |
|||
const std::string | offset = "" | |||
) |
Definition at line 590 of file unit_animation.cpp.
References frame_builder::blend(), frame_builder::highlight(), frame_builder::offset(), parameters_, and animated< unit_frame >::set_begin_time().
Referenced by unit_animation::fill_initial_animations().
void unit_animation::particule::redraw | ( | const frame_parameters & | value | ) |
Definition at line 751 of file unit_animation.cpp.
References dst_, animated< unit_frame >::get_animation_time(), animated< unit_frame >::get_begin_time(), animated< unit_frame >::get_current_frame(), animated< unit_frame >::get_current_frame_begin_time(), animated< unit_frame >::get_current_frame_time(), halo_id_, last_frame_begin_time_, frame_builder::parameters(), parameters_, unit_frame::redraw(), and src_.
void unit_animation::particule::invalidate | ( | const frame_parameters & | value, | |
const bool | primary = false | |||
) | const |
Definition at line 762 of file unit_animation.cpp.
References dst_, 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::invalidate(), frame_builder::parameters(), parameters_, and src_.
Referenced by unit_animation::invalidate().
void unit_animation::particule::start_animation | ( | int | start_time, | |
const gamemap::location & | src, | |||
const gamemap::location & | dst, | |||
bool | cycles = false | |||
) |
Definition at line 775 of file unit_animation.cpp.
References dst_, frame_builder::duration(), animated< unit_frame >::get_animation_duration(), animated< unit_frame >::get_begin_time(), halo_id_, last_frame_begin_time_, halo::NO_HALO, gamemap::location::null_location, parameters_, halo::remove(), src_, and animated< T, T_void_value >::start_animation().
Referenced by unit_animation::start_animation().
const frame_parameters unit_animation::particule::parameters | ( | const frame_parameters & | default_val, | |
bool | primary | |||
) | const [inline] |
Definition at line 88 of file unit_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_builder::parameters(), and parameters_.
Referenced by unit_animation::get_current_params().
Definition at line 88 of file unit_animation.hpp.
Referenced by unit_animation::start_animation(), and unit_animation::update_last_draw_time().
Definition at line 93 of file unit_animation.hpp.
Referenced by invalidate(), need_update(), override(), parameters(), particule(), redraw(), and start_animation().
Definition at line 94 of file unit_animation.hpp.
Referenced by invalidate(), redraw(), and start_animation().
Definition at line 95 of file unit_animation.hpp.
Referenced by invalidate(), redraw(), and start_animation().
int unit_animation::particule::halo_id_ [private] |
Definition at line 96 of file unit_animation.hpp.
Referenced by redraw(), start_animation(), and ~particule().
int unit_animation::particule::last_frame_begin_time_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |