32#ifndef RCSC_COMMON_PLAYER_STATE_H
33#define RCSC_COMMON_PLAYER_STATE_H
55 typedef std::vector< const PlayerState * >
Cont;
90 return M_side != NEUTRAL;
126 return M_player_type;
203 M_player_type = type;
degree wrapper class
Definition: angle_deg.h:45
player state data
Definition: player_state.h:51
void setAngle(const double b, const double n)
set body and neck angle with seen information
Definition: player_state.h:233
void setPos(const double x, const double y)
set position with seen information
Definition: player_state.h:211
SideID side() const
get side info
Definition: player_state.h:97
const AngleDeg & body() const
get player's body angle
Definition: player_state.h:151
const Vector2D & vel() const
get player's velocity
Definition: player_state.h:142
void setCard(const Card card)
set card status
Definition: player_state.h:243
PlayerState()
inititialize all value with 0 or invalid values
void setVel(const double vx, const double vy)
set velocity with seen information
Definition: player_state.h:222
void setPlayerType(const PlayerType *type)
set player type
Definition: player_state.h:201
std::vector< const PlayerState * > Cont
container type of the const PlayerState pointer
Definition: player_state.h:55
int unum() const
get player's uniform number
Definition: player_state.h:106
bool isValid() const
check if this player is valid or not.
Definition: player_state.h:88
void setPlayerType(const int type)
set player type by giving type id
const PlayerType * playerType() const
get the pointer to player type object
Definition: player_state.h:124
const Vector2D & pos() const
get player's position
Definition: player_state.h:133
Card card() const
get current card status.
Definition: player_state.h:169
const AngleDeg & face() const
get player's global face angle
Definition: player_state.h:160
bool goalie() const
check if this player is goalie
Definition: player_state.h:115
void setTeam(const SideID side, const int unum, const bool goalie)
set team data with seen information
Definition: player_state.h:182
heterogeneous player parametor class
Definition: player_type.h:50
2D point vector class
Definition: vector_2d.h:46
Vector2D & assign(const double xx, const double yy)
assign XY value directly.
Definition: vector_2d.h:100
the type definition set for the RCSSServer2D
SideID
side type definition
Definition: types.h:47
Card
card type
Definition: types.h:281
2d vector class Header File.