32#ifndef RCSC_PLAYER_BODY_SENSOR_H
33#define RCSC_PLAYER_BODY_SENSOR_H
132 const double & version,
143 bool parseArm(
const char * msg,
152 bool parseAttentionto(
const char * msg,
161 bool parseTackle(
const char * msg,
171 bool parseCollision(
const char * msg,
180 bool parseFoul(
const char * msg,
189 bool parseFocusPoint(
const char * msg,
534 std::ostream &
print( std::ostream & os )
const;
sense_body info holder
Definition: body_sensor.h:47
Card card() const
get the yellow/red card status
Definition: body_sensor.h:506
int turnCount() const
get analyzed turn count
Definition: body_sensor.h:306
double M_focus_dist
distance to the focus point
Definition: body_sensor.h:116
double M_stamina
sensed stamina value
Definition: body_sensor.h:54
int moveCount() const
get analyzed move count
Definition: body_sensor.h:342
int attentiontoUnum() const
get analyzed attended player's uniform number
Definition: body_sensor.h:425
int dashCount() const
get analyzed dash count
Definition: body_sensor.h:297
SideID attentiontoSide() const
get analyzed attended player's side
Definition: body_sensor.h:416
GameTime M_time
updated game time
Definition: body_sensor.h:50
bool playerCollided() const
get the information wheter the agent collides with player
Definition: body_sensor.h:479
int M_move_count
sensed command count
Definition: body_sensor.h:67
int M_say_count
sensed command count
Definition: body_sensor.h:64
int M_arm_expires
Definition: body_sensor.h:80
const GameTime & time() const
get last updated time
Definition: body_sensor.h:199
BodySensor()
init member variables
const double & pointtoDist() const
get analyzed distance to the point that player is pointing
Definition: body_sensor.h:388
int turnNeckCount() const
get analyzed turn_neck count
Definition: body_sensor.h:324
bool postCollided() const
get the information wheter the agent collides with posts
Definition: body_sensor.h:488
double M_pointto_dist
Definition: body_sensor.h:86
int sayCount() const
get analyzed say count
Definition: body_sensor.h:315
int changeViewCount() const
get analyzed change_view count
Definition: body_sensor.h:351
int kickCount() const
get analyzed kick count
Definition: body_sensor.h:288
void parse(const char *msg, const double &version, const GameTime ¤t)
analyze server message
const double & neckDir() const
get analyzed neck angle
Definition: body_sensor.h:279
double focusDir() const
get the focus direction value
Definition: body_sensor.h:524
bool noneCollided() const
get the information wheter the agent receive does not collide.
Definition: body_sensor.h:461
int M_change_view_count
sensed command count
Definition: body_sensor.h:68
int tackleExpires() const
get analyzed cycles the current tackle will last for
Definition: body_sensor.h:443
int changeFocusCount() const
get analyzed change_focus count
Definition: body_sensor.h:360
int M_arm_movable
Definition: body_sensor.h:75
double M_speed_mag
sensed speed magnitude. this is quantized by 0.01.
Definition: body_sensor.h:57
int pointtoCount() const
get analyzed pointto count
Definition: body_sensor.h:407
const double & speedMag() const
get analyzed speed value
Definition: body_sensor.h:259
const ViewWidth & viewWidth() const
get analyzed view width
Definition: body_sensor.h:219
int M_attentionto_count
sensed command count
Definition: body_sensor.h:98
int M_tackle_count
sensed command count1
Definition: body_sensor.h:105
const double & speedDir() const
get analyzed velocity direction relative to player's face direction
Definition: body_sensor.h:269
int tackleCount() const
get analyzed tackle count
Definition: body_sensor.h:452
int M_attentionto_unum
attended player number
Definition: body_sensor.h:97
int M_dash_count
sensed command count
Definition: body_sensor.h:62
int armExpires() const
get analyzed cycles till the arm stops pointing
Definition: body_sensor.h:378
int M_change_focus_count
sensed command count
Definition: body_sensor.h:69
Card M_card
yellow/red card
Definition: body_sensor.h:113
double focusDist() const
get the focus distance value
Definition: body_sensor.h:515
int M_catch_count
sensed command count
Definition: body_sensor.h:66
double M_speed_dir_relative
speed dir. this is relative to face angle.
Definition: body_sensor.h:58
double M_neck_relative
neck angle. this is relative to body angle
Definition: body_sensor.h:59
ViewWidth M_view_width
sensed view width
Definition: body_sensor.h:53
int armMovable() const
get analyzed cycles till the arm is movable
Definition: body_sensor.h:369
const double & effort() const
get analyzed effort
Definition: body_sensor.h:239
double M_focus_dir
direction to the focus point, relative to the body direction
Definition: body_sensor.h:117
const ViewQuality & viewQuality() const
get analyzed view quality
Definition: body_sensor.h:209
int chargedExpires() const
get expire cycle of foul charge
Definition: body_sensor.h:497
const double & pointtoDir() const
get analyzed direction relative to player's face
Definition: body_sensor.h:398
int M_turn_neck_count
sensed command count
Definition: body_sensor.h:65
int attentiontoCount() const
get analyzed attentionto count
Definition: body_sensor.h:434
int M_turn_count
sensed command count
Definition: body_sensor.h:63
int M_charged_expires
foul charged expire cycle
Definition: body_sensor.h:112
SideID M_attentionto_side
attended side
Definition: body_sensor.h:96
bool M_post_collided
post collision info
Definition: body_sensor.h:110
double M_effort
sensed effort value
Definition: body_sensor.h:55
int catchCount() const
get analyzed catch count
Definition: body_sensor.h:333
int M_pointto_count
sensed command count
Definition: body_sensor.h:94
bool ballCollided() const
get the information wheter the agent collides with ball
Definition: body_sensor.h:470
bool M_ball_collided
ball collision info
Definition: body_sensor.h:108
const double & stamina() const
get analyzed stamina value
Definition: body_sensor.h:229
int M_tackle_expires
tackle expire cycles
Definition: body_sensor.h:104
double M_pointto_dir
Definition: body_sensor.h:92
double M_stamina_capacity
sensed stamina capacity
Definition: body_sensor.h:56
std::ostream & print(std::ostream &os) const
put data to output stream
const double & staminaCapacity() const
get analized stamina capacity value
Definition: body_sensor.h:249
bool M_none_collided
true if 'none' collides
Definition: body_sensor.h:107
bool M_player_collided
player collision info
Definition: body_sensor.h:109
int M_kick_count
sensed command count
Definition: body_sensor.h:61
ViewQuality M_view_quality
sensed view quality
Definition: body_sensor.h:52
game time object
Definition: game_time.h:43
view quality data class
Definition: view_mode.h:216
view width data class
Definition: view_mode.h:43
game time depending on RCSSServer2D Header File
the type definition set for the RCSSServer2D
SideID
side type definition
Definition: types.h:47
Card
card type
Definition: types.h:281
player view mode data classes Header File