38 return std::make_unique<editor_action_village_delete>(hex);
48 "~BLIT(icons/action/editor-tool-village_60.png,6,6)"
std::size_t playing_team_index() const
The playing team is the team whose turn it is.
map_location hex_clicked_on(int x, int y) const
given x,y co-ordinates of an onscreen pixel, will return the location of the hex that this pixel corr...
void set_mouseover_hex_overlay(const texture &image)
Sets texture to be drawn in hex under the mouse's location.
const editor_map & get_map() const
std::unique_ptr< editor_action > up_right(editor_display &disp, int x, int y) override
If clicked on a village hex field, unassigns it's ownership.
std::unique_ptr< editor_action > up_left(editor_display &disp, int x, int y) override
If clicked on a village hex field, assigns the ownership of it to the current side.
virtual void set_mouse_overlay(editor_display &disp) override
Set the mouse overlay for this action.
bool on_board(const map_location &loc) const
Tell if a location is on the map.
bool is_village(const map_location &loc) const
Generic locator abstracting the location of an image.
Manage the empty-palette in the editor.
texture get_texture(const image::locator &i_locator, TYPE type, bool skip_cache)
Returns an image texture suitable for hardware-accelerated rendering.
Encapsulates the map of the game.