#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 Vector2D & | pos () const |
get player's position | |
const Vector2D & | vel () const |
get player's velocity | |
const AngleDeg & | body () const |
get player's body angle | |
const AngleDeg & | face () const |
get player's global face angle | |
int | pointtoCycle () const |
get player's pointto status | |
const AngleDeg & | pointtoAngle () 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 |
SideID rcsc::GlobalPlayerObject::side | ( | ) | const [inline] |
get side info
int rcsc::GlobalPlayerObject::unum | ( | ) | const [inline] |
get player's uniform number
bool rcsc::GlobalPlayerObject::goalie | ( | ) | const [inline] |
check if this player is goalie
int rcsc::GlobalPlayerObject::type | ( | ) | const [inline] |
get player type id
const Vector2D& rcsc::GlobalPlayerObject::pos | ( | ) | const [inline] |
get player's position
const Vector2D& rcsc::GlobalPlayerObject::vel | ( | ) | const [inline] |
get player's velocity
const AngleDeg& rcsc::GlobalPlayerObject::body | ( | ) | const [inline] |
get player's body angle
const AngleDeg& rcsc::GlobalPlayerObject::face | ( | ) | const [inline] |
get player's global face angle
int rcsc::GlobalPlayerObject::pointtoCycle | ( | ) | const [inline] |
get player's pointto status
const AngleDeg& rcsc::GlobalPlayerObject::pointtoAngle | ( | ) | const [inline] |
get player's global arm angle
bool rcsc::GlobalPlayerObject::isPointing | ( | ) | const [inline] |
check if player is pointing or not
int rcsc::GlobalPlayerObject::tackleCycle | ( | ) | const [inline] |
get player's tackle status
bool rcsc::GlobalPlayerObject::isTackling | ( | ) | const [inline] |
check if player is tackling or not
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 |