#include "map_location.hpp"

Go to the source code of this file.
Classes | |
| class | xy_pred |
Functions | |
| void | get_tile_ring (const map_location &a, const int r, std::vector< map_location > &res) |
| Function which, given a location, will place all locations in a ring of distance r in res. | |
| void | get_tiles_radius (const map_location &a, size_t radius, std::set< map_location > &res) |
| Function which, given a location, will find all tiles within 'radius' of that tile. | |
| void | get_tiles_radius (const gamemap &map, const std::vector< map_location > &locs, size_t radius, std::set< map_location > &res, bool with_border=false, xy_pred *pred=NULL) |
| Function which, given a set of locations, will find all tiles within 'radius' of those tiles. | |
| void | get_tiles_in_radius (const map_location &a, const int r, std::vector< map_location > &res) |
| Function which, given a location, will place all locations in the radius of r in res res must be a std::vector of location. | |
Definition in file pathutils.hpp.
| void get_tile_ring | ( | const map_location & | a, | |
| const int | r, | |||
| std::vector< map_location > & | res | |||
| ) |
Function which, given a location, will place all locations in a ring of distance r in res.
res must be a std::vector of location
Definition at line 27 of file pathutils.cpp.
References map_location::get_direction(), and map_location::SOUTH_WEST.
Referenced by get_tiles_in_radius().


| void get_tiles_in_radius | ( | const map_location & | a, | |
| const int | r, | |||
| std::vector< map_location > & | res | |||
| ) |
Function which, given a location, will place all locations in the radius of r in res res must be a std::vector of location.
Definition at line 44 of file pathutils.cpp.
References get_tile_ring().
Referenced by editor::brush::brush().


| void get_tiles_radius | ( | const gamemap & | map, | |
| const std::vector< map_location > & | locs, | |||
| size_t | radius, | |||
| std::set< map_location > & | res, | |||
| bool | with_border = false, |
|||
| xy_pred * | pred = NULL | |||
| ) |
Function which, given a set of locations, will find all tiles within 'radius' of those tiles.
Definition at line 77 of file pathutils.cpp.
References get_adjacent_tiles(), gamemap::on_board(), and gamemap::on_board_with_border().

| void get_tiles_radius | ( | const map_location & | a, | |
| size_t | radius, | |||
| std::set< map_location > & | res | |||
| ) |
Function which, given a location, will find all tiles within 'radius' of that tile.
Definition at line 70 of file pathutils.cpp.
References get_tiles_radius_internal().
Referenced by terrain_filter::get_locations(), terrain_filter::match(), and place_village().


| Generated by doxygen 1.7.1 on Fri May 25 2012 01:08:38 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |