Public Member Functions | Private Member Functions | Private Attributes

side_filter Class Reference

#include <side_filter.hpp>

Collaboration diagram for side_filter:
Collaboration graph
[legend]

List of all members.

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_filteroperator= (const side_filter &other)
bool match_internal (const team &t) const

Private Attributes

const vconfig cfg_
bool flat_
std::string side_string_

Detailed Description

Definition at line 29 of file side_filter.hpp.


Constructor & Destructor Documentation

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().

Here is the caller graph for this function:

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]

Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool side_filter::match ( const int  side  )  const

Definition at line 178 of file side_filter.cpp.

References match(), and resources::teams.

Here is the call graph for this function:

bool side_filter::match ( const team t  )  const
bool side_filter::match_internal ( const team t  )  const [private]
side_filter& side_filter::operator= ( const side_filter other  )  [private]

Member Data Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:16:01 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs