14 #define GETTEXT_DOMAIN "wesnoth-editor"
71 int radius = cfg[
"radius"];
73 std::vector<map_location> in_radius;
81 int x = relative[
"x"];
82 int y = relative[
"y"];
86 WRN_ED <<
"Empty brush definition, name=" <<
name_ << std::endl;
97 std::set<map_location>
result;
99 result.insert(relative.vector_sum(hotspot));
child_itors child_range(const std::string &key)
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...
GLint GLint GLint GLint GLint GLint y
brush()
Construct a default (empty) brush.
Manage the empty-palette in the editor.
Encapsulates the map of the game.
Main (common) editor header.
std::set< map_location > relative_tiles_
The relative locations of the brush.
GLint GLint GLint GLint GLint x
void add_relative_location(int relative_x, int relative_y)
Add a location to the brush.
A config object defines a single node in a WML file, with access to child nodes.
std::set< map_location > project(const map_location &hotspot) const
Get a set of locations affected (i.e.