LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
types.h
Go to the documentation of this file.
1// -*-c++-*-
2
8/*
9 *Copyright:
10
11 Copyright (C) Hidehisa AKIYAMA
12
13 This code is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Lesser General Public
15 License as published by the Free Software Foundation; either
16 version 3 of the License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public
24 License along with this library; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27 *EndCopyright:
28 */
29
31
32#ifndef RCSC_RCG_TYPES_H
33#define RCSC_RCG_TYPES_H
34
35#include <rcsc/types.h>
36
37#include <string>
38#include <cmath>
39#include <cstdint>
40
41namespace rcsc {
42namespace rcg {
43
44
46typedef std::int16_t Int16;
48typedef std::uint16_t UInt16;
50typedef std::int32_t Int32;
52typedef std::int32_t UInt32;
53
59enum {
60 COLOR_NAME_MAX = 64
61};
62
68 NO_INFO = 0,
73 PM_MODE = 5,
75 PT_MODE = 7,
77 PPARAM_MODE = 9
78};
79
85 MSG_BOARD = 1,
86 LOG_BOARD = 2
87};
88
94 DISABLE = 0x00000000,
95 STAND = 0x00000001,
96 KICK = 0x00000002,
97 KICK_FAULT = 0x00000004,
98 GOALIE = 0x00000008,
99 CATCH = 0x00000010,
100 CATCH_FAULT = 0x00000020,
101 BALL_TO_PLAYER = 0x00000040,
102 PLAYER_TO_BALL = 0x00000080,
103 DISCARD = 0x00000100,
104 LOST = 0x00000200,
105 BALL_COLLIDE = 0x00000400,
106 PLAYER_COLLIDE = 0x00000800,
107 TACKLE = 0x00001000,
108 TACKLE_FAULT = 0x00002000,
109 BACK_PASS = 0x00004000,
110 FREE_KICK_FAULT = 0x00008000,
111 POST_COLLIDE = 0x00010000, // player collided with goal posts
112 FOUL_CHARGED = 0x00020000, // player is frozen by intentional tackle foul
113 YELLOW_CARD = 0x00040000,
114 RED_CARD = 0x00080000,
115 ILLEGAL_DEFENSE = 0x00100000,
116};
117
118
119/*-------------------------------------------------------------------*/
120// monitor protocol version 1
121// game log format versin 1 & version 2
122
123constexpr double SHOWINFO_SCALE = 16.0;
124constexpr float SHOWINFO_SCALEF = 16.0f;
125constexpr int REC_OLD_VERSION = 1;
126constexpr int REC_VERSION_2 = 2;
127
132struct pos_t {
139};
140
145struct team_t {
146 char name[16];
148};
149
155 char pmode;
159};
160
165struct msginfo_t {
167 char message[2048];
168};
169
177 char color[COLOR_NAME_MAX];
178};
179
188 char color[COLOR_NAME_MAX];
189};
190
200 char color[COLOR_NAME_MAX];
201};
202
209 union {
210 pointinfo_t pinfo;
211 circleinfo_t cinfo;
212 lineinfo_t linfo;
214};
215
222 union {
227};
228
229/*-------------------------------------------------------------------*/
230// monitor protocol version 2
231// game log format version 3
232
234constexpr double SHOWINFO_SCALE2 = 65536.0;
236constexpr float SHOWINFO_SCALE2F = 65536.0f;
238constexpr int REC_VERSION_3 = 3;
239
244struct ball_t {
249};
250
255struct player_t {
277};
278
284 char pmode;
289};
290
301};
302
320
324
325 //Int32 sparelong1; replaced by kick_power_rate
326 //Int32 sparelong2; replaced by foul_detect_probability
327 //Int32 sparelong3; replaced by catchable_area_l_stretch
335};
336
442
445
447
450
454
465
466 /*
467 Int16 pen_before_setup_wait;
468 Int16 pen_setup_wait;
469 Int16 pen_ready_wait;
470 Int16 pen_taken_wait;
471 Int16 pen_nr_kicks;
472 Int16 pen_max_extra_kicks;
473 Int32 pen_dist_x;
474 Int16 pen_random_winner;
475 Int32 pen_max_goalie_dist_x;
476 Int16 pen_allow_mult_kicks;
477 */
478};
479
508
509 Int32 kick_power_rate_delta_min;
510 Int32 kick_power_rate_delta_max;
511 Int32 foul_detect_probability_delta_factor;
512
513 Int32 catchable_area_l_stretch_min;
514 Int32 catchable_area_l_stretch_max;
515
516 //Int32 sparelong5; replaced by kick_power_rate_delta_min
517 //Int32 sparelong6; replaced by kick_power_rate_delta_max
518 //Int32 sparelong7; replaced by foul_detect_probability_delta_factor
519 //Int32 sparelong8; replaced by catchable_area_l_stretch_min
520 //Int32 sparelong9; replaced by catchable_area_l_stretch_max
522
524
534};
535
544 union {
551};
552
553//
554// Data structures for the text based monitor protocl
555//
556
561struct BallT {
562 float x_;
563 float y_;
564 float vx_;
565 float vy_;
566
571 : x_( 0.0 ),
572 y_( 0.0 ),
575 { }
576
581 bool hasVelocity() const
582 {
583 return vx_ != SHOWINFO_SCALE2F;
584 //&& vy_ != SHOWINFO_SCALE2F;
585 }
586
587 double x() const { return x_; }
588 double y() const { return y_; }
589 double deltaX() const { return vx_; }
590 double deltaY() const { return vy_; }
591};
592
597struct PlayerT {
598 char side_;
601
603
606
608
609 float x_;
610 float y_;
611 float vx_;
612 float vy_;
613 float body_;
614 float neck_;
615 float point_x_;
616 float point_y_;
617
619
622
623 float stamina_;
624 float effort_;
625 float recovery_;
627
640
645 : side_( 'n' ),
646 unum_( 0 ),
647 type_( -1 ),
648 view_quality_( 'h' ),
649 focus_side_( 'n' ),
650 focus_unum_( 0 ),
651 state_( 0 ),
652 x_( 0.0f ),
653 y_( 0.0f ),
656 body_( 0.0f ),
661 focus_dist_( 0.0f ),
662 focus_dir_( 0.0f ),
666 stamina_capacity_( -1.0f ),
667 kick_count_( 0xFFFF ),
668 dash_count_( 0xFFFF ),
669 turn_count_( 0xFFFF ),
670 catch_count_( 0xFFFF ),
671 move_count_( 0xFFFF ),
672 turn_neck_count_( 0xFFFF ),
673 change_view_count_( 0xFFFF ),
674 say_count_( 0xFFFF ),
675 tackle_count_( 0xFFFF ),
676 pointto_count_( 0xFFFF ),
677 attentionto_count_( 0xFFFF ),
678 change_focus_count_( 0xFFFF )
679 { }
680
685 SideID side() const
686 {
687 return ( side_ == 'l' ? LEFT
688 : side_ == 'r' ? RIGHT
689 : NEUTRAL );
690 }
691
696 int unum() const
697 {
698 return unum_;
699 }
700
705 int type() const
706 {
707 return type_;
708 }
709
710 //
711 // information level
712 //
713
718 bool hasType() const
719 {
720 return type_ >= 0;
721 }
722
727 bool hasVelocity() const
728 {
729 return vx_ != SHOWINFO_SCALE2F;
730 //&& vy_ != SHOWINFO_SCALE2F;
731 }
732
737 bool hasNeck() const
738 {
739 return neck_ != SHOWINFO_SCALE2F;
740 }
741
746 bool hasView() const
747 {
749 }
750
755 bool hasStamina() const
756 {
757 return stamina_ != SHOWINFO_SCALE2F;
758 }
759
765 {
766 return stamina_capacity_ >= 0.0f;
767 }
768
773 bool hasCommandCount() const
774 {
775 return kick_count_ != 0xFFFF;
776 }
777
782 bool hasArm() const
783 {
784 return point_x_ != SHOWINFO_SCALE2F;
785 }
786
787 //
788 // player state
789 //
790
795 bool isAlive() const
796 {
797 return state_ != 0;
798 }
799
804 bool isKicking() const
805 {
806 return state_ & KICK
807 && !( state_ & KICK_FAULT );
808 }
809
814 bool isKickingFault() const
815 {
816 return state_ & KICK_FAULT;
817 }
818
823 bool isGoalie() const
824 {
825 return state_ & GOALIE;
826 }
827
832 bool isCatching() const
833 {
834 return state_ & CATCH
835 && !( state_ & CATCH_FAULT );
836 }
837
842 bool isCatchingFault() const
843 {
844 return state_ & CATCH_FAULT;
845 }
846
851 bool isCollidedBall() const
852 {
853 return state_ & BALL_COLLIDE
854 || state_ & BALL_TO_PLAYER
855 || state_ & PLAYER_TO_BALL;
856 }
857
862 bool isCollidedPlayer() const
863 {
864 return state_ & PLAYER_COLLIDE;
865 }
866
871 bool isTackling() const
872 {
873 return state_ & TACKLE
874 && !( state_ & TACKLE_FAULT );
875 }
876
881 bool isTacklingFault() const
882 {
883 return state_ & TACKLE_FAULT;
884 }
885
890 bool isPointing() const
891 {
892 return point_x_ != SHOWINFO_SCALE2F
894 }
895
900 bool isFocusing() const
901 {
902 return focus_side_ != 'n';
903 }
904
909 bool isFoulCharged() const
910 {
911 return state_ & FOUL_CHARGED;
912 }
913
918 bool hasYellowCard() const
919 {
920 return state_ & YELLOW_CARD;
921 }
922
927 bool hasRedCard() const
928 {
929 return state_ & RED_CARD;
930 }
931
937 {
938 return state_ & ILLEGAL_DEFENSE;
939 }
940
945 bool highQuality() const
946 {
947 return ( view_quality_ == 'h' );
948 }
949
955 {
956 return ( focus_side_ == 'l' ? LEFT
957 : focus_side_ == 'r' ? RIGHT
958 : NEUTRAL );
959 }
960
961 //
962 // accessor methods
963 //
964
965 int focusUnum() const { return focus_unum_; }
966
967 double x() const { return x_; }
968 double y() const { return y_; }
969
970 double deltaX() const { return vx_; }
971 double deltaY() const { return vy_; }
972
973 double body() const { return body_; }
974 double head() const { return body_ + neck_; }
975
976 double pointX() const { return point_x_; }
977 double pointY() const { return point_y_; }
978
979 double viewWidth() const { return view_width_; }
980
981 double focusDist() const { return focus_dist_; }
982 double focusDir() const { return focus_dir_; }
983
984 double stamina() const { return stamina_; }
985 double effort() const { return effort_; }
986 double recovery() const { return recovery_; }
987 double staminaCapacity() const { return stamina_capacity_; }
988
989 int kickCount() const { return kick_count_; }
990 int dashCount() const { return dash_count_; }
991 int turnCount() const { return turn_count_; }
992 int catchCount() const { return catch_count_; }
993 int moveCount() const { return move_count_; }
994 int turnNeckCount() const { return turn_neck_count_; }
995 int changeViewCount() const { return change_view_count_; }
996 int sayCount() const { return say_count_; }
997 int tackleCount() const { return tackle_count_; }
998 int pointtoCount() const { return pointto_count_; }
999 int attentiontoCount() const { return attentionto_count_; }
1000 int changeFocusCount() const { return change_focus_count_; }
1001
1002 bool hasFullEffort( const double max_effort ) const
1003 {
1004 return std::fabs( max_effort - effort_ ) < 1.0e-5;
1005 }
1006
1007 bool hasFullRecovery() const
1008 {
1009 return std::fabs( 1.0 - recovery_ ) < 1.0e-5;
1010 }
1011};
1012
1017struct TeamT {
1018 std::string name_;
1022
1027 : score_( 0 ),
1028 pen_score_( 0 ),
1029 pen_miss_( 0 )
1030 { }
1031
1039 TeamT( const char * name,
1040 const UInt16 score,
1041 const UInt16 pen_score,
1042 const UInt16 pen_miss )
1043 : name_( name ),
1044 score_( score ),
1045 pen_score_( pen_score ),
1046 pen_miss_( pen_miss )
1047 { }
1048
1052 void clear()
1053 {
1054 name_.erase();
1055 score_ = 0;
1056 pen_score_ = 0;
1057 pen_miss_ = 0;
1058 }
1059
1064 const std::string & name() const
1065 {
1066 return name_;
1067 }
1068
1073 int score() const
1074 {
1075 return score_;
1076 }
1077
1082 int penaltyScore() const
1083 {
1084 return pen_score_;
1085 }
1086
1091 int penaltyMiss() const { return pen_miss_; }
1092
1097 int penaltyTrial() const
1098 {
1099 return pen_score_ + pen_miss_;
1100 }
1101
1107 bool equals( const TeamT & other ) const
1108 {
1109 return ( name_ == other.name_
1110 && score_ == other.score_
1111 && pen_score_ == other.pen_score_
1112 && pen_miss_ == other.pen_miss_ );
1113 }
1114
1115};
1116
1125};
1126
1135};
1136
1137
1139constexpr int REC_VERSION_4 = 4;
1141constexpr int REC_VERSION_5 = 5;
1143constexpr int REC_VERSION_6 = 6;
1144
1146constexpr int REC_VERSION_JSON = -1;
1147
1150
1151} // end namespace
1152} // end namespace
1153
1154#endif
constexpr int REC_VERSION_4
recorded value of rcg v4
Definition: types.h:1139
constexpr double SHOWINFO_SCALE2
scaling variable
Definition: types.h:234
constexpr float SHOWINFO_SCALEF
scaling factor
Definition: types.h:124
constexpr int DEFAULT_LOG_VERSION
default rcg version
Definition: types.h:1149
std::int32_t Int32
type of the 32bits integer value
Definition: types.h:50
DispInfoMode
monitor data type enumeration.
Definition: types.h:67
@ NO_INFO
dummy type
Definition: types.h:68
@ BLANK_MODE
dummy. until sserver-6.07
Definition: types.h:72
@ MSG_MODE
msg info
Definition: types.h:70
@ PT_MODE
player_type_t
Definition: types.h:75
@ DRAW_MODE
drawinfo_t
Definition: types.h:71
@ TEAM_MODE
team_t (team name & score)
Definition: types.h:74
@ PARAM_MODE
server_params_t
Definition: types.h:76
@ PPARAM_MODE
player_params_t
Definition: types.h:77
@ SHOW_MODE
showinfo_t
Definition: types.h:69
@ PM_MODE
playmode
Definition: types.h:73
constexpr float SHOWINFO_SCALE2F
scaling variable
Definition: types.h:236
constexpr double SHOWINFO_SCALE
scaling factor
Definition: types.h:123
constexpr int REC_VERSION_JSON
recorded value of json rcg
Definition: types.h:1146
constexpr int REC_VERSION_2
recorded value of rcg v2
Definition: types.h:126
std::int32_t UInt32
type of the unsigned 32bits integer value
Definition: types.h:52
constexpr int REC_VERSION_5
recorded value of rcg v5
Definition: types.h:1141
constexpr int REC_VERSION_3
version number
Definition: types.h:238
MsgInfoMode
message data type id enumeration.
Definition: types.h:84
std::uint16_t UInt16
type of the unsigned 16bits integer value
Definition: types.h:48
constexpr int REC_VERSION_6
recorded value of rcg v6
Definition: types.h:1143
std::int16_t Int16
type of the 16bits integer value
Definition: types.h:46
constexpr int REC_OLD_VERSION
version number of rcg v1
Definition: types.h:125
PlayerStatus
player status bit mask.
Definition: types.h:93
generic ball data for display information
Definition: types.h:561
BallT()
initialize all variables by 0
Definition: types.h:570
float vy_
ball velocity y
Definition: types.h:565
bool hasVelocity() const
check if this object has velocity info
Definition: types.h:581
float x_
ball position x
Definition: types.h:562
float vx_
ball velocity x
Definition: types.h:564
float y_
ball position y
Definition: types.h:563
display information
Definition: types.h:1131
PlayMode pmode_
playmode id
Definition: types.h:1132
ShowInfoT show_
positional data
Definition: types.h:1134
TeamT team_[2]
team data
Definition: types.h:1133
generic player data for display information
Definition: types.h:597
UInt16 pointto_count_
pointto command count
Definition: types.h:637
Int16 type_
heterogeneous player type id
Definition: types.h:600
UInt16 say_count_
say command count
Definition: types.h:635
char view_quality_
view quality indicator, 'l' or 'h'
Definition: types.h:602
bool hasView() const
check if this object has view width info
Definition: types.h:746
float stamina_capacity_
stamina capacity value
Definition: types.h:626
bool highQuality() const
check if view quality is high.
Definition: types.h:945
bool isCatching() const
check if this object is catching.
Definition: types.h:832
bool isCatchingFault() const
check if this object is catching fault.
Definition: types.h:842
UInt16 change_focus_count_
change_focus command count
Definition: types.h:639
bool hasRedCard() const
check if this player has red card or not.
Definition: types.h:927
UInt16 dash_count_
dash command count
Definition: types.h:629
float view_width_
view width (degree). high: value>0, low: value<0
Definition: types.h:618
UInt16 change_view_count_
change_view command count
Definition: types.h:634
float vx_
velocity x
Definition: types.h:611
bool hasStamina() const
check if this object has stamina info
Definition: types.h:755
Int32 state_
state bit flags
Definition: types.h:607
bool isIllegalDefenseState() const
check if this player is marked as an illegal defense state
Definition: types.h:936
float effort_
effort value
Definition: types.h:624
float y_
position y
Definition: types.h:610
char focus_side_
focus target side. 'l', 'r' or 'n'. 'n' means no focus target.
Definition: types.h:604
bool isPointing() const
check if this object is pointing to somewhere.
Definition: types.h:890
float vy_
velocity y
Definition: types.h:612
UInt16 kick_count_
kick command count
Definition: types.h:628
UInt16 tackle_count_
tackle command count
Definition: types.h:636
SideID focusSide() const
get focused player's side id
Definition: types.h:954
float focus_dir_
direction to the focus point, relative to the face angle
Definition: types.h:621
float recovery_
recovery value
Definition: types.h:625
bool hasCommandCount() const
check if this object has command count info
Definition: types.h:773
bool isFocusing() const
check if this object is focusing to someone.
Definition: types.h:900
bool hasStaminaCapacity() const
check if this object has stamina capacity info
Definition: types.h:764
bool hasType() const
check if this object has player type info
Definition: types.h:718
float point_x_
arm pointing x
Definition: types.h:615
bool hasYellowCard() const
check if this player has yellow card or not.
Definition: types.h:918
bool isTacklingFault() const
check if this object is tackling fault.
Definition: types.h:881
Int16 focus_unum_
focus target uniform number. 0 means no focus target.
Definition: types.h:605
int type() const
get heterogeneous player type id
Definition: types.h:705
bool isCollidedPlayer() const
check if this object is collided with player.
Definition: types.h:862
bool isCollidedBall() const
check if this object is collided with ball.
Definition: types.h:851
bool isAlive() const
check if this object is enabled.
Definition: types.h:795
bool hasArm() const
check if this object has arm information
Definition: types.h:782
int unum() const
get uniform number
Definition: types.h:696
float x_
position x
Definition: types.h:609
bool isKickingFault() const
check if this object is kicking fault.
Definition: types.h:814
UInt16 catch_count_
catch command count
Definition: types.h:631
bool hasVelocity() const
check if this object has velocity info
Definition: types.h:727
float stamina_
satamina value
Definition: types.h:623
UInt16 move_count_
move command count
Definition: types.h:632
UInt16 attentionto_count_
attentionto command count
Definition: types.h:638
float body_
body direction (degree)
Definition: types.h:613
Int16 unum_
player's uniform number. 0 means disabled player.
Definition: types.h:599
float neck_
head direction relative to body (degree)
Definition: types.h:614
SideID side() const
get side id
Definition: types.h:685
PlayerT()
initialize all variables
Definition: types.h:644
UInt16 turn_count_
turn command count
Definition: types.h:630
bool isGoalie() const
check if this object is goalie.
Definition: types.h:823
bool isKicking() const
check if this object is kicking.
Definition: types.h:804
char side_
player's side. 'l', 'r' or 'n'
Definition: types.h:598
UInt16 turn_neck_count_
turn_neck command count
Definition: types.h:633
float focus_dist_
distance to the focus point
Definition: types.h:620
bool isTackling() const
check if this object is tackling
Definition: types.h:871
bool isFoulCharged() const
check if this player is chaged by an opponent player.
Definition: types.h:909
float point_y_
arm pointing y
Definition: types.h:616
bool hasNeck() const
check if this object has neck info
Definition: types.h:737
show information
Definition: types.h:1121
UInt32 time_
game time
Definition: types.h:1122
BallT ball_
ball data
Definition: types.h:1123
PlayerT player_[MAX_PLAYER *2]
player data
Definition: types.h:1124
team information
Definition: types.h:1017
TeamT()
initialize all variables by 0
Definition: types.h:1026
int penaltyScore() const
get the score of penalty shootouts.
Definition: types.h:1082
UInt16 pen_score_
count of penalty score
Definition: types.h:1020
int score() const
get the score of normal and overtime games.
Definition: types.h:1073
void clear()
clear all variables
Definition: types.h:1052
int penaltyTrial() const
get the total penalty trial count
Definition: types.h:1097
UInt16 pen_miss_
count of penalty miss
Definition: types.h:1021
UInt16 score_
total scores in normal game
Definition: types.h:1019
std::string name_
team name string
Definition: types.h:1018
bool equals(const TeamT &other) const
check if artument variable has same values.
Definition: types.h:1107
TeamT(const char *name, const UInt16 score, const UInt16 pen_score, const UInt16 pen_miss)
initialize all variables by specified values
Definition: types.h:1039
const std::string & name() const
get the team name.
Definition: types.h:1064
int penaltyMiss() const
get the miss count of penalty shootouts.
Definition: types.h:1091
ball data
Definition: types.h:244
Int32 y
pos y scaled by SHOWINFO_SCALE2
Definition: types.h:246
Int32 deltay
velocity y scaled by SHOWINFO_SCALE2
Definition: types.h:248
Int32 deltax
velocity x scaled by SHOWINFO_SCALE2
Definition: types.h:247
Int32 x
pos x scaled by SHOWINFO_SCALE2
Definition: types.h:245
circle data in drawinfo_t
Definition: types.h:184
Int16 r
radius
Definition: types.h:187
Int16 x
x pos
Definition: types.h:185
char color[COLOR_NAME_MAX]
color name
Definition: types.h:188
Int16 y
y pos
Definition: types.h:186
data block for rcssmonitor v2 protocol.
Definition: types.h:542
Int16 mode
data type id
Definition: types.h:543
server_params_t sparams
server param data
Definition: types.h:548
player_type_t ptinfo
player type data
Definition: types.h:547
showinfo_t2 show
view data
Definition: types.h:545
union rcsc::rcg::dispinfo_t2::@8 body
union variable
msginfo_t msg
message data
Definition: types.h:546
player_params_t pparams
payer trade-off param data
Definition: types.h:549
data block for rcssmonitor v1 protocol and rcg v1/v2
Definition: types.h:220
union rcsc::rcg::dispinfo_t::@7 body
union variable
msginfo_t msg
message data
Definition: types.h:224
Int16 mode
data type id
Definition: types.h:221
drawinfo_t draw
draw data
Definition: types.h:225
showinfo_t show
view data
Definition: types.h:223
drawing data
Definition: types.h:207
Int16 mode
data type id
Definition: types.h:208
union rcsc::rcg::drawinfo_t::@6 object
union variable
line data in drawinfo_t
Definition: types.h:195
char color[COLOR_NAME_MAX]
color name
Definition: types.h:200
Int16 x2
x of point2
Definition: types.h:198
Int16 y2
y of point2
Definition: types.h:199
Int16 x1
x of point1
Definition: types.h:196
Int16 y1
y of point1
Definition: types.h:197
message data
Definition: types.h:165
Int16 board
message type id
Definition: types.h:166
char message[2048]
message body
Definition: types.h:167
heterogenious player trade-off parametors
Definition: types.h:484
Int32 sparelong10
spare variable
Definition: types.h:521
Int16 spareshort8
spare variable
Definition: types.h:531
Int32 extra_stamina_delta_min
minimal value wighin delta range
Definition: types.h:500
Int32 effort_max_delta_factor
tradeoff parameter
Definition: types.h:502
Int32 kick_rand_delta_factor
tradeoff parameter
Definition: types.h:499
Int32 random_seed
random seed to generate parameters
Definition: types.h:504
Int16 spareshort10
spare variable
Definition: types.h:533
Int16 substitute_max
max player substitution
Definition: types.h:486
Int32 player_size_delta_factor
tradeoff parameter
Definition: types.h:496
Int32 inertia_moment_delta_factor
tradeoff parameter
Definition: types.h:493
Int32 extra_stamina_delta_max
maximal value wighin delta range
Definition: types.h:501
Int32 player_speed_max_delta_max
maximal value wighin delta range
Definition: types.h:489
Int16 allow_mult_default_type
whether multiple default type is allowed
Definition: types.h:523
Int16 spareshort4
spare variable
Definition: types.h:527
Int16 spareshort6
spare variable
Definition: types.h:529
Int16 spareshort3
spare variable
Definition: types.h:526
Int32 kickable_margin_delta_max
maximal value wighin delta range
Definition: types.h:498
Int32 new_dash_power_rate_delta_min
minimal value wighin delta range
Definition: types.h:505
Int32 new_stamina_inc_max_delta_factor
tradeoff parameter
Definition: types.h:507
Int32 dash_power_rate_delta_min
minimal value wighin delta range
Definition: types.h:494
Int16 spareshort2
spare variable
Definition: types.h:525
Int32 new_dash_power_rate_delta_max
maximal value wighin delta range
Definition: types.h:506
Int32 dash_power_rate_delta_max
maximal value wighin delta range
Definition: types.h:495
Int32 player_decay_delta_max
maximal value wighin delta range
Definition: types.h:492
Int16 player_types
the number of player types
Definition: types.h:485
Int32 stamina_inc_max_delta_factor
tradeoff parameter
Definition: types.h:490
Int16 spareshort7
spare variable
Definition: types.h:530
Int32 player_speed_max_delta_min
minimal value wighin delta range
Definition: types.h:488
Int16 pt_max
max each player type on field
Definition: types.h:487
Int32 effort_min_delta_factor
tradeoff parameter
Definition: types.h:503
Int32 player_decay_delta_min
minimal value wighin delta range
Definition: types.h:491
Int16 spareshort5
spare variable
Definition: types.h:528
Int32 kickable_margin_delta_min
minimal value wighin delta range
Definition: types.h:497
Int16 spareshort9
spare variable
Definition: types.h:532
player data
Definition: types.h:255
Int16 type
player type id
Definition: types.h:257
Int16 turn_neck_count
executed turn_neck command count
Definition: types.h:273
Int32 effort
scaled effort value
Definition: types.h:267
Int16 view_quality
view quality id
Definition: types.h:265
Int32 stamina
scaled stamina value.
Definition: types.h:266
Int16 move_count
executed move command count
Definition: types.h:275
Int32 deltax
scaled velocity x
Definition: types.h:260
Int16 catch_count
executed catch command count
Definition: types.h:274
Int32 body_angle
scaled body angle. radian data
Definition: types.h:262
Int16 dash_count
executed dash command count
Definition: types.h:270
Int16 kick_count
executed kick command count
Definition: types.h:269
Int16 mode
status flag
Definition: types.h:256
Int16 turn_count
executed turn command count
Definition: types.h:271
Int16 change_view_count
executed change_view command count
Definition: types.h:276
Int32 x
scaled pos x
Definition: types.h:258
Int16 say_count
executed say command count
Definition: types.h:272
Int32 view_width
scaled view width. radian data
Definition: types.h:264
Int32 recovery
scaled recover value
Definition: types.h:268
Int32 head_angle
scaled heading angle relative to body. radian data
Definition: types.h:263
Int32 y
scaled pos y
Definition: types.h:259
Int32 deltay
scaled velocity y
Definition: types.h:261
player type parameters
Definition: types.h:307
Int32 sparelong10
spare variable
Definition: types.h:334
Int32 sparelong9
spare variable
Definition: types.h:333
Int32 player_size
body radius
Definition: types.h:314
Int32 sparelong5
spare variable
Definition: types.h:329
Int32 stamina_inc_max
max stamina increment value
Definition: types.h:310
Int32 sparelong6
spare variable
Definition: types.h:330
Int32 kick_power_rate
kick power rate
Definition: types.h:321
Int32 kickable_margin
kickable margin
Definition: types.h:315
Int32 catchable_area_l_stretch
catch area length stretch factor
Definition: types.h:323
Int32 kick_rand
random factor for kick
Definition: types.h:316
Int32 inertia_moment
inertia moment
Definition: types.h:312
Int32 effort_max
max(initial) effort value
Definition: types.h:318
Int32 effort_min
min effort value
Definition: types.h:319
Int32 sparelong8
spare variable
Definition: types.h:332
Int32 sparelong7
spare variable
Definition: types.h:331
Int32 player_decay
speed decay
Definition: types.h:311
Int32 extra_stamina
extra stamina value when stamina is 0.
Definition: types.h:317
Int32 dash_power_rate
dash power rate
Definition: types.h:313
Int32 foul_detect_probability
foul detect probability
Definition: types.h:322
Int32 player_speed_max
max speed
Definition: types.h:309
Int16 id
type id
Definition: types.h:308
Int32 sparelong4
spare variable
Definition: types.h:328
point data in drawinfo_t
Definition: types.h:174
char color[COLOR_NAME_MAX]
color name
Definition: types.h:177
Int16 x
x pos
Definition: types.h:175
Int16 y
y pos
Definition: types.h:176
object data
Definition: types.h:132
Int16 unum
uniform number
Definition: types.h:135
Int16 y
y-coordinate
Definition: types.h:138
Int16 angle
player's body angle. This is degree data.
Definition: types.h:136
Int16 x
x-coordinate
Definition: types.h:137
Int16 side
side type of this object
Definition: types.h:134
Int16 enable
determines if this object is in field.
Definition: types.h:133
server parametors
Definition: types.h:341
Int32 stamina_max
normal player stamina max
Definition: types.h:350
Int16 coach_say_count_max
max count of coach's freeform say
Definition: types.h:402
Int32 slowness_on_top_for_left_team
flag for left team dash power rate reduction on field top area
Definition: types.h:440
Int16 clang_info_win
window of coach language info message
Definition: types.h:408
Int32 tackle_back_dist
back tackle area length
Definition: types.h:452
Int16 recv_step
udp recv step interval msec
Definition: types.h:414
Int32 recover_dec_thr
normal player recovery decriment threshold
Definition: types.h:353
Int32 audio_cut_dist
audio cut off distance
Definition: types.h:426
Int32 player_decay
normal player speed decay
Definition: types.h:345
Int32 wind_force
wind force
Definition: types.h:390
Int16 start_goal_l
initial left team score
Definition: types.h:455
Int16 coach_say_msg_size
max length of coach's freeform say message
Definition: types.h:403
Int16 half_time
half time cycle
Definition: types.h:411
Int16 fullstate_r
flag for right team's fullstate info receive
Definition: types.h:458
Int32 wind_dir
wind direction
Definition: types.h:389
Int32 recover_init
normal player recovery init
Definition: types.h:352
Int32 player_speed_max
normal player speed max
Definition: types.h:348
Int16 start_goal_r
initial right team score
Definition: types.h:456
Int16 clang_win_size
window of coach language window
Definition: types.h:404
Int16 lcm_step
lcm of all the above steps msec
Definition: types.h:416
Int32 kickable_area
kickable_area
Definition: types.h:393
Int16 coach_mode
coach mode
Definition: types.h:436
Int32 effort_inc
normal player dash effort incriment
Definition: types.h:361
Int16 player_hear_decay
player hear_capacity_decay
Definition: types.h:420
Int16 use_old_coach_hear
old format for hear command (coach)
Definition: types.h:438
Int32 max_back_tackle_power
allowed minimum tackle power
Definition: types.h:449
Int32 max_neck_angle
max neck angle
Definition: types.h:385
Int32 landmark_dist_quantize_step_l
team right quantize step of distance for landmark
Definition: types.h:432
Int32 effort_dec
normal player dash effort decriment
Definition: types.h:359
Int32 player_rand_factor_r
factor to multiple prand for right team
Definition: types.h:365
Int16 simulator_step
simulator step interval msec
Definition: types.h:412
Int32 ball_weight
ball weight
Definition: types.h:371
Int32 ball_rand
noise added to ball movement
Definition: types.h:370
Int32 landmark_dist_quantize_step_r
team left quantize step of distance for landmark
Definition: types.h:433
Int32 effort_init
normal player dash effort init
Definition: types.h:356
Int32 effort_min
normal player dash effrot min
Definition: types.h:358
Int16 clang_mess_per_cycle
online coach can send CLang advise per this cycle
Definition: types.h:410
Int16 send_step
udp send step interval msec
Definition: types.h:413
Int16 online_coach_look_step
online coach's look interval step
Definition: types.h:439
Int16 clang_meta_win
window of coach lauguage meta message
Definition: types.h:406
Int32 slowness_on_top_for_right_team
flag for right team dash power rate reduction on field top area
Definition: types.h:441
Int32 corner_kick_margin
corner kick margin
Definition: types.h:398
Int32 offside_kick_margin
offside kick margin
Definition: types.h:425
Int16 clang_advice_win
window of coach language advice message
Definition: types.h:407
Int16 fullstate_l
flag for left team's fullstate info receive
Definition: types.h:457
Int32 dir_quantize_step_r
team right quantize step of direction
Definition: types.h:435
Int32 player_accel_max
normal player accel max
Definition: types.h:349
Int32 dir_quantize_step
quantize step of direction
Definition: types.h:429
Int32 stamina_inc
normal player stamina inc
Definition: types.h:351
Int32 player_rand
noize added to normal player movement
Definition: types.h:346
Int32 landmark_dist_quantize_step
quantize step of distance for landmark
Definition: types.h:428
Int16 wind_none
wind factor is none
Definition: types.h:400
Int16 clang_mess_delay
coach language advise message is delayed this cycle
Definition: types.h:409
Int32 tackle_width
tackle area width
Definition: types.h:453
Int32 ball_size
ball size
Definition: types.h:368
Int32 max_tackle_power
allowed maximum tackle power
Definition: types.h:448
Int16 player_hear_inc
player hear_capacity_inc
Definition: types.h:419
Int16 goalie_max_moves
goalie max moves after a catch
Definition: types.h:397
Int32 offside_active_area
offside active area size
Definition: types.h:399
Int32 control_radius_width
(control radius) - (plyaer size)
Definition: types.h:378
Int32 min_power
min power
Definition: types.h:380
Int32 visible_angle
visible angle
Definition: types.h:387
Int32 player_rand_factor_l
factor to multiple prand for left team
Definition: types.h:364
Int32 ka_width
keep away region width
Definition: types.h:444
Int16 clang_define_win
window of coach language define message
Definition: types.h:405
Int32 effort_dec_thr
normal player dash effort decriment threshold
Definition: types.h:357
Int32 kickable_margin
normal player's kickable margin
Definition: types.h:376
Int16 drop_ball_time
automatically drop_ball waiting cycle
Definition: types.h:459
Int32 catch_probability
goalie catchable possibility
Definition: types.h:396
Int32 ka_length
keep away region length
Definition: types.h:443
Int32 catch_area_w
goalie catchable area width
Definition: types.h:395
Int32 goal_width
goal width
Definition: types.h:342
Int16 player_say_msg_size
string size of say message
Definition: types.h:417
Int32 inertia_moment
related to player's turn action
Definition: types.h:343
Int32 min_neck_angle
min neck angle
Definition: types.h:386
Int16 point_to_ban
player continue to point to the same point at least during this cycle
Definition: types.h:463
Int32 control_radius
control radius
Definition: types.h:377
Int32 recover_dec
normal player recovery decriment
Definition: types.h:355
Int32 kick_rand
noise added directly to normal player's kick
Definition: types.h:362
Int16 team_actuator_noise
flag whether to use team specific actuator noise
Definition: types.h:363
Int32 min_neck_moment
min neck moment
Definition: types.h:384
Int16 catch_ban_cycle
goalie catch ban cycle
Definition: types.h:421
Int32 wind_ang
wind angle for rand
Definition: types.h:391
Int32 catch_area_l
goalie catchable area length
Definition: types.h:394
Int16 kickoff_offside
flag for permit kick off offside
Definition: types.h:424
Int16 synch_micro_sleep
the number of microseconds to sleep while waiting for players *‍/
Definition: types.h:462
Int32 player_weight
normal player weight
Definition: types.h:347
Int32 max_power
max power
Definition: types.h:379
Int16 synch_mode
flag for using synchronized mode
Definition: types.h:460
Int16 sense_body_step
sense_body interval step msec
Definition: types.h:415
Int32 max_neck_moment
max neck moment
Definition: types.h:383
Int16 synch_offset
wheh sync_mode, server decide the message sent to clients before this number[ms]
Definition: types.h:461
Int16 point_to_duration
point_to command has effectiveness during this cycle
Definition: types.h:464
Int32 recover_min
normal player recovery min
Definition: types.h:354
Int32 wind_rand
wind noise for force
Definition: types.h:392
Int32 dist_quantize_step_r
team left quantize step of distance
Definition: types.h:431
Int32 kick_rand_factor_r
factor to multiple kick_rand for right team
Definition: types.h:367
Int16 player_hear_max
player hear_capacity_max
Definition: types.h:418
Int32 player_size
normal player size
Definition: types.h:344
Int32 dash_power_rate
normal player's dash power rate
Definition: types.h:374
Int16 slow_down_factor
factor to slow down simulator and send intervals
Definition: types.h:422
Int32 effort_inc_thr
normal player dash effort incriment threshold
Definition: types.h:360
Int32 tackle_dist
forward tackle area length
Definition: types.h:451
Int32 ball_speed_max
ball speed max
Definition: types.h:372
Int32 dir_quantize_step_l
team left quantize step of direction
Definition: types.h:434
Int32 kick_rand_factor_l
factor to multiple kick_rand for left team
Definition: types.h:366
Int32 ball_accel_max
ball acceleration max
Definition: types.h:373
Int16 use_wind_random
wind factor is random
Definition: types.h:401
Int32 kick_power_rate
normal player's kick power rate
Definition: types.h:375
Int32 max_moment
max moment
Definition: types.h:381
Int32 ball_decay
ball speed decay
Definition: types.h:369
Int16 use_offside
flag for using off side rule
Definition: types.h:423
Int32 dist_quantize_step_l
team right quantize step of distance
Definition: types.h:430
Int32 min_moment
min moment
Definition: types.h:382
Int16 coach_with_referee_mode
coach with referee mode
Definition: types.h:437
Int32 dist_quantize_step
quantize step of distance
Definition: types.h:427
Int32 visible_distance
visible distance
Definition: types.h:388
Int32 ball_stuck_area
automatic drop ball threshold while play_on
Definition: types.h:446
view data.
Definition: types.h:297
player_t pos[MAX_PLAYER *2]
player info
Definition: types.h:299
ball_t ball
ball info
Definition: types.h:298
Int16 time
game time
Definition: types.h:300
view data of rcssmonitor v2 protocol
Definition: types.h:283
player_t pos[MAX_PLAYER *2]
all player info
Definition: types.h:287
char pmode
playmode id
Definition: types.h:284
team_t team[2]
team info
Definition: types.h:285
Int16 time
game time
Definition: types.h:288
ball_t ball
ball info
Definition: types.h:286
view data of rcssmonitor v1 protocol
Definition: types.h:154
Int16 time
game time
Definition: types.h:158
char pmode
playmode id
Definition: types.h:155
pos_t pos[MAX_PLAYER *2+1]
all movable objects
Definition: types.h:157
team_t team[2]
team date
Definition: types.h:156
team data
Definition: types.h:145
char name[16]
team name string
Definition: types.h:146
Int16 score
score
Definition: types.h:147
the type definition set for the RCSSServer2D
SideID
side type definition
Definition: types.h:47
PlayMode
playmode types defined in rcssserver/src/types.h
Definition: types.h:130
constexpr int MAX_PLAYER
max player number in one team
Definition: types.h:38