File tree Expand file tree Collapse file tree 5 files changed +29
-3
lines changed
Expand file tree Collapse file tree 5 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 55### Added
66- ServerParams.pitch_margin
77- Player.inertia_final_point, PenaltyKickState.cycle, self.get_safety_dash_power.
8+ - bhv_goalieFreeKick added
89
910### Fixed
1011-
Original file line number Diff line number Diff line change 1- // version 1.8
1+ // version 1.9
22
33syntax = "proto3" ;
44
@@ -1299,6 +1299,8 @@ message bhv_doForceKick {}
12991299
13001300message bhv_doHeardPassRecieve {}
13011301
1302+ message bhv_goalieFreeKick {}
1303+
13021304message PlayerAction {
13031305 oneof action {
13041306 Dash dash = 1 ;
@@ -1369,6 +1371,7 @@ message PlayerAction {
13691371 bhv_doHeardPassRecieve bhv_do_heard_pass_recieve = 66 ;
13701372 HeliosBasicTackle helios_basic_tackle = 67 ;
13711373 Neck_OffensiveInterceptNeck neck_offensive_intercept_neck = 68 ;
1374+ bhv_goalieFreeKick bhv_goalie_free_kick = 69 ;
13721375 }
13731376}
13741377
Original file line number Diff line number Diff line change 1- // version 1.8
1+ // version 1.9
22
33namespace cpp soccer
44namespace py soccer
@@ -853,6 +853,8 @@ struct bhv_doForceKick {}
853853
854854struct bhv_doHeardPassRecieve {}
855855
856+ struct bhv_goalieFreeKick {}
857+
856858struct PlayerAction {
857859 1: optional Dash dash ,
858860 2: optional Turn turn ,
@@ -922,6 +924,7 @@ struct PlayerAction {
922924 66: optional bhv_doHeardPassRecieve bhv_do_heard_pass_recieve ,
923925 67: optional HeliosBasicTackle helios_basic_tackle ,
924926 68: optional Neck_OffensiveInterceptNeck neck_offensive_intercept_neck
927+ 69: optional bhv_goalieFreeKick bhv_goalie_free_kick
925928}
926929
927930struct PlayerActions {
Original file line number Diff line number Diff line change 5757#include " planner/actgen_action_chain_length_filter.h"
5858#include " planner/action_chain_holder.h"
5959#include " planner/bhv_planned_action.h"
60+ #include " player/bhv_goalie_free_kick.h"
6061#include " player/strategy.h"
6162#include " player/bhv_basic_tackle.h"
6263#include " player/neck_offensive_intercept_neck.h"
@@ -898,6 +899,10 @@ void GrpcClientPlayer::getActions()
898899 rcsc::dlog.addText ( rcsc::Logger::TEAM, __FILE__" : Neck_ScanPlayers failed" );
899900 }
900901 }
902+ else if (action.action_case () == PlayerAction::kBhvGoalieFreeKick ) {
903+ Bhv_GoalieFreeKick ().execute (agent);
904+ agent->debugClient ().addMessage (" Bhv_GoalieFreeKick" );
905+ }
901906 else if (action.action_case () == PlayerAction::kNeckTurnToBallAndPlayer ) {
902907 const auto &neckTurnToBallAndPlayer = action.neck_turn_to_ball_and_player ();
903908 const rcsc::AbstractPlayerObject *player = nullptr ;
Original file line number Diff line number Diff line change 5858#include " planner/action_chain_holder.h"
5959#include " planner/bhv_planned_action.h"
6060#include " player/strategy.h"
61+ #include " player/bhv_goalie_free_kick.h"
6162#include " player/bhv_basic_tackle.h"
6263#include " player/neck_offensive_intercept_neck.h"
6364#include < rcsc/player/say_message_builder.h>
@@ -1227,9 +1228,22 @@ void ThriftClientPlayer::getActions()
12271228 __FILE__" : doHeardPassReceive performed" );
12281229 }
12291230 else
1231+ {
1232+ agent->debugClient ().addMessage (" doHeardPassReceive failed" );
1233+ }
1234+ }
1235+ else if (action.__isset .bhv_goalie_free_kick && !action_performed)
1236+ {
1237+ if (Bhv_GoalieFreeKick ().execute (agent))
1238+ {
1239+ action_performed = true ;
1240+ rcsc::dlog.addText ( rcsc::Logger::TEAM,
1241+ __FILE__" : Bhv_GoalieFreeKick performed" );
1242+ }
1243+ else
12301244 {
12311245 rcsc::dlog.addText ( rcsc::Logger::TEAM,
1232- __FILE__" : doHeardPassReceive failed" );
1246+ __FILE__" : Bhv_GoalieFreeKick failed" );
12331247 }
12341248 }
12351249 else if (action.__isset .helios_offensive_planner && !action_performed)
You can’t perform that action at this time.
0 commit comments