15 #ifndef SIDE_FILTER_H_INCLUDED
16 #define SIDE_FILTER_H_INCLUDED
20 #include <boost/scoped_ptr.hpp>
49 bool match(
const int side)
const;
65 mutable boost::scoped_ptr<unit_filter>
ufilter_;
std::vector< int > get_teams() const
boost::scoped_ptr< side_filter > enemy_filter_
const filter_context * fc_
The filter context for this filter. It should be a pointer because otherwise the default ctor doesn't...
bool match(const team &t) const
This class stores all the data for a single 'side' (in game nomenclature).
boost::scoped_ptr< side_filter > allied_filter_
boost::scoped_ptr< unit_filter > ufilter_
bool match_internal(const team &t) const
boost::scoped_ptr< side_filter > has_ally_filter_
side_filter & operator=(const side_filter &other)
boost::scoped_ptr< side_filter > has_enemy_filter_
A variable-expanding proxy for the config class.
Container associating units to locations.
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
side_filter(const std::string &side_string, const filter_context *fc, bool flat_tod=false)