Public Member Functions | |
| effect (display *screen, 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) |
| bool | render () |
| void | unrender () |
| 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 |
| void | add_overlay_location (std::set< map_location > &locations) |
Private Member Functions | |
| const image::locator & | current_image () |
Private Attributes | |
| animated< image::locator > | images_ |
| ORIENTATION | orientation_ |
| int | x_ |
| int | y_ |
| surface | surf_ |
| surface | buffer_ |
| SDL_Rect | rect_ |
| map_location | loc_ |
| The location of the center of the halo. More... | |
| std::vector< map_location > | overlayed_hexes_ |
| All locations over which the halo lies. More... | |
| display * | disp |
| halo::halo_impl::effect::effect | ( | display * | screen, |
| int | xpos, | ||
| int | ypos, | ||
| const animated< image::locator >::anim_description & | img, | ||
| const map_location & | loc, | ||
| ORIENTATION | orientation, | ||
| bool | infinite | ||
| ) |
Definition at line 143 of file halo.cpp.
References disp, images_, set_location(), and animated< T, T_void_value >::start_animation().
| void halo::halo_impl::effect::add_overlay_location | ( | std::set< map_location > & | locations | ) |
|
inlineprivate |
Definition at line 56 of file halo.cpp.
References animated< T, T_void_value >::get_current_frame(), and images_.
|
inline |
Definition at line 49 of file halo.cpp.
References animated< T, T_void_value >::does_not_change(), and images_.
|
inline |
Definition at line 47 of file halo.cpp.
References animated< T, T_void_value >::animation_finished(), animated< T, T_void_value >::cycles(), and images_.
|
inline |
Definition at line 48 of file halo.cpp.
References images_, and animated< T, T_void_value >::need_update().
| bool halo::halo_impl::effect::on_location | ( | const std::set< map_location > & | locations | ) | const |
| bool halo::halo_impl::effect::render | ( | ) |
Definition at line 177 of file halo.cpp.
References display::rect_of_hexes::begin(), sdl::create_rect(), halo::halo_impl::disp, display::rect_of_hexes::end(), flop_surface(), image::get_image(), display::get_location_x(), display::get_location_y(), display::get_screen_surface(), get_surface_portion(), display::hex_size(), display::hexes_under_rect(), halo::HREVERSE, halo::HVREVERSE, i, loc_, display::map_outside_area(), sdl::rects_overlap(), image::reverse_image(), image::SCALED_TO_ZOOM, resources::screen, sdl_blit(), sdl_copy_portion(), halo::halo_impl::set_location(), display::shrouded(), update_rect(), halo::VREVERSE, map_location::x, x_, map_location::y, y_, and map_location::ZERO().
Definition at line 164 of file halo.cpp.
References halo::halo_impl::disp, display::get_location_x(), display::get_location_y(), halo::halo_impl::unrender(), x_, y_, and map_location::ZERO().
Referenced by effect().
| void halo::halo_impl::effect::unrender | ( | ) |
Definition at line 255 of file halo.cpp.
References sdl::create_rect(), halo::halo_impl::disp, display::get_location_x(), display::get_location_y(), display::get_screen_surface(), loc_, display::map_outside_area(), resources::screen, sdl_blit(), display::shrouded(), update_rect(), map_location::x, x_, map_location::y, y_, and map_location::ZERO().
|
private |
|
private |
Definition at line 58 of file halo.cpp.
Referenced by current_image(), does_change(), effect(), expired(), and need_update().
|
private |
|
private |
|
private |
1.8.8