#include <formation_uva.h>
Public メソッド | |
RoleParam () | |
construct empty parameter. all values are set to 0. | |
RoleParam (const std::string &name, const double &attr_x, const double &atrr_y, const bool behind_ball, const double &min_x, const double &max_x) | |
construct with all values. | |
const RoleParam & | assign (const std::string &name, const double &attr_x, const double &attr_y, const bool behind_ball, const double &min_x, const double &max_y) |
set all variables | |
const std::string & | name () const |
const double & | attrX () const |
get x attraction to the ball | |
const double & | attrY () const |
get y attraction to the ball | |
bool | behindBall () const |
get the switch of behind ball action | |
const double & | minX () const |
get the minimal x coordinate | |
const double & | maxX () const |
get the maximal x coordinate | |
std::ostream & | print (std::ostream &os) const |
put all variables to output stream |
rcsc::FormationUvA::RoleParam::RoleParam | ( | const std::string & | name, | |
const double & | attr_x, | |||
const double & | atrr_y, | |||
const bool | behind_ball, | |||
const double & | min_x, | |||
const double & | max_x | |||
) |
construct with all values.
name | role name | |
attr_x | x attraction to the ball | |
attr_y | y attraction to the ball | |
behind_ball | if true, player should always stay behind the ball. | |
min_x | minimal x coordinate | |
max_x | maximal x coordinate |
const FormationUvA::RoleParam & rcsc::FormationUvA::RoleParam::assign | ( | const std::string & | name, | |
const double & | attr_x, | |||
const double & | attr_y, | |||
const bool | behind_ball, | |||
const double & | min_x, | |||
const double & | max_y | |||
) |
set all variables
name | role name | |
attr_x | x attraction to the ball | |
attr_y | y attraction to the ball | |
behind_ball | if true, player should always stay behind the ball. | |
min_x | minimal x coordinate | |
max_x | maximal x coordinate |
const double& rcsc::FormationUvA::RoleParam::attrX | ( | ) | const [inline] |
get x attraction to the ball
const double& rcsc::FormationUvA::RoleParam::attrY | ( | ) | const [inline] |
get y attraction to the ball
bool rcsc::FormationUvA::RoleParam::behindBall | ( | ) | const [inline] |
get the switch of behind ball action
const double& rcsc::FormationUvA::RoleParam::minX | ( | ) | const [inline] |
get the minimal x coordinate
const double& rcsc::FormationUvA::RoleParam::maxX | ( | ) | const [inline] |
get the maximal x coordinate
std::ostream & rcsc::FormationUvA::RoleParam::print | ( | std::ostream & | os | ) | const |
put all variables to output stream
os | reference to the output stream |