#include <display.hpp>
Public Member Functions | |
editor_display (CVideo &video, const gamemap &map, const config &theme_cfg, const config &cfg, const config &level) | |
bool | in_editor () const |
void | draw (bool update=true, bool force=false) |
draw() for the editor display. | |
void | rebuild_terrain (const gamemap::location &loc) |
Rebuild the dynamic terrain at the given location. | |
void | update_light_levels () |
Updates editor light levels from preferences. | |
Private Attributes | |
int | lr_ |
int | lg_ |
int | lb_ |
It only needs to draw terrain, no units, no fog, etc.
Definition at line 579 of file display.hpp.
editor_display::editor_display | ( | CVideo & | video, | |
const gamemap & | map, | |||
const config & | theme_cfg, | |||
const config & | cfg, | |||
const config & | level | |||
) |
Definition at line 36 of file editor_display.cpp.
References preferences::disp, CVideo::getSurface(), display::screen_, and display::screen_area().
bool editor_display::in_editor | ( | ) | const [inline, virtual] |
void editor_display::draw | ( | bool | update = true , |
|
bool | force = false | |||
) | [virtual] |
draw() for the editor display.
It only has to know about terrain.
Implements display.
Definition at line 47 of file editor_display.cpp.
References display::ADJACENT_BACKGROUND, display::ADJACENT_FOREGROUND, image::BRIGHTENED, display::draw_border(), display::draw_init(), display::draw_wrap(), display::drawing_buffer_add(), display::drawing_buffer_commit(), gamemap::empty(), gamemap::get_drawing_order(), image::get_image(), display::get_location_x(), display::get_location_y(), display::get_screen_surface(), gamemap::get_terrain(), display::get_terrain_images(), gamemap::get_terrain_info(), display::grid_, game_config::grid_image, display::highlighted_locations_, display::invalidated_, display::LAYER_TERRAIN_BG, display::LAYER_TERRAIN_FG, display::LAYER_TERRAIN_TMP_BG, lb_, lg_, lr_, display::map_, display::map_outside_area(), display::mouseover_hex_overlay_, display::mouseoverHex_, terrain_type::name(), t_translation::OFF_MAP_USER, gamemap::on_board(), reports::POSITION, display::refresh_report(), image::SCALED_TO_HEX, screen, display::screen_, display::selected_hex_overlay_, display::selectedHex_, image::SEMI_BRIGHTENED, image::set_colour_adjustment(), reports::TERRAIN, gamemap::underlying_union_terrain(), update_light_levels(), CVideo::update_locked(), reports::VILLAGES, gamemap::villages(), and display::zoom_.
void editor_display::rebuild_terrain | ( | const gamemap::location & | loc | ) | [inline] |
Rebuild the dynamic terrain at the given location.
Definition at line 592 of file display.hpp.
References display::builder_, and terrain_builder::rebuild_terrain().
void editor_display::update_light_levels | ( | void | ) |
Updates editor light levels from preferences.
Definition at line 160 of file editor_display.cpp.
References preferences::editor_b(), preferences::editor_g(), preferences::editor_r(), lb_, lg_, and lr_.
Referenced by draw().
int editor_display::lr_ [private] |
int editor_display::lg_ [private] |
int editor_display::lb_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |