16 #define GETTEXT_DOMAIN "wesnoth-editor"
37 int radius = cfg[
"radius"].to_int();
39 std::vector<map_location> in_radius;
47 int x = relative[
"x"].to_int();
48 int y = relative[
"y"].to_int();
63 std::set<map_location> result;
65 result.insert(relative.vector_sum(hotspot));
A config object defines a single node in a WML file, with access to child nodes.
child_itors child_range(config_key_type key)
brush()
Construct a default (empty) brush.
void add_relative_location(int relative_x, int relative_y)
Add a location to the brush.
std::set< map_location > relative_tiles_
The relative locations of the brush.
std::set< map_location > project(const map_location &hotspot) const
Get a set of locations affected (i.e.
Main (common) editor header.
Manage the empty-palette in the editor.
void get_tiles_in_radius(const map_location ¢er, const int radius, std::vector< map_location > &result)
Function that will add to result all locations within radius tiles of center (excluding center itself...
Encapsulates the map of the game.