#include <side_filter.hpp>

Public Member Functions | |
| side_filter (const std::string &side_string, bool flat_tod=false) | |
| side_filter (const vconfig &cfg, bool flat_tod=false) | |
| bool | match (const team &t) const |
| bool | match (const int side) const |
| std::vector< int > | get_teams () const |
Private Member Functions | |
| side_filter (const side_filter &other) | |
| side_filter & | operator= (const side_filter &other) |
| bool | match_internal (const team &t) const |
Private Attributes | |
| const vconfig | cfg_ |
| bool | flat_ |
| std::string | side_string_ |
Definition at line 29 of file side_filter.hpp.
| side_filter::side_filter | ( | const std::string & | side_string, | |
| bool | flat_tod = false | |||
| ) |
Definition at line 55 of file side_filter.cpp.
Referenced by match().

| side_filter::side_filter | ( | const vconfig & | cfg, | |
| bool | flat_tod = false | |||
| ) |
Definition at line 48 of file side_filter.cpp.
| side_filter::side_filter | ( | const side_filter & | other | ) | [private] |
| std::vector< int > side_filter::get_teams | ( | ) | const |
Definition at line 60 of file side_filter.cpp.
References match(), team::side(), and resources::teams.
Referenced by unit::internal_matches_filter(), intf_get_sides(), terrain_filter::match_internal(), match_internal(), and WML_HANDLER_FUNCTION().


| bool side_filter::match | ( | const int | side | ) | const |
Definition at line 178 of file side_filter.cpp.
References match(), and resources::teams.

| bool side_filter::match | ( | const team & | t | ) | const |
Definition at line 183 of file side_filter.cpp.
References cfg_, cond(), flat_, vconfig::all_children_iterator::get_child(), vconfig::all_children_iterator::get_key(), match_internal(), vconfig::ordered_begin(), vconfig::ordered_end(), and side_filter().
Referenced by get_teams(), unit::internal_matches_filter(), intf_match_side(), match(), and process_event().


| bool side_filter::match_internal | ( | const team & | t | ) | const [private] |
Definition at line 86 of file side_filter.cpp.
References config::attribute_value::blank(), cfg_, check_side_number(), vconfig::child(), gui2::event::find(), flat_, unit::get_location(), get_teams(), vconfig::has_attribute(), vconfig::has_child(), unit::matches_filter(), vconfig::null(), team::recall_list(), team::save_id(), team::side(), unit::side(), side_string_, utils::split(), team::team_name(), resources::teams, teams, and resources::units.
Referenced by match().


| side_filter& side_filter::operator= | ( | const side_filter & | other | ) | [private] |
const vconfig side_filter::cfg_ [private] |
Definition at line 53 of file side_filter.hpp.
Referenced by match(), and match_internal().
bool side_filter::flat_ [private] |
Definition at line 55 of file side_filter.hpp.
Referenced by match(), and match_internal().
std::string side_filter::side_string_ [private] |
Definition at line 56 of file side_filter.hpp.
Referenced by match_internal().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:16:01 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |