/** * Function that will add to @a result all locations within @a radius tiles * of @a center (excluding @a center itself). @a result must be a std::vector * of locations. */ void get_tiles_in_radius(const map_location& center, const int radius, std::vector<map_location>& result) { for(int n = 1; n <= radius; ++n) { get_tile_ring(center, n, result); } }
void get_tiles_in_radius(const map_location& a, const int r, std::vector<map_location>& res) { for(int n = 0; n <= r; ++n) { get_tile_ring(a, n, res); } }