Classes | |
struct | manager |
struct | remover |
Enumerations | |
enum | ORIENTATION { NORMAL, HREVERSE, VREVERSE, HVREVERSE } |
Functions | |
int | add (int x, int y, const std::string &image, const gamemap::location &loc, ORIENTATION orientation=NORMAL, bool infinite=true) |
Add a haloing effect using 'image centered on (x,y). | |
void | set_location (int handle, int x, int y) |
Set the position of an existing haloing effect, according to its handle. | |
void | remove (int handle) |
Remove the halo with the given handle. | |
void | unrender (std::set< gamemap::location > invalidated_locations) |
Render and unrender haloes. | |
void | render () |
Variables | |
display * | disp = NULL |
std::map< int, effect > | haloes |
int | halo_id = 1 |
std::set< int > | invalidated_haloes |
Upon unrendering, an invalidation list is send. | |
std::set< int > | new_haloes |
A newly added halo will be added to this list, these haloes don't need to be unrendered but do not to be rendered regardless which tiles are invalidated. | |
std::set< int > | deleted_haloes |
Upon deleting, a halo isn't deleted but added to this set, upon unrendering the image is unrendered and deleted. | |
std::set< int > | changing_haloes |
Haloes that have an animation or expiration time need to be checked every frame and are stored in this set. | |
const int | NO_HALO = 0 |
enum halo::ORIENTATION |
int halo::add | ( | int | x, | |
int | y, | |||
const std::string & | image, | |||
const gamemap::location & | loc, | |||
ORIENTATION | orientation = NORMAL , |
|||
bool | infinite = true | |||
) |
Add a haloing effect using 'image centered on (x,y).
0 | is the invalid handle. |
Definition at line 269 of file halo.cpp.
References loc, and utils::split().
Referenced by game_display::add_overlay(), unit_frame::redraw(), and unit::redraw_unit().
void halo::remove | ( | int | handle | ) |
Remove the halo with the given handle.
Definition at line 307 of file halo.cpp.
References NO_HALO.
Referenced by unit::clear_haloes(), network_worker_pool::close_socket(), network_worker_pool::detect_error(), help::generate_about_text(), mp::ui::handle_key_event(), unit_frame::redraw(), unit::redraw_unit(), config::remove_child(), unit::remove_overlay(), game_display::remove_overlay(), game::remove_player(), remove_relation(), game_display::remove_single_overlay(), remove_village(), gamemap::set_terrain(), unit_animation::particule::start_animation(), gui::floating_textbox::tab(), terrain_type::terrain_type(), game::transfer_side_control(), unit_animation::particule::~particule(), and events::pump_monitor::~pump_monitor().
void halo::render | ( | ) |
Definition at line 395 of file halo.cpp.
References preferences::show_haloes().
Referenced by game_display::draw().
void halo::set_location | ( | int | handle, | |
int | x, | |||
int | y | |||
) |
Set the position of an existing haloing effect, according to its handle.
Definition at line 299 of file halo.cpp.
Referenced by unit::redraw_unit().
void halo::unrender | ( | std::set< gamemap::location > | invalidated_locations | ) |
Render and unrender haloes.
Which haloes are rendered is determined by invalidated_locations and the internal state in the control sets (in halo.cpp).
Definition at line 318 of file halo.cpp.
References preferences::show_haloes().
Referenced by game_display::draw().
std::set<int> halo::changing_haloes [static] |
std::set<int> halo::deleted_haloes [static] |
display* halo::disp = NULL [static] |
int halo::halo_id = 1 [static] |
std::map<int, effect> halo::haloes [static] |
std::set<int> halo::invalidated_haloes [static] |
std::set<int> halo::new_haloes [static] |
const int halo::NO_HALO = 0 |
Definition at line 41 of file halo.hpp.
Referenced by unit::clear_haloes(), unit_frame::redraw(), unit::redraw_unit(), remove(), unit_animation::particule::start_animation(), unit::unit(), and unit_animation::particule::~particule().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |