クラス rcsc::FormationUvA::RoleParam

This class contains information for one individual role. [詳細]

#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 RoleParamassign (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


説明

This class contains information for one individual role.


コンストラクタとデストラクタ

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 reference to itself

const double& rcsc::FormationUvA::RoleParam::attrX (  )  const [inline]

get x attraction to the ball

戻り値:
attraction value

const double& rcsc::FormationUvA::RoleParam::attrY (  )  const [inline]

get y attraction to the ball

戻り値:
attraction value

bool rcsc::FormationUvA::RoleParam::behindBall (  )  const [inline]

get the switch of behind ball action

戻り値:
switch value

const double& rcsc::FormationUvA::RoleParam::minX (  )  const [inline]

get the minimal x coordinate

戻り値:
x coordinate value

const double& rcsc::FormationUvA::RoleParam::maxX (  )  const [inline]

get the maximal x coordinate

戻り値:
x coordinate value

std::ostream & rcsc::FormationUvA::RoleParam::print ( std::ostream &  os  )  const

put all variables to output stream

引数:
os reference to the output stream
戻り値:
reference to the output stream


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0