17 #ifndef PATHUTILS_H_INCLUDED
18 #define PATHUTILS_H_INCLUDED
24 class xy_pred :
public std::unary_function<map_location const&, bool>
38 std::vector<map_location>&
result);
46 std::vector<map_location>&
result);
54 std::set<map_location>&
result);
62 size_t radius, std::set<map_location>&
result,
63 bool with_border=
false);
72 size_t radius, std::set<map_location>&
result,
73 bool with_border,
const xy_pred &pred);
void get_tile_ring(const map_location ¢er, const int radius, std::vector< map_location > &result)
Function that will add to result all locations exactly radius tiles from center (or nothing if radius...
virtual bool operator()(map_location const &) const =0
Encapsulates the map of the game.
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.
void get_tiles_radius(const map_location ¢er, size_t radius, std::set< map_location > &result)
Function that will add to result all locations within radius tiles of center (including center itself...