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 |
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 136 of file halo.cpp.
References cached_zoom_, disp, display::get_zoom_factor(), images_, set_location(), animated< T >::start_animation(), and update().
|
inlineprivate |
|
inline |
Definition at line 65 of file halo.cpp.
Referenced by halo::halo_impl::update().
| rect halo::halo_impl::effect::get_draw_location | ( | ) |
Definition at line 164 of file halo.cpp.
Referenced by halo::halo_impl::render().
| void halo::halo_impl::effect::queue_redraw | ( | ) |
Definition at line 273 of file halo.cpp.
References DBG_HL, and draw_manager::invalidate_region().
| void halo::halo_impl::effect::queue_undraw | ( | ) |
Definition at line 264 of file halo.cpp.
References DBG_HL, and draw_manager::invalidate_region().
| bool halo::halo_impl::effect::render | ( | ) |
Definition at line 234 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 155 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 170 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 |
|
private |
|
private |