クラス rcsc::GlobalPlayerObject

player information for coath/trainer [詳細]

#include <global_object.h>

すべてのメンバ一覧

Public メソッド

 GlobalPlayerObject ()
 inititialize all value with 0 or invalid values
SideID side () const
 get side info
int unum () const
 get player's uniform number
bool goalie () const
 check if this player is goalie
int type () const
 get player type id
const Vector2Dpos () const
 get player's position
const Vector2Dvel () const
 get player's velocity
const AngleDegbody () const
 get player's body angle
const AngleDegface () const
 get player's global face angle
int pointtoCycle () const
 get player's pointto status
const AngleDegpointtoAngle () const
 get player's global arm angle
bool isPointing () const
 check if player is pointing or not
int tackleCycle () const
 get player's tackle status
bool isTackling () const
 check if player is tackling or not
void setTeam (const SideID side, const int unum, const bool goalie)
 set team data with seen information
void setPlayerType (const int type)
 set plaeyr type id
void setPos (const double &x, const double &y)
 set position with seen information
void setVel (const double &vx, const double &vy)
 set velocity with seen information
void setAngle (const double &b, const double &n)
 set body and neck angle with seen information
void setArm (const double &angle)
 set arm status with seen information
void setTackle ()
 set tackle status
void update (const GlobalPlayerObject &p)
 update with seen data
std::ostream & print (std::ostream &os) const
 put data to the output stream


説明

player information for coath/trainer


関数

SideID rcsc::GlobalPlayerObject::side (  )  const [inline]

get side info

戻り値:
side ID

int rcsc::GlobalPlayerObject::unum (  )  const [inline]

get player's uniform number

戻り値:
uniform number

bool rcsc::GlobalPlayerObject::goalie (  )  const [inline]

check if this player is goalie

戻り値:
if goalie, true

int rcsc::GlobalPlayerObject::type (  )  const [inline]

get player type id

戻り値:
player type id

const Vector2D& rcsc::GlobalPlayerObject::pos (  )  const [inline]

get player's position

戻り値:
const reference to the position variable

const Vector2D& rcsc::GlobalPlayerObject::vel (  )  const [inline]

get player's velocity

戻り値:
const reference to the velocity variable

const AngleDeg& rcsc::GlobalPlayerObject::body (  )  const [inline]

get player's body angle

戻り値:
const reference to the body angle variable

const AngleDeg& rcsc::GlobalPlayerObject::face (  )  const [inline]

get player's global face angle

戻り値:
const reference to the face angle variable

int rcsc::GlobalPlayerObject::pointtoCycle (  )  const [inline]

get player's pointto status

戻り値:
if the player is now pointing, return positive value as the continuous period. ir no pointing action, return 0.

const AngleDeg& rcsc::GlobalPlayerObject::pointtoAngle (  )  const [inline]

get player's global arm angle

戻り値:
global pointing angle

bool rcsc::GlobalPlayerObject::isPointing (  )  const [inline]

check if player is pointing or not

戻り値:
true if player is pointing

int rcsc::GlobalPlayerObject::tackleCycle (  )  const [inline]

get player's tackle status

戻り値:
if the player is now tackling, return positive value as the continuous period. ir no tackle action, return 0.

bool rcsc::GlobalPlayerObject::isTackling (  )  const [inline]

check if player is tackling or not

戻り値:
true if player is tackling

void rcsc::GlobalPlayerObject::setTeam ( const SideID  side,
const int  unum,
const bool  goalie 
) [inline]

set team data with seen information

引数:
side side ID
unum uniform number
goalie goalie flag

void rcsc::GlobalPlayerObject::setPlayerType ( const int  type  )  [inline]

set plaeyr type id

引数:
type player type id

void rcsc::GlobalPlayerObject::setPos ( const double &  x,
const double &  y 
) [inline]

set position with seen information

引数:
x seen x
y seen y

void rcsc::GlobalPlayerObject::setVel ( const double &  vx,
const double &  vy 
) [inline]

set velocity with seen information

引数:
vx seen velocity x
vy seen velocity y

void rcsc::GlobalPlayerObject::setAngle ( const double &  b,
const double &  n 
) [inline]

set body and neck angle with seen information

引数:
b seen body angle
n seen neck angle relative to body

void rcsc::GlobalPlayerObject::setArm ( const double &  angle  )  [inline]

set arm status with seen information

引数:
angle pointing global angle

void rcsc::GlobalPlayerObject::update ( const GlobalPlayerObject p  ) 

update with seen data

引数:
p seen data

std::ostream & rcsc::GlobalPlayerObject::print ( std::ostream &  os  )  const

put data to the output stream

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


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