player state data
More...
#include <player_state.h>
◆ body()
| const AngleDeg & rcsc::PlayerState::body |
( |
| ) |
const |
|
inline |
get player's body angle
- Returns
- const reference to the body angle variable
◆ card()
| Card rcsc::PlayerState::card |
( |
| ) |
const |
|
inline |
get current card status.
- Returns
- card type
◆ face()
| const AngleDeg & rcsc::PlayerState::face |
( |
| ) |
const |
|
inline |
get player's global face angle
- Returns
- const reference to the face angle variable
◆ goalie()
| bool rcsc::PlayerState::goalie |
( |
| ) |
const |
|
inline |
check if this player is goalie
- Returns
- if goalie, true
◆ isValid()
| bool rcsc::PlayerState::isValid |
( |
| ) |
const |
|
inline |
check if this player is valid or not.
- Returns
- checked result.
◆ playerType()
| const PlayerType * rcsc::PlayerState::playerType |
( |
| ) |
const |
|
inline |
get the pointer to player type object
- Returns
- const pointer
◆ pos()
| const Vector2D & rcsc::PlayerState::pos |
( |
| ) |
const |
|
inline |
get player's position
- Returns
- const reference to the position variable
◆ setAngle()
| void rcsc::PlayerState::setAngle |
( |
const double |
b, |
|
|
const double |
n |
|
) |
| |
|
inline |
set body and neck angle with seen information
- Parameters
-
| b | seen body angle |
| n | seen neck angle relative to body |
◆ setPlayerType() [1/2]
| void rcsc::PlayerState::setPlayerType |
( |
const int |
type | ) |
|
set player type by giving type id
- Parameters
-
◆ setPlayerType() [2/2]
| void rcsc::PlayerState::setPlayerType |
( |
const PlayerType * |
type | ) |
|
|
inline |
set player type
- Parameters
-
| type | pointer to the player type instance |
◆ setPos()
| void rcsc::PlayerState::setPos |
( |
const double |
x, |
|
|
const double |
y |
|
) |
| |
|
inline |
set position with seen information
- Parameters
-
◆ setTeam()
| void rcsc::PlayerState::setTeam |
( |
const SideID |
side, |
|
|
const int |
unum, |
|
|
const bool |
goalie |
|
) |
| |
|
inline |
set team data with seen information
- Parameters
-
| side | side ID |
| unum | uniform number |
| goalie | goalie flag |
◆ setVel()
| void rcsc::PlayerState::setVel |
( |
const double |
vx, |
|
|
const double |
vy |
|
) |
| |
|
inline |
set velocity with seen information
- Parameters
-
| vx | seen velocity x |
| vy | seen velocity y |
◆ side()
| SideID rcsc::PlayerState::side |
( |
| ) |
const |
|
inline |
get side info
- Returns
- side ID
◆ unum()
| int rcsc::PlayerState::unum |
( |
| ) |
const |
|
inline |
get player's uniform number
- Returns
- uniform number
◆ vel()
| const Vector2D & rcsc::PlayerState::vel |
( |
| ) |
const |
|
inline |
get player's velocity
- Returns
- const reference to the velocity variable
The documentation for this class was generated from the following file: