#include <Conditions.h>
Inheritance diagram for TeamPowerCond:


Public Types | |
| typedef bool(TeamPowerCond::*) | set_func_t (const std::string &arg) |
Public Member Functions | |
| TeamPowerCond () | |
| virtual | ~TeamPowerCond () |
| virtual void | evaluate () |
| bool | setPower (const std::string &countStr) |
| bool | setOperator (const std::string &oper) |
| bool | setTeamNumber (const std::string &teamNo) |
| virtual set_func_t | funcForType (const std::string &type) |
Private Attributes | |
| int | team |
| double | power |
| NumOp * | op |
This condition works evaluates that power. The (xml) type of this condition is team_power and it has three parameters, value (int), operator</tt> (l, g, leq, geq, eq) and team (int). The condition is satisfied if the operator applied to the current team power and value is true for the team specified in team.
This is an example where the condition will be true if team 2 is weak (i.e. has a power of less than 100).
| typedef bool(TeamPowerCond::* ) TeamPowerCond::set_func_t(const std::string &arg) |
| TeamPowerCond::TeamPowerCond | ( | ) | [inline] |
| virtual TeamPowerCond::~TeamPowerCond | ( | ) | [virtual] |
| virtual void TeamPowerCond::evaluate | ( | ) | [virtual] |
Implements Cond::Bool.
| virtual set_func_t TeamPowerCond::funcForType | ( | const std::string & | type | ) | [virtual] |
| bool TeamPowerCond::setOperator | ( | const std::string & | oper | ) |
| bool TeamPowerCond::setPower | ( | const std::string & | countStr | ) |
| bool TeamPowerCond::setTeamNumber | ( | const std::string & | teamNo | ) |
NumOp* TeamPowerCond::op [private] |
double TeamPowerCond::power [private] |
int TeamPowerCond::team [private] |
1.4.7