32#ifndef RCSC_COACH_PLAYER_OBJECT_H
33#define RCSC_COACH_PLAYER_OBJECT_H
59 typedef std::vector< const CoachPlayerObject * >
Cont;
88 int M_ball_reach_step;
109 return M_side != NEUTRAL;
154 return M_player_type;
217 return M_stamina.
effort();
246 return M_pointto_cycle;
255 return M_pointto_angle;
264 return ( M_pointto_cycle > 0 );
284 return M_tackle_cycle;
293 return ( M_tackle_cycle > 0 );
302 return M_charged_cycle;
311 return ( M_charged_cycle > 0 );
329 return M_ball_reach_step;
439 M_pointto_angle = angle;
473 void setBallReachStep(
const int step )
475 M_ball_reach_step = step;
512 std::ostream &
print( std::ostream & os )
const;
degree wrapper class
Definition: angle_deg.h:45
player information for coath/trainer
Definition: coach_player_object.h:55
void setRecovery(const double r)
set player's recovery information
Definition: coach_player_object.h:418
void setAngle(const double b, const double n)
set body and neck angle with seen information
Definition: coach_player_object.h:389
const Vector2D & vel() const
get player's velocity
Definition: coach_player_object.h:170
const Vector2D & pos() const
get player's position
Definition: coach_player_object.h:161
void setKicking(const bool on)
set kick state
Definition: coach_player_object.h:446
std::ostream & print(std::ostream &os) const
put data to the output stream
bool isPointing() const
check if player is pointing or not
Definition: coach_player_object.h:262
double staminaCapacity() const
get player's stamina capacity value
Definition: coach_player_object.h:233
CoachPlayerObject * clone() const
create clone object
const AngleDeg & face() const
get player's global face angle
Definition: coach_player_object.h:188
bool isKicking() const
check if player performed a kick.
Definition: coach_player_object.h:271
int pointtoCycle() const
get player's pointto status
Definition: coach_player_object.h:244
int ballReachStep() const
get the estimated interception step. negative value means this player never intercept the ball.
Definition: coach_player_object.h:327
int unum() const
get player's uniform number
Definition: coach_player_object.h:125
void reverseSide()
reverse positional value
Definition: coach_player_object.h:498
void changePlayerType(const int type)
change player type (recover stamina and reset card)
int chargedCycle() const
get player's charged status
Definition: coach_player_object.h:300
std::vector< const CoachPlayerObject * > Cont
container type of const CoachPlayerObject*
Definition: coach_player_object.h:59
bool isTackling() const
check if player is tackling or not
Definition: coach_player_object.h:291
SideID side() const
get side info
Definition: coach_player_object.h:116
double recovery() const
get player's recovery value
Definition: coach_player_object.h:224
void setStaminaCapacity(const double c)
set player's stamina capacity information
Definition: coach_player_object.h:427
int type() const
get player type id
Definition: coach_player_object.h:143
void setPos(const double x, const double y)
set position with seen information
Definition: coach_player_object.h:367
const AngleDeg & pointtoAngle() const
get player's global arm angle
Definition: coach_player_object.h:253
void setPlayerType(const int type)
set player type id
double effort() const
get player's effort value
Definition: coach_player_object.h:215
bool isValid() const
check if this player is valid or not.
Definition: coach_player_object.h:107
void setVel(const double vx, const double vy)
set velocity with seen information
Definition: coach_player_object.h:378
const AngleDeg & body() const
get player's body angle
Definition: coach_player_object.h:179
void setCard(const Card card)
set card status
Definition: coach_player_object.h:467
const StaminaModel & staminaModel() const
get player's stamina model data
Definition: coach_player_object.h:197
void update(const CoachPlayerObject &p)
update with seen data
void update(const rcg::PlayerT &p)
update using game log data
Card card() const
get current card status.
Definition: coach_player_object.h:318
double stamina() const
get player's stamina value
Definition: coach_player_object.h:206
bool isCharged() const
check if player is charged or not
Definition: coach_player_object.h:309
bool goalie() const
check if this player is goalie
Definition: coach_player_object.h:134
int tackleCycle() const
get player's tackle status
Definition: coach_player_object.h:282
void setTeam(const SideID side, const int unum, const bool goalie)
set team data with seen information
Definition: coach_player_object.h:340
void setStamina(const double s)
set player's stamina information
Definition: coach_player_object.h:400
const PlayerType * playerTypePtr() const
get the pointer to player type object
Definition: coach_player_object.h:152
void recoverStamina()
reset stamina to the initial value
void setTackle()
set tackle status
Definition: coach_player_object.h:454
CoachPlayerObject()
inititialize all value with 0 or invalid values
void setEffort(const double e)
set player's effort information
Definition: coach_player_object.h:409
void setArm(const double angle)
set arm status with seen information
Definition: coach_player_object.h:436
heterogeneous player parametor class
Definition: player_type.h:50
stamina management class
Definition: stamina_model.h:44
double capacity() const
get the current remained stamina capacity
Definition: stamina_model.h:103
const StaminaModel & setStamina(const double new_stamina)
set new stamina value
Definition: stamina_model.h:152
double recovery() const
get current recovery value
Definition: stamina_model.h:85
double effort() const
get current effort value
Definition: stamina_model.h:94
const StaminaModel & setCapacity(const double new_capacity)
set new stamina capacity value
Definition: stamina_model.h:183
const StaminaModel & setRecovery(const double new_recovery)
set new recovery value
Definition: stamina_model.h:173
double stamina() const
get current stamina value
Definition: stamina_model.h:76
const StaminaModel & setEffort(const double new_effort)
set new effort value
Definition: stamina_model.h:163
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
Vector2D & reverse()
reverse vector components
Definition: vector_2d.h:397
heterogenious player parametor Header File
player's stamina model Header File
generic player data for display information
Definition: types.h:597
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.