63 void get_locations(std::set<map_location>& locs,
bool with_border=
false)
const {
73 void get_locations(std::set<map_location>& locs,
const unit& ref_unit,
bool with_border=
false)
const {
84 void get_locs_impl(std::set<map_location>& locs,
const unit* ref_unit,
bool with_border)
const;
A config object defines a single node in a WML file, with access to child nodes.
bool match_internal(const map_location &loc, const unit *ref_unit, const bool ignore_xy) const
bool match(const map_location &loc) const
void get_locations(std::set< map_location > &locs, const unit &ref_unit, bool with_border=false) const
gets all locations on the map that match this filter
bool match_impl(const map_location &loc, const unit *ref_unit) const
terrain_filter(const vconfig &cfg, const filter_context *fc, const bool flat_tod)
terrain_filter & operator=(const terrain_filter &other)
terrain_filter_cache cache_
bool match(const map_location &loc, const unit &ref_unit) const
const std::size_t max_loop_
virtual bool operator()(const map_location &loc) const
void flatten(const bool flat_tod=true)
const filter_context * fc_
void get_locations(std::set< map_location > &locs, bool with_border=false) const
gets all locations on the map that match this filter
void get_locs_impl(std::set< map_location > &locs, const unit *ref_unit, bool with_border) const
This class represents a single unit of a specific type.
A variable-expanding proxy for the config class.
Encapsulates the map of the game.
std::unique_ptr< unit_filter > ufilter_
std::vector< std::pair< terrain_filter, std::map< map_location, bool > > > adjacent_match_cache
std::unique_ptr< t_translation::ter_match > parsed_terrain
std::unique_ptr< std::vector< std::set< map_location > > > adjacent_matches