#include <unit_frame.hpp>
Public Member Functions | |
frame_builder () | |
initial constructor | |
frame_builder (const config &cfg, const std::string &frame_string="") | |
frame_builder & | image (const image::locator image, const std::string &image_mod="") |
allow easy chained modifications will raised assert if used after initialization | |
frame_builder & | image_diagonal (const image::locator image_diagonal, const std::string &image_mod="") |
frame_builder & | sound (const std::string &sound) |
frame_builder & | text (const std::string &text, const Uint32 text_color) |
frame_builder & | halo (const std::string &halo, const std::string &halo_x, const std::string &halo_y) |
frame_builder & | duration (const int duration) |
frame_builder & | blend (const std::string &blend_ratio, const Uint32 blend_color) |
frame_builder & | highlight (const std::string &highlight) |
frame_builder & | offset (const std::string &offset) |
frame_builder & | submerge (const std::string &submerge) |
frame_builder & | x (const std::string &x) |
frame_builder & | y (const std::string &y) |
const frame_parameters | parameters (int current_time) const |
getters for the different parameters | |
int | duration () const |
void | recalculate_duration () |
bool | does_not_change () const |
bool | need_update () const |
Private Attributes | |
image::locator | image_ |
image::locator | image_diagonal_ |
std::string | image_mod_ |
progressive_string | halo_ |
progressive_int | halo_x_ |
progressive_int | halo_y_ |
std::string | sound_ |
std::string | text_ |
Uint32 | text_color_ |
int | duration_ |
Uint32 | blend_with_ |
progressive_double | blend_ratio_ |
progressive_double | highlight_ratio_ |
progressive_double | offset_ |
progressive_double | submerge_ |
progressive_int | x_ |
progressive_int | y_ |
Definition at line 111 of file unit_frame.hpp.
frame_builder::frame_builder | ( | ) | [inline] |
frame_builder::frame_builder | ( | const config & | cfg, | |
const std::string & | frame_string = "" | |||
) |
Definition at line 158 of file unit_frame.cpp.
References blend(), duration(), halo(), highlight(), image(), image_diagonal(), offset(), display::rgb(), sound(), utils::split(), submerge(), text(), x(), and y().
frame_builder & frame_builder::image | ( | const image::locator | image, | |
const std::string & | image_mod = "" | |||
) |
allow easy chained modifications will raised assert if used after initialization
Definition at line 213 of file unit_frame.cpp.
References image_, and image_mod_.
Referenced by frame_builder().
frame_builder & frame_builder::image_diagonal | ( | const image::locator | image_diagonal, | |
const std::string & | image_mod = "" | |||
) |
Definition at line 219 of file unit_frame.cpp.
References image_diagonal_, and image_mod_.
Referenced by frame_builder().
frame_builder & frame_builder::sound | ( | const std::string & | sound | ) |
frame_builder & frame_builder::text | ( | const std::string & | text, | |
const Uint32 | text_color | |||
) |
Definition at line 230 of file unit_frame.cpp.
References text_, and text_color_.
Referenced by frame_builder().
frame_builder & frame_builder::halo | ( | const std::string & | halo, | |
const std::string & | halo_x, | |||
const std::string & | halo_y | |||
) |
Definition at line 236 of file unit_frame.cpp.
References duration_, halo_, halo_x_, and halo_y_.
Referenced by frame_builder().
frame_builder & frame_builder::duration | ( | const int | duration | ) |
Definition at line 243 of file unit_frame.cpp.
References duration_, and recalculate_duration().
Referenced by unit_frame::duration(), unit_animation::particule::particule(), and unit_animation::particule::start_animation().
frame_builder & frame_builder::blend | ( | const std::string & | blend_ratio, | |
const Uint32 | blend_color | |||
) |
Definition at line 261 of file unit_frame.cpp.
References blend_ratio_, blend_with_, and duration_.
Referenced by frame_builder(), and unit_animation::particule::override().
frame_builder & frame_builder::highlight | ( | const std::string & | highlight | ) |
Definition at line 267 of file unit_frame.cpp.
References duration_, and highlight_ratio_.
Referenced by frame_builder(), and unit_animation::particule::override().
frame_builder & frame_builder::offset | ( | const std::string & | offset | ) |
Definition at line 272 of file unit_frame.cpp.
References duration_, and offset_.
Referenced by frame_builder(), and unit_animation::particule::override().
frame_builder & frame_builder::submerge | ( | const std::string & | submerge | ) |
Definition at line 277 of file unit_frame.cpp.
References duration_, and submerge_.
Referenced by frame_builder().
frame_builder & frame_builder::x | ( | const std::string & | x | ) |
frame_builder & frame_builder::y | ( | const std::string & | y | ) |
const frame_parameters frame_builder::parameters | ( | int | current_time | ) | const |
getters for the different parameters
Definition at line 191 of file unit_frame.cpp.
References frame_parameters::blend_ratio, blend_ratio_, frame_parameters::blend_with, blend_with_, frame_parameters::duration, duration_, progressive_< T >::get_current_element(), progressive_string::get_current_element(), frame_parameters::halo, halo_, frame_parameters::halo_x, halo_x_, frame_parameters::halo_y, halo_y_, frame_parameters::highlight_ratio, highlight_ratio_, frame_parameters::image, image_, frame_parameters::image_diagonal, image_diagonal_, frame_parameters::image_mod, image_mod_, frame_parameters::offset, offset_, frame_parameters::sound, sound_, frame_parameters::submerge, submerge_, frame_parameters::text, text_, frame_parameters::text_color, text_color_, frame_parameters::x, x_, frame_parameters::y, and y_.
Referenced by unit_animation::particule::invalidate(), unit_frame::merge_parameters(), unit_frame::parameters(), unit_animation::particule::parameters(), and unit_animation::particule::redraw().
int frame_builder::duration | ( | ) | const [inline] |
void frame_builder::recalculate_duration | ( | ) |
Definition at line 249 of file unit_frame.cpp.
References blend_ratio_, duration_, progressive_< T >::get_original(), progressive_string::get_original(), halo_, halo_x_, halo_y_, highlight_ratio_, offset_, submerge_, x_, and y_.
Referenced by duration().
bool frame_builder::does_not_change | ( | ) | const |
Definition at line 292 of file unit_frame.cpp.
References blend_ratio_, progressive_< T >::does_not_change(), progressive_string::does_not_change(), halo_, halo_x_, halo_y_, highlight_ratio_, offset_, submerge_, x_, and y_.
Referenced by unit_frame::does_not_change(), and unit_animation::particule::particule().
bool frame_builder::need_update | ( | ) | const |
Definition at line 304 of file unit_frame.cpp.
References blend_ratio_, progressive_< T >::does_not_change(), progressive_string::does_not_change(), halo_, halo_x_, halo_y_, highlight_ratio_, offset_, submerge_, x_, and y_.
Referenced by unit_frame::need_update(), and unit_animation::particule::need_update().
image::locator frame_builder::image_ [private] |
image::locator frame_builder::image_diagonal_ [private] |
std::string frame_builder::image_mod_ [private] |
Definition at line 157 of file unit_frame.hpp.
Referenced by image(), image_diagonal(), and parameters().
progressive_string frame_builder::halo_ [private] |
Definition at line 158 of file unit_frame.hpp.
Referenced by does_not_change(), halo(), need_update(), parameters(), and recalculate_duration().
progressive_int frame_builder::halo_x_ [private] |
Definition at line 159 of file unit_frame.hpp.
Referenced by does_not_change(), halo(), need_update(), parameters(), and recalculate_duration().
progressive_int frame_builder::halo_y_ [private] |
Definition at line 160 of file unit_frame.hpp.
Referenced by does_not_change(), halo(), need_update(), parameters(), and recalculate_duration().
std::string frame_builder::sound_ [private] |
std::string frame_builder::text_ [private] |
Uint32 frame_builder::text_color_ [private] |
int frame_builder::duration_ [private] |
Definition at line 164 of file unit_frame.hpp.
Referenced by blend(), duration(), halo(), highlight(), offset(), parameters(), recalculate_duration(), submerge(), x(), and y().
Uint32 frame_builder::blend_with_ [private] |
Definition at line 166 of file unit_frame.hpp.
Referenced by blend(), does_not_change(), need_update(), parameters(), and recalculate_duration().
Definition at line 167 of file unit_frame.hpp.
Referenced by does_not_change(), highlight(), need_update(), parameters(), and recalculate_duration().
progressive_double frame_builder::offset_ [private] |
Definition at line 168 of file unit_frame.hpp.
Referenced by does_not_change(), need_update(), offset(), parameters(), and recalculate_duration().
progressive_double frame_builder::submerge_ [private] |
Definition at line 169 of file unit_frame.hpp.
Referenced by does_not_change(), need_update(), parameters(), recalculate_duration(), and submerge().
progressive_int frame_builder::x_ [private] |
Definition at line 170 of file unit_frame.hpp.
Referenced by does_not_change(), need_update(), parameters(), recalculate_duration(), and x().
progressive_int frame_builder::y_ [private] |
Definition at line 171 of file unit_frame.hpp.
Referenced by does_not_change(), need_update(), parameters(), recalculate_duration(), and y().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |