39 bool match(
const int side)
const;
A config object defines a single node in a WML file, with access to child nodes.
std::unique_ptr< side_filter > has_ally_filter_
std::vector< int > get_teams() const
const filter_context * fc_
The filter context for this filter.
bool match(const team &t) const
const config & get_config() const
side_filter(const side_filter &other)
bool match_internal(const team &t) const
std::unique_ptr< side_filter > allied_filter_
std::unique_ptr< side_filter > has_enemy_filter_
side_filter & operator=(const side_filter &other)
std::unique_ptr< side_filter > enemy_filter_
side_filter(const std::string &side_string, const filter_context *fc, bool flat_tod=false)
std::unique_ptr< unit_filter > ufilter_
This class stores all the data for a single 'side' (in game nomenclature).
A variable-expanding proxy for the config class.
const config & get_config() const