#include <drawer.hpp>
Public Member Functions | |
unit_drawer (display &thedisp) | |
void | redraw_unit (const unit &u) const |
draw a unit. More... | |
Private Attributes | |
display & | disp |
const display_context & | dc |
const gamemap & | map |
const std::vector< team > & | teams |
halo::manager & | halo_man |
std::size_t | viewing_team |
std::size_t | playing_team |
const team & | viewing_team_ref |
const team & | playing_team_ref |
bool | is_blindfolded |
bool | show_everything |
map_location | sel_hex |
map_location | mouse_hex |
double | zoom_factor |
std::set< map_location > | units_that_can_reach_goal |
int | hex_size |
int | hex_size_by_2 |
Definition at line 46 of file drawer.hpp.
|
explicit |
Definition at line 139 of file drawer.cpp.
References disp, display::team_valid(), units_that_can_reach_goal, and game_display::units_that_can_reach_goal().
void unit_drawer::redraw_unit | ( | const unit & | u | ) | const |
draw a unit.
Definition at line 167 of file drawer.cpp.
References halo::manager::add(), allied, unit_animation_component::anim_, unit::anim_comp(), frame_parameters::blend_ratio, frame_parameters::blend_with, draw::blit(), unit::can_advance(), unit::can_recruit(), unit_animation_component::clear_haloes(), d, dc, unit::default_anim_image(), disp, unit_animation_component::draw_bars_, display::drawing_buffer_add(), unit::emits_zoc(), enemy, unit::experience(), unit::facing(), float_to_color(), map_location::get_direction(), unit::get_hidden(), unit::get_location(), display::get_location_x(), display::get_location_y(), team::get_side_color_id(), image::get_size(), gamemap_base::get_terrain(), gamemap::get_terrain_info(), image::get_texture(), display::get_zoom_factor(), halo_man, frame_parameters::halo_mod, frame_parameters::halo_y, hex_size, hex_size_by_2, frame_parameters::highlight_ratio, unit::hitpoints(), unit::hp_color(), frame_parameters::image, unit::image_ellipse(), frame_parameters::image_mod, unit::image_mods(), unit::incapacitated(), unit::invisible(), is_blindfolded, team::is_enemy(), unit::is_flying(), unit::is_visible_to_team(), display::LAYER_UNIT_BAR, display::LAYER_UNIT_FIRST, map, display::map_outside_area(), unit::max_experience(), unit::max_hitpoints(), mouse_hex, moved, playing_team, unit::poisoned(), frame_parameters::primary_frame, unit_animation_component::refreshing_, halo::manager::remove(), s, display::scaled_to_zoom(), sel_hex, game_config::images::selected, halo::manager::set_location(), unit_animation_component::set_standing(), show_everything, preferences::show_side_colors(), unit::side(), unit::slowed(), frame_parameters::submerge, unit::TC_image_mods(), terrain_type::unit_height_adjust(), display_context::unit_orb_status(), terrain_type::unit_submerge(), units_that_can_reach_goal, viewing_team, viewing_team_ref, unit::xp_color(), frame_parameters::y, and zoom_factor.
Referenced by game_display::draw_invalidated().
|
private |
Definition at line 53 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 52 of file drawer.hpp.
Referenced by redraw_unit(), and unit_drawer().
|
private |
Definition at line 56 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 68 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 69 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 61 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 54 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 64 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 58 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 60 of file drawer.hpp.
|
private |
Definition at line 63 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 62 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 55 of file drawer.hpp.
|
private |
Definition at line 66 of file drawer.hpp.
Referenced by redraw_unit(), and unit_drawer().
|
private |
Definition at line 57 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 59 of file drawer.hpp.
Referenced by redraw_unit().
|
private |
Definition at line 65 of file drawer.hpp.
Referenced by redraw_unit().