#include <side_filter.hpp>
Public Member Functions | |
~side_filter () | |
side_filter (const std::string &side_string, const filter_context *fc, bool flat_tod=false) | |
side_filter (const vconfig &cfg, const filter_context *fc, 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_ |
const filter_context * | fc_ |
The filter context for this filter. It should be a pointer because otherwise the default ctor doesn't work. More... | |
boost::scoped_ptr< unit_filter > | ufilter_ |
boost::scoped_ptr< side_filter > | allied_filter_ |
boost::scoped_ptr< side_filter > | enemy_filter_ |
boost::scoped_ptr< side_filter > | has_ally_filter_ |
boost::scoped_ptr< side_filter > | has_enemy_filter_ |
Definition at line 33 of file side_filter.hpp.
side_filter::~side_filter | ( | ) |
Definition at line 57 of file side_filter.cpp.
side_filter::side_filter | ( | const std::string & | side_string, |
const filter_context * | fc, | ||
bool | flat_tod = false |
||
) |
Definition at line 67 of file side_filter.cpp.
Referenced by match(), and match_internal().
side_filter::side_filter | ( | const vconfig & | cfg, |
const filter_context * | fc, | ||
bool | flat_tod = false |
||
) |
Definition at line 59 of file side_filter.cpp.
|
private |
std::vector< int > side_filter::get_teams | ( | ) | const |
Definition at line 72 of file side_filter.cpp.
References fc_, filter_context::get_disp_context(), match(), and display_context::teams().
Referenced by game_lua_kernel::get_sides_vector(), basic_unit_filter_impl::internal_matches_filter(), game_lua_kernel::intf_get_sides(), game_lua_kernel::intf_modify_ai_wml(), game_lua_kernel::intf_redraw(), and terrain_filter::match_internal().
bool side_filter::match | ( | const team & | t | ) | const |
Definition at line 270 of file side_filter.cpp.
References cfg_, cond(), fc_, 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 game_events::t_pump::filter_event(), get_teams(), game_lua_kernel::intf_match_side(), and match().
bool side_filter::match | ( | const int | side | ) | const |
Definition at line 264 of file side_filter.cpp.
References fc_, filter_context::get_disp_context(), match(), and display_context::teams().
|
private |
Definition at line 99 of file side_filter.cpp.
References allied_filter_, variant::as_bool(), config::attribute_value::blank(), cfg_, check_side_number(), vconfig::child(), resources::controller, team::controller(), e, enemy_filter_, ERR_NG, game_logic::formula::evaluate(), fc_, game_logic::formula_error::filename, gui2::event::find(), recall_list_manager::find_index(), flat_, filter_context::get_disp_context(), has_ally_filter_, vconfig::has_attribute(), vconfig::has_child(), has_enemy_filter_, synced_context::is_synced(), game_logic::formula_error::line, vconfig::null(), team::recall_list(), team::save_id(), team::side(), side_filter(), side_string_, utils::split(), team::team_name(), teams, display_context::teams(), game_logic::formula_error::type, ufilter_, display_context::units(), and lg::wml_error().
Referenced by match().
|
private |
|
mutableprivate |
Definition at line 66 of file side_filter.hpp.
Referenced by match_internal().
|
private |
Definition at line 58 of file side_filter.hpp.
Referenced by match(), and match_internal().
|
mutableprivate |
Definition at line 67 of file side_filter.hpp.
Referenced by match_internal().
|
private |
The filter context for this filter. It should be a pointer because otherwise the default ctor doesn't work.
Definition at line 63 of file side_filter.hpp.
Referenced by get_teams(), match(), and match_internal().
|
private |
Definition at line 60 of file side_filter.hpp.
Referenced by match(), and match_internal().
|
mutableprivate |
Definition at line 68 of file side_filter.hpp.
Referenced by match_internal().
|
mutableprivate |
Definition at line 69 of file side_filter.hpp.
Referenced by match_internal().
|
private |
Definition at line 61 of file side_filter.hpp.
Referenced by match_internal().
|
mutableprivate |
Definition at line 65 of file side_filter.hpp.
Referenced by match_internal().