LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
say_message_builder.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_PLAYER_SAY_MESSAGE_BUILDER_H
33#define RCSC_PLAYER_SAY_MESSAGE_BUILDER_H
34
37#include <rcsc/geom/vector_2d.h>
38
39#include <string>
40#include <iostream>
41
42namespace rcsc {
43
44/*-------------------------------------------------------------------*/
54 : public SayMessage {
55private:
56
57 Vector2D M_ball_pos;
58 Vector2D M_ball_vel;
59
60public:
61
67 BallMessage( const Vector2D & ball_pos,
68 const Vector2D & ball_vel )
69 : M_ball_pos( ball_pos ),
70 M_ball_vel( ball_vel )
71 { }
72
77 char header() const
78 {
80 }
81
86 static
87 int slength()
88 {
90 }
91
96 int length() const
97 {
98 return slength();
99 }
100
106 bool appendTo( std::string & to ) const;
107
113 std::ostream & printDebug( std::ostream & os ) const;
114
115};
116
117/*-------------------------------------------------------------------*/
127 : public SayMessage {
128private:
129
130 int M_receiver_unum;
131 Vector2D M_receive_point;
132
133 Vector2D M_ball_pos;
134 Vector2D M_ball_vel;
135
136public:
137
145 PassMessage( const int receiver_unum,
146 const Vector2D & receive_point,
147 const Vector2D & ball_pos,
148 const Vector2D & ball_vel )
149 : M_receiver_unum( receiver_unum ),
150 M_receive_point( receive_point ),
151 M_ball_pos( ball_pos ),
152 M_ball_vel( ball_vel )
153 { }
154
159 char header() const
160 {
162 }
163
168 static
170 {
172 }
173
178 int length() const
179 {
180 return slength();
181 }
182
188 bool appendTo( std::string & to ) const;
189
195 std::ostream & printDebug( std::ostream & os ) const;
196
197};
198
199/*-------------------------------------------------------------------*/
209 : public SayMessage {
210private:
211
212 bool M_our;
213 int M_unum;
214 int M_cycle;
215
216public:
217
224 InterceptMessage( const bool our,
225 const int unum,
226 const int cycle )
227 : M_our( our ),
228 M_unum( unum ),
229 M_cycle( cycle )
230 { }
231
236 char header() const
237 {
239 }
240
245 static
247 {
249 }
250
255 int length() const
256 {
257 return slength();
258 }
259
265 bool appendTo( std::string & to ) const;
266
272 std::ostream & printDebug( std::ostream & os ) const;
273
274};
275
276/*-------------------------------------------------------------------*/
286 : public SayMessage {
287private:
288
289 int M_goalie_unum;
290 Vector2D M_goalie_pos;
291 AngleDeg M_goalie_body;
292
293public:
294
301 GoalieMessage( const int goalie_unum,
302 const Vector2D & goalie_pos,
303 const AngleDeg & goalie_body )
304 : M_goalie_unum( goalie_unum ),
305 M_goalie_pos( goalie_pos ),
306 M_goalie_body( goalie_body )
307 { }
308
313 char header() const
314 {
316 }
317
322 static
324 {
326 }
327
332 int length() const
333 {
334 return slength();
335 }
336
342 bool appendTo( std::string & to ) const;
343
349 std::ostream & printDebug( std::ostream & os ) const;
350
351};
352
353/*-------------------------------------------------------------------*/
363 : public SayMessage {
364private:
365
366 int M_goalie_unum;
367 Vector2D M_goalie_pos;
368 AngleDeg M_goalie_body;
369
370 int M_player_number;
371 Vector2D M_player_pos;
372
373public:
374
383 GoalieAndPlayerMessage( const int goalie_unum,
384 const Vector2D & goalie_pos,
385 const AngleDeg & goalie_body,
386 const int player_number,
387 const Vector2D & player_pos )
388 : M_goalie_unum( goalie_unum ),
389 M_goalie_pos( goalie_pos ),
390 M_goalie_body( goalie_body ),
391 M_player_number( player_number ),
392 M_player_pos( player_pos )
393 { }
394
399 char header() const
400 {
402 }
403
408 static
410 {
412 }
413
418 int length() const
419 {
420 return slength();
421 }
422
428 bool appendTo( std::string & to ) const;
429
435 std::ostream & printDebug( std::ostream & os ) const;
436
437};
438
439/*-------------------------------------------------------------------*/
449 : public SayMessage {
450private:
451
452 double M_offside_line_x;
453
454public:
455
460 explicit
461 OffsideLineMessage( const double & offside_line_x )
462 : M_offside_line_x( offside_line_x )
463 { }
464
469 char header() const
470 {
472 }
473
478 static
480 {
482 }
483
488 int length() const
489 {
490 return slength();
491 }
492
498 bool appendTo( std::string & to ) const;
499
505 std::ostream & printDebug( std::ostream & os ) const;
506
507};
508
509/*-------------------------------------------------------------------*/
519 : public SayMessage {
520private:
521
522 double M_defense_line_x;
523
524public:
525
530 explicit
531 DefenseLineMessage( const double & defense_line_x )
532 : M_defense_line_x( defense_line_x )
533 { }
534
539 char header() const
540 {
542 }
543
548 static
550 {
552 }
553
558 int length() const
559 {
560 return slength();
561 }
562
568 bool appendTo( std::string & to ) const;
569
575 std::ostream & printDebug( std::ostream & os ) const;
576
577};
578
579/*-------------------------------------------------------------------*/
589 : public SayMessage {
590private:
591
592public:
593
598 { }
599
604 char header() const
605 {
607 }
608
613 static
615 {
617 }
618
623 int length() const
624 {
625 return slength();
626 }
627
633 bool appendTo( std::string & to ) const;
634
640 std::ostream & printDebug( std::ostream & os ) const;
641
642};
643
644/*-------------------------------------------------------------------*/
654 : public SayMessage {
655private:
656
657 int M_wait_step;
658
659public:
660
664 explicit
665 SetplayMessage( const int wait_step )
666 : M_wait_step( wait_step )
667 { }
668
673 char header() const
674 {
676 }
677
682 static
684 {
686 }
687
692 int length() const
693 {
694 return slength();
695 }
696
702 bool appendTo( std::string & to ) const;
703
709 std::ostream & printDebug( std::ostream & os ) const;
710
711};
712
713/*-------------------------------------------------------------------*/
723 : public SayMessage {
724private:
725
726 Vector2D M_target_point;
727
728public:
729
734 explicit
735 PassRequestMessage( const Vector2D & target_point )
736 : M_target_point( target_point )
737 { }
738
743 char header() const
744 {
746 }
747
752 static
754 {
756 }
757
762 int length() const
763 {
764 return slength();
765 }
766
772 bool appendTo( std::string & to ) const;
773
779 std::ostream & printDebug( std::ostream & os ) const;
780
781};
782
783/*-------------------------------------------------------------------*/
793 : public SayMessage {
794private:
795
796 double M_stamina;
797
798public:
799
804 explicit
805 StaminaMessage( const double & stamina )
806 : M_stamina( stamina )
807 { }
808
813 char header() const
814 {
816 }
817
822 static
824 {
826 }
827
832 int length() const
833 {
834 return slength();
835 }
836
842 bool appendTo( std::string & to ) const;
843
849 std::ostream & printDebug( std::ostream & os ) const;
850
851};
852
853/*-------------------------------------------------------------------*/
863 : public SayMessage {
864private:
865
866 double M_recovery;
867
868public:
869
874 explicit
875 RecoveryMessage( const double & recovery )
876 : M_recovery( recovery )
877 { }
878
883 char header() const
884 {
886 }
887
892 static
894 {
896 }
897
902 int length() const
903 {
904 return slength();
905 }
906
912 bool appendTo( std::string & to ) const;
913
919 std::ostream & printDebug( std::ostream & os ) const;
920
921};
922
923/*-------------------------------------------------------------------*/
933 : public SayMessage {
934private:
935
936 double M_stamina_capacity;
937
938public:
939
944 explicit
945 StaminaCapacityMessage( const double value )
946 : M_stamina_capacity( value )
947 { }
948
953 char header() const
954 {
956 }
957
962 static
964 {
966 }
967
972 int length() const
973 {
974 return slength();
975 }
976
982 bool appendTo( std::string & to ) const;
983
989 std::ostream & printDebug( std::ostream & os ) const;
990
991};
992
993/*-------------------------------------------------------------------*/
1003 : public SayMessage {
1004private:
1005
1006 Vector2D M_target_point;
1007 int M_queue_count;
1008
1009public:
1010
1016 DribbleMessage( const Vector2D & target_point,
1017 const int queue_count )
1018 : M_target_point( target_point ),
1019 M_queue_count( queue_count )
1020 { }
1021
1026 char header() const
1027 {
1029 }
1030
1035 static
1037 {
1039 }
1040
1045 int length() const
1046 {
1047 return slength();
1048 }
1049
1055 bool appendTo( std::string & to ) const;
1056
1062 std::ostream & printDebug( std::ostream & os ) const;
1063
1064};
1065
1066/*-------------------------------------------------------------------*/
1076 : public SayMessage {
1077private:
1078
1079 Vector2D M_ball_pos;
1080 Vector2D M_ball_vel;
1081 Vector2D M_goalie_pos;
1082 AngleDeg M_goalie_body;
1083
1084public:
1085
1093 BallGoalieMessage( const Vector2D & ball_pos,
1094 const Vector2D & ball_vel,
1095 const Vector2D & goalie_pos,
1096 const AngleDeg & goalie_body )
1097 : M_ball_pos( ball_pos ),
1098 M_ball_vel( ball_vel ),
1099 M_goalie_pos( goalie_pos ),
1100 M_goalie_body( goalie_body )
1101 { }
1102
1107 char header() const
1108 {
1110 }
1111
1116 static
1118 {
1120 }
1121
1126 int length() const
1127 {
1128 return slength();
1129 }
1130
1136 bool appendTo( std::string & to ) const;
1137
1143 std::ostream & printDebug( std::ostream & os ) const;
1144
1145};
1146
1147/*-------------------------------------------------------------------*/
1157 : public SayMessage {
1158private:
1159
1160 int M_unum;
1161 Vector2D M_player_pos;
1162
1163public:
1164
1170 OnePlayerMessage( const int unum,
1171 const Vector2D & player_pos )
1172 : M_unum( unum ),
1173 M_player_pos( player_pos )
1174 { }
1175
1180 char header() const
1181 {
1183 }
1184
1189 static
1191 {
1193 }
1194
1199 int length() const
1200 {
1201 return slength();
1202 }
1203
1209 bool appendTo( std::string & to ) const;
1210
1216 std::ostream & printDebug( std::ostream & os ) const;
1217
1218};
1219
1220/*-------------------------------------------------------------------*/
1230 : public SayMessage {
1231private:
1232
1233 int M_player_unum[2];
1234 Vector2D M_player_pos[2];
1235
1236 // not usd
1238public:
1239
1247 TwoPlayerMessage( const int player0_unum,
1248 const Vector2D & player0_pos,
1249 const int player1_unum,
1250 const Vector2D & player1_pos );
1251
1256 char header() const
1257 {
1259 }
1260
1265 static
1267 {
1269 }
1270
1275 int length() const
1276 {
1277 return slength();
1278 }
1279
1285 bool appendTo( std::string & to ) const;
1286
1292 std::ostream & printDebug( std::ostream & os ) const;
1293
1294};
1295
1296/*-------------------------------------------------------------------*/
1306 : public SayMessage {
1307private:
1308
1309 int M_player_unum[3];
1310 Vector2D M_player_pos[3];
1311
1312public:
1313
1323 ThreePlayerMessage( const int player0_unum,
1324 const Vector2D & player0_pos,
1325 const int player1_unum,
1326 const Vector2D & player1_pos,
1327 const int player2_unum,
1328 const Vector2D & player2_pos );
1329
1334 char header() const
1335 {
1337 }
1338
1343 static
1345 {
1347 }
1348
1353 int length() const
1354 {
1355 return slength();
1356 }
1357
1363 bool appendTo( std::string & to ) const;
1364
1370 std::ostream & printDebug( std::ostream & os ) const;
1371
1372};
1373
1374/*-------------------------------------------------------------------*/
1384 : public SayMessage {
1385private:
1386
1387 Vector2D M_self_pos;
1388 AngleDeg M_self_body;
1389 double M_self_stamina;
1390
1391public:
1392
1399 SelfMessage( const Vector2D & self_pos,
1400 const AngleDeg & self_body,
1401 const double & self_stamina )
1402 : M_self_pos( self_pos ),
1403 M_self_body( self_body ),
1404 M_self_stamina( self_stamina )
1405 { }
1406
1411 char header() const
1412 {
1414 }
1415
1420 static
1422 {
1424 }
1425
1430 int length() const
1431 {
1432 return slength();
1433 }
1434
1440 bool appendTo( std::string & to ) const;
1441
1447 std::ostream & printDebug( std::ostream & os ) const;
1448
1449};
1450
1451/*-------------------------------------------------------------------*/
1461 : public SayMessage {
1462private:
1463
1464 int M_unum;
1465 Vector2D M_player_pos;
1466 AngleDeg M_player_body;
1467
1468public:
1469
1476 TeammateMessage( const int unum,
1477 const Vector2D & player_pos,
1478 const AngleDeg & player_body )
1479 : M_unum( unum ),
1480 M_player_pos( player_pos ),
1481 M_player_body( player_body )
1482 { }
1483
1488 char header() const
1489 {
1491 }
1492
1497 static
1499 {
1501 }
1502
1507 int length() const
1508 {
1509 return slength();
1510 }
1511
1517 bool appendTo( std::string & to ) const;
1518
1524 std::ostream & printDebug( std::ostream & os ) const;
1525
1526};
1527
1528/*-------------------------------------------------------------------*/
1538 : public SayMessage {
1539private:
1540
1541 int M_unum;
1542 Vector2D M_player_pos;
1543 AngleDeg M_player_body;
1544
1545public:
1546
1553 OpponentMessage( const int unum,
1554 const Vector2D & player_pos,
1555 const AngleDeg & player_body )
1556 : M_unum( unum ),
1557 M_player_pos( player_pos ),
1558 M_player_body( player_body )
1559 { }
1560
1565 char header() const
1566 {
1568 }
1569
1574 static
1576 {
1578 }
1579
1584 int length() const
1585 {
1586 return slength();
1587 }
1588
1594 bool appendTo( std::string & to ) const;
1595
1601 std::ostream & printDebug( std::ostream & os ) const;
1602
1603};
1604
1605/*-------------------------------------------------------------------*/
1615 : public SayMessage {
1616private:
1617
1618 Vector2D M_ball_pos;
1619 Vector2D M_ball_vel;
1620
1621 int M_unum;
1622 Vector2D M_player_pos;
1623 AngleDeg M_player_body;
1624
1625public:
1626
1635 BallPlayerMessage( const Vector2D & ball_pos,
1636 const Vector2D & ball_vel,
1637 const int unum,
1638 const Vector2D & player_pos,
1639 const AngleDeg & player_body )
1640 : M_ball_pos( ball_pos ),
1641 M_ball_vel( ball_vel ),
1642 M_unum( unum ),
1643 M_player_pos( player_pos ),
1644 M_player_body( player_body )
1645 { }
1646
1651 char header() const
1652 {
1654 }
1655
1660 static
1662 {
1664 }
1665
1670 int length() const
1671 {
1672 return slength();
1673 }
1674
1680 bool appendTo( std::string & to ) const;
1681
1687 std::ostream & printDebug( std::ostream & os ) const;
1688
1689};
1690
1691}
1692
1693#endif
degree wrapper class
Definition: angle_deg.h:45
static int slength()
get the length of this message.
Definition: say_message_parser.h:1015
static char sheader()
get the header character.
Definition: say_message_parser.h:1002
ball & goalie info message encoder
Definition: say_message_builder.h:1076
int length() const
get the length of this message
Definition: say_message_builder.h:1126
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
char header() const
get the header character of this message
Definition: say_message_builder.h:1107
static int slength()
get the length of this message.
Definition: say_message_builder.h:1117
BallGoalieMessage(const Vector2D &ball_pos, const Vector2D &ball_vel, const Vector2D &goalie_pos, const AngleDeg &goalie_body)
construct with raw information
Definition: say_message_builder.h:1093
static char sheader()
get the header character.
Definition: say_message_parser.h:132
static int slength()
get the length of this message.
Definition: say_message_parser.h:145
ball info message encoder
Definition: say_message_builder.h:54
BallMessage(const Vector2D &ball_pos, const Vector2D &ball_vel)
construct with raw information
Definition: say_message_builder.h:67
std::ostream & printDebug(std::ostream &os) const
append the debug message
int length() const
get the length of this message
Definition: say_message_builder.h:96
char header() const
get the header character of this message
Definition: say_message_builder.h:77
bool appendTo(std::string &to) const
append this info to the audio message
static int slength()
get the length of this message.
Definition: say_message_builder.h:87
static int slength()
get the length of this message.
Definition: say_message_parser.h:1449
static char sheader()
get the header character.
Definition: say_message_parser.h:1436
ball & player info message encoder
Definition: say_message_builder.h:1615
char header() const
get the header character of this message
Definition: say_message_builder.h:1651
int length() const
get the length of this message
Definition: say_message_builder.h:1670
BallPlayerMessage(const Vector2D &ball_pos, const Vector2D &ball_vel, const int unum, const Vector2D &player_pos, const AngleDeg &player_body)
construct with raw information
Definition: say_message_builder.h:1635
static int slength()
get the length of this message.
Definition: say_message_builder.h:1661
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
static int slength()
get the length of this message.
Definition: say_message_parser.h:519
static char sheader()
get the header character.
Definition: say_message_parser.h:506
defense line info message encoder
Definition: say_message_builder.h:519
char header() const
get the header character of this message
Definition: say_message_builder.h:539
int length() const
get the length of this message
Definition: say_message_builder.h:558
DefenseLineMessage(const double &defense_line_x)
construct with raw information
Definition: say_message_builder.h:531
std::ostream & printDebug(std::ostream &os) const
append the debug message
static int slength()
get the length of this message.
Definition: say_message_builder.h:549
bool appendTo(std::string &to) const
append this info to the audio message
static char sheader()
get the header character.
Definition: say_message_parser.h:940
static int slength()
get the length of this message.
Definition: say_message_parser.h:953
dribble info message encoder
Definition: say_message_builder.h:1003
static int slength()
get the length of this message.
Definition: say_message_builder.h:1036
char header() const
get the header character of this message
Definition: say_message_builder.h:1026
std::ostream & printDebug(std::ostream &os) const
append the debug message
bool appendTo(std::string &to) const
append this info to the audio message
DribbleMessage(const Vector2D &target_point, const int queue_count)
construct with raw information
Definition: say_message_builder.h:1016
int length() const
get the length of this message
Definition: say_message_builder.h:1045
static int slength()
get the length of this message.
Definition: say_message_parser.h:394
static char sheader()
get the header character.
Definition: say_message_parser.h:381
goalie & 1 field player message encoder
Definition: say_message_builder.h:363
int length() const
get the length of this message
Definition: say_message_builder.h:418
static int slength()
get the length of this message.
Definition: say_message_builder.h:409
char header() const
get the header character of this message
Definition: say_message_builder.h:399
GoalieAndPlayerMessage(const int goalie_unum, const Vector2D &goalie_pos, const AngleDeg &goalie_body, const int player_number, const Vector2D &player_pos)
construct with raw information
Definition: say_message_builder.h:383
std::ostream & printDebug(std::ostream &os) const
append the debug message
bool appendTo(std::string &to) const
append this info to the audio message
static char sheader()
get the header character.
Definition: say_message_parser.h:318
static int slength()
get the length of this message.
Definition: say_message_parser.h:331
goalie info message encoder
Definition: say_message_builder.h:286
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
int length() const
get the length of this message
Definition: say_message_builder.h:332
GoalieMessage(const int goalie_unum, const Vector2D &goalie_pos, const AngleDeg &goalie_body)
construct with raw information
Definition: say_message_builder.h:301
char header() const
get the header character of this message
Definition: say_message_builder.h:313
static int slength()
get the length of this message.
Definition: say_message_builder.h:323
static char sheader()
get the header character.
Definition: say_message_parser.h:256
static int slength()
get the length of this message.
Definition: say_message_parser.h:269
intercept info message encoder
Definition: say_message_builder.h:209
InterceptMessage(const bool our, const int unum, const int cycle)
construct with raw information
Definition: say_message_builder.h:224
static int slength()
get the length of this message.
Definition: say_message_builder.h:246
char header() const
get the header character of this message
Definition: say_message_builder.h:236
int length() const
get the length of this message
Definition: say_message_builder.h:255
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
static char sheader()
get the header character.
Definition: say_message_parser.h:444
static int slength()
get the length of this message.
Definition: say_message_parser.h:457
offside line info message encoder
Definition: say_message_builder.h:449
static int slength()
get the length of this message.
Definition: say_message_builder.h:479
OffsideLineMessage(const double &offside_line_x)
construct with raw information
Definition: say_message_builder.h:461
int length() const
get the length of this message
Definition: say_message_builder.h:488
std::ostream & printDebug(std::ostream &os) const
append the debug message
char header() const
get the header character of this message
Definition: say_message_builder.h:469
bool appendTo(std::string &to) const
append this info to the audio message
static char sheader()
get the header character.
Definition: say_message_parser.h:1064
static int slength()
get the length of this message.
Definition: say_message_parser.h:1077
one player info message encoder
Definition: say_message_builder.h:1157
OnePlayerMessage(const int unum, const Vector2D &player_pos)
construct with raw information
Definition: say_message_builder.h:1170
char header() const
get the header character of this message
Definition: say_message_builder.h:1180
static int slength()
get the length of this message.
Definition: say_message_builder.h:1190
int length() const
get the length of this message
Definition: say_message_builder.h:1199
std::ostream & printDebug(std::ostream &os) const
append the debug message
bool appendTo(std::string &to) const
append this info to the audio message
static int slength()
get the length of this message.
Definition: say_message_parser.h:1387
static char sheader()
get the header character.
Definition: say_message_parser.h:1374
opponent info message encoder
Definition: say_message_builder.h:1538
static int slength()
get the length of this message.
Definition: say_message_builder.h:1575
OpponentMessage(const int unum, const Vector2D &player_pos, const AngleDeg &player_body)
construct with raw information
Definition: say_message_builder.h:1553
int length() const
get the length of this message
Definition: say_message_builder.h:1584
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
char header() const
get the header character of this message
Definition: say_message_builder.h:1565
static int slength()
get the length of this message.
Definition: say_message_parser.h:207
static char sheader()
get the header character.
Definition: say_message_parser.h:194
pass info message encoder
Definition: say_message_builder.h:127
int length() const
get the length of this message
Definition: say_message_builder.h:178
char header() const
get the header character of this message
Definition: say_message_builder.h:159
PassMessage(const int receiver_unum, const Vector2D &receive_point, const Vector2D &ball_pos, const Vector2D &ball_vel)
construct with raw information
Definition: say_message_builder.h:145
static int slength()
get the length of this message.
Definition: say_message_builder.h:169
std::ostream & printDebug(std::ostream &os) const
append the debug message
bool appendTo(std::string &to) const
append this info to the audio message
static int slength()
get the length of this message.
Definition: say_message_parser.h:705
static char sheader()
get the header character.
Definition: say_message_parser.h:692
pass request info message encoder
Definition: say_message_builder.h:723
bool appendTo(std::string &to) const
append this info to the audio message
PassRequestMessage(const Vector2D &target_point)
construct with raw information
Definition: say_message_builder.h:735
std::ostream & printDebug(std::ostream &os) const
append the debug message
char header() const
get the header character of this message
Definition: say_message_builder.h:743
static int slength()
get the length of this message.
Definition: say_message_builder.h:753
int length() const
get the length of this message
Definition: say_message_builder.h:762
static char sheader()
get the header character.
Definition: say_message_parser.h:816
static int slength()
get the length of this message.
Definition: say_message_parser.h:829
recovery info message encoder
Definition: say_message_builder.h:863
int length() const
get the length of this message
Definition: say_message_builder.h:902
RecoveryMessage(const double &recovery)
construct with raw information
Definition: say_message_builder.h:875
std::ostream & printDebug(std::ostream &os) const
append the debug message
char header() const
get the header character of this message
Definition: say_message_builder.h:883
static int slength()
get the length of this message.
Definition: say_message_builder.h:893
bool appendTo(std::string &to) const
append this info to the audio message
abstract player's say message
Definition: say_message.h:46
static char sheader()
get the header character.
Definition: say_message_parser.h:1250
static int slength()
get the length of this message.
Definition: say_message_parser.h:1263
self info message encoder
Definition: say_message_builder.h:1384
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
SelfMessage(const Vector2D &self_pos, const AngleDeg &self_body, const double &self_stamina)
construct with raw information
Definition: say_message_builder.h:1399
static int slength()
get the length of this message.
Definition: say_message_builder.h:1421
char header() const
get the header character of this message
Definition: say_message_builder.h:1411
int length() const
get the length of this message
Definition: say_message_builder.h:1430
static int slength()
get the length of this message.
Definition: say_message_parser.h:643
static char sheader()
get the header character.
Definition: say_message_parser.h:630
setplay message encoder
Definition: say_message_builder.h:654
char header() const
get the header character of this message
Definition: say_message_builder.h:673
std::ostream & printDebug(std::ostream &os) const
append the debug message
static int slength()
get the length of this message.
Definition: say_message_builder.h:683
SetplayMessage(const int wait_step)
construct with raw information
Definition: say_message_builder.h:665
int length() const
get the length of this message
Definition: say_message_builder.h:692
bool appendTo(std::string &to) const
append this info to the audio message
static int slength()
get the length of this message.
Definition: say_message_parser.h:891
static char sheader()
get the header character.
Definition: say_message_parser.h:878
stamina info message encoder
Definition: say_message_builder.h:933
static int slength()
get the length of this message.
Definition: say_message_builder.h:963
int length() const
get the length of this message
Definition: say_message_builder.h:972
bool appendTo(std::string &to) const
append this info to the audio message
char header() const
get the header character of this message
Definition: say_message_builder.h:953
std::ostream & printDebug(std::ostream &os) const
append the debug message
StaminaCapacityMessage(const double value)
construct with raw information
Definition: say_message_builder.h:945
static char sheader()
get the header character.
Definition: say_message_parser.h:754
static int slength()
get the length of this message.
Definition: say_message_parser.h:767
stamina info message encoder
Definition: say_message_builder.h:793
static int slength()
get the length of this message.
Definition: say_message_builder.h:823
int length() const
get the length of this message
Definition: say_message_builder.h:832
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
char header() const
get the header character of this message
Definition: say_message_builder.h:813
StaminaMessage(const double &stamina)
construct with raw information
Definition: say_message_builder.h:805
static int slength()
get the length of this message.
Definition: say_message_parser.h:1325
static char sheader()
get the header character.
Definition: say_message_parser.h:1312
teammate info message encoder
Definition: say_message_builder.h:1461
static int slength()
get the length of this message.
Definition: say_message_builder.h:1498
int length() const
get the length of this message
Definition: say_message_builder.h:1507
bool appendTo(std::string &to) const
append this info to the audio message
std::ostream & printDebug(std::ostream &os) const
append the debug message
TeammateMessage(const int unum, const Vector2D &player_pos, const AngleDeg &player_body)
construct with raw information
Definition: say_message_builder.h:1476
char header() const
get the header character of this message
Definition: say_message_builder.h:1488
static char sheader()
get the header character.
Definition: say_message_parser.h:1188
static int slength()
get the length of this message.
Definition: say_message_parser.h:1201
3 players info message encoder
Definition: say_message_builder.h:1306
std::ostream & printDebug(std::ostream &os) const
append the debug message
bool appendTo(std::string &to) const
append this info to the audio message
ThreePlayerMessage(const int player0_unum, const Vector2D &player0_pos, const int player1_unum, const Vector2D &player1_pos, const int player2_unum, const Vector2D &player2_pos)
construct with raw information
static int slength()
get the length of this message.
Definition: say_message_builder.h:1344
char header() const
get the header character of this message
Definition: say_message_builder.h:1334
int length() const
get the length of this message
Definition: say_message_builder.h:1353
static char sheader()
get the header character.
Definition: say_message_parser.h:1126
static int slength()
get the length of this message.
Definition: say_message_parser.h:1139
2 players info message encoder
Definition: say_message_builder.h:1230
int length() const
get the length of this message
Definition: say_message_builder.h:1275
std::ostream & printDebug(std::ostream &os) const
append the debug message
static int slength()
get the length of this message.
Definition: say_message_builder.h:1266
bool appendTo(std::string &to) const
append this info to the audio message
TwoPlayerMessage(const int player0_unum, const Vector2D &player0_pos, const int player1_unum, const Vector2D &player1_pos)
construct with raw information
char header() const
get the header character of this message
Definition: say_message_builder.h:1256
2D point vector class
Definition: vector_2d.h:46
static char sheader()
get the header character.
Definition: say_message_parser.h:568
static int slength()
get the length of this message.
Definition: say_message_parser.h:581
wait request message encoder
Definition: say_message_builder.h:589
char header() const
get the header character of this message
Definition: say_message_builder.h:604
int length() const
get the length of this message
Definition: say_message_builder.h:623
std::ostream & printDebug(std::ostream &os) const
append the debug message
static int slength()
get the length of this message.
Definition: say_message_builder.h:614
bool appendTo(std::string &to) const
append this info to the audio message
WaitRequestMessage()
construct with raw information
Definition: say_message_builder.h:597
abstract player's say message Header File
player's say message parser Header File
2d vector class Header File.