16 #define GETTEXT_DOMAIN "wesnoth-editor" 37 , controller_(controller)
38 , mouseover_hex_overlay_()
79 if(
map().in_selection(loc)) {
Drawing functions, for drawing things on the screen.
const editor_map & map() const
void set_alpha_mod(uint8_t alpha)
Alpha modifier.
bool invalidate(const map_location &loc)
Function to invalidate a specific tile for redrawing.
editor_controller & controller_
static rect scaled_to_zoom(const SDL_Rect &r)
Scale the width and height of a rect by the current zoom factor.
virtual overlay_map & get_overlays() override
Inherited from display.
Variant for storing WML attributes.
New lexcical_cast header.
void set_brush_locs(const std::set< map_location > &hexes)
map_location mouseoverHex_
Mouseover overlay used by editor.
To lexical_cast(From value)
Lexical cast converts one type to another.
The editor_controller class contains the mouse and keyboard event handling routines for the editor...
Standard hexagonal tile mask applied, removing portions that don't fit.
Same as HEXED, but with Time of Day color tint applied.
Unit and team statistics.
overlay_map & get_overlays()
Object which defines a time of day with associated bonuses, image, sounds etc.
map_context & get_current_map_context() const
Image on the selected unit.
texture mouseover_hex_overlay_
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
void remove_brush_loc(const map_location &hex)
void drawing_buffer_add(const drawing_layer layer, const map_location &loc, decltype(draw_helper::do_draw) draw_func)
Add an item to the drawing buffer.
std::map< map_location, std::vector< overlay > > overlay_map
const time_of_day & get_time_of_day(int for_turn=0) const
Returns global time of day for the passed turn.
bool map_screenshot_
Used to indicate to drawing functions that we are doing a map screenshot.
virtual const time_of_day & get_time_of_day(const map_location &loc=map_location::null_location()) const override
Inherited from display.
The brush class represents a single brush – a set of relative locations around a "hotspot"...
Manage the empty-palette in the editor.
Generic locator abstracting the location of an image.
Encapsulates the map of the game.
virtual void layout() override
TLD layout() override.
virtual const std::vector< team > & teams() const =0
std::string get_terrain_editor_string(const map_location &loc) const
void rebuild_terrain(const map_location &loc)
const tod_manager * get_time_manager() const
rect get_clip_rect() const override
Get the clipping rectangle for drawing.
An abstract description of a rectangle with integer coordinates.
virtual void layout() override
Finalize screen layout.
virtual void draw_hex(const map_location &loc)
Redraws a single gamemap location.
std::set< map_location > brush_locations_
Definitions for the terrain builder.
config & add_child(config_key_type key)
void blit(const texture &tex, const SDL_Rect &dst)
Draws a texture, or part of a texture, at the given location.
const gamemap & get_map() const
const display_context * dc_
void add_brush_loc(const map_location &hex)
rect map_outside_area() const
Returns the available area for a map, this may differ from the above.
void draw_hex(const map_location &loc) override
Redraws a single gamemap location.
A config object defines a single node in a WML file, with access to child nodes.
texture get_texture(const image::locator &i_locator, TYPE type, bool skip_cache)
Returns an image texture suitable for hardware-accelerated rendering.
const std::unique_ptr< terrain_builder > builder_
void refresh_report(const std::string &report_name, const config *new_cfg=nullptr)
Update the given report.