51 virtual void layout()
override;
72 void set_status(
const std::string& str,
const bool is_success);
Sort-of-Singleton that many classes, both GUI and non-GUI, use to access the game data.
std::map< map_location, std::vector< overlay > > overlay_map
const gamemap & get_map() const
The editor_controller class contains the mouse and keyboard event handling routines for the editor.
std::string help_string_
Current help string, cached for easy visibility toggling.
void set_mouseover_hex_overlay(const texture &image)
Sets texture to be drawn in hex under the mouse's location.
virtual overlay_map & get_overlays() override
Inherited from display.
virtual void layout() override
TLD layout() override.
texture mouseover_hex_overlay_
void clear_mouseover_hex_overlay()
bool help_string_enabled() const
Returns whether the help text is currently shown.
virtual const time_of_day & get_time_of_day(const map_location &loc=map_location::null_location()) const override
Inherited from display.
void set_help_string(const std::string &str)
Sets and shows the tooltip-like text at the top or bottom of the map area.
void rebuild_terrain(const map_location &loc)
int help_handle_
ID of the floating label that's controlled by set_help_string() / clear_help_string().
const editor_map & map() const
rect get_clip_rect() const override
Get the clipping rectangle for drawing.
std::set< map_location > brush_locations_
bool help_string_at_top_
Ignored when help_handle_ == 0.
bool help_string_enabled_
Whether the help text is currently shown.
void remove_brush_loc(const map_location &hex)
editor_controller & controller_
editor_controller & get_controller()
bool in_editor() const override
void set_help_string_enabled(bool value)
Sets whether the help text should be shown.
editor_display(editor_controller &controller, reports &reports_object)
void add_brush_loc(const map_location &hex)
void draw_hex(const map_location &loc) override
Redraws a single gamemap location.
void set_brush_locs(const std::set< map_location > &hexes)
void set_status(const std::string &str, const bool is_success)
Set a status text at the bottom left of the map area.
void clear_help_string()
Removes the help string.
This class adds extra editor-specific functionality to a normal gamemap.
Wrapper class to encapsulate creation and management of an SDL_Texture.
void reset()
Releases ownership of the managed texture and resets the ptr to null.
map_display and display: classes which take care of displaying the map and game-data on the screen.
Manage the empty-palette in the editor.
Functions to load and save images from/to disk.
Unit and team statistics.
Encapsulates the map of the game.
static const map_location & null_location()
An abstract description of a rectangle with integer coordinates.
Object which defines a time of day with associated bonuses, image, sounds etc.