Public Member Functions | |
effect (int xpos, int ypos, const animated< image::locator >::anim_description &img, const map_location &loc, ORIENTATION, bool infinite) | |
void | set_location (int x, int y) |
rect | get_draw_location () |
bool | visible () |
Whether the halo is currently visible. More... | |
void | queue_undraw () |
void | queue_redraw () |
void | update () |
Update the current location, animation frame, etc. More... | |
bool | render () |
bool | expired () const |
bool | need_update () const |
bool | does_change () const |
bool | on_location (const std::set< map_location > &locations) const |
bool | location_not_known () const |
Private Member Functions | |
const image::locator & | current_image () const |
Private Attributes | |
animated< image::locator > | images_ |
ORIENTATION | orientation_ |
point | abs_mid_ = {0, 0} |
texture | tex_ = {} |
rect | screen_loc_ = {} |
rect | last_draw_loc_ = {} |
double | cached_zoom_ = 1.0 |
map_location | map_loc_ = {-1, -1} |
display * | disp = nullptr |
halo::halo_impl::effect::effect | ( | int | xpos, |
int | ypos, | ||
const animated< image::locator >::anim_description & | img, | ||
const map_location & | loc, | ||
ORIENTATION | orientation, | ||
bool | infinite | ||
) |
Definition at line 150 of file halo.cpp.
References cached_zoom_, disp, display::get_zoom_factor(), images_, set_location(), animated< T >::start_animation(), and update().
|
inlineprivate |
Definition at line 72 of file halo.cpp.
References animated< T >::get_current_frame(), and images_.
|
inline |
Definition at line 66 of file halo.cpp.
References animated< T >::does_not_change(), and images_.
|
inline |
Definition at line 64 of file halo.cpp.
References animated< T >::animation_finished(), animated< T >::cycles(), and images_.
Referenced by halo::halo_impl::update().
rect halo::halo_impl::effect::get_draw_location | ( | ) |
Definition at line 178 of file halo.cpp.
Referenced by halo::halo_impl::render().
bool halo::halo_impl::effect::location_not_known | ( | ) | const |
|
inline |
Definition at line 65 of file halo.cpp.
References images_, and animated< T >::need_update().
bool halo::halo_impl::effect::on_location | ( | const std::set< map_location > & | locations | ) | const |
void halo::halo_impl::effect::queue_redraw | ( | ) |
Definition at line 288 of file halo.cpp.
References DBG_HL, and draw_manager::invalidate_region().
void halo::halo_impl::effect::queue_undraw | ( | ) |
Definition at line 279 of file halo.cpp.
References DBG_HL, and draw_manager::invalidate_region().
bool halo::halo_impl::effect::render | ( | ) |
Definition at line 249 of file halo.cpp.
References draw::blit(), DBG_HL, draw::flipped(), halo::HREVERSE, halo::HVREVERSE, halo::NORMAL, draw::reduce_clip(), and halo::VREVERSE.
Referenced by halo::halo_impl::render().
void halo::halo_impl::effect::set_location | ( | int | x, |
int | y | ||
) |
Definition at line 169 of file halo.cpp.
References DBG_HL, and map_location::ZERO().
Referenced by effect().
void halo::halo_impl::effect::update | ( | ) |
Update the current location, animation frame, etc.
Definition at line 185 of file halo.cpp.
References ERR_HL, image::get_texture(), h, halo::halo_impl::set_location(), w, and map_location::ZERO().
Referenced by effect().
bool halo::halo_impl::effect::visible | ( | ) |
|
private |
|
private |
|
private |
Definition at line 74 of file halo.cpp.
Referenced by current_image(), does_change(), effect(), expired(), and need_update().
|
private |
|
private |