|
58 | 58 | #include "planner/action_chain_holder.h" |
59 | 59 | #include "planner/bhv_planned_action.h" |
60 | 60 | #include "player/strategy.h" |
| 61 | +#include "player/bhv_basic_tackle.h" |
| 62 | +#include "player/neck_offensive_intercept_neck.h" |
61 | 63 | #include <rcsc/player/say_message_builder.h> |
62 | 64 | #include <rcsc/common/player_param.h> |
63 | 65 |
|
@@ -1022,6 +1024,16 @@ void GrpcClientPlayer::getActions() |
1022 | 1024 | rcsc::dlog.addText( rcsc::Logger::TEAM, __FILE__": Neck_TurnToRelative failed" ); |
1023 | 1025 | } |
1024 | 1026 | } |
| 1027 | + else if (action.action_case() == PlayerAction::kNeckOffensiveInterceptNeck) { |
| 1028 | + if (Neck_OffensiveInterceptNeck().execute(agent)) |
| 1029 | + { |
| 1030 | + rcsc::dlog.addText( rcsc::Logger::TEAM, __FILE__": Neck_OffensiveInterceptNeck performed" ); |
| 1031 | + } |
| 1032 | + else |
| 1033 | + { |
| 1034 | + rcsc::dlog.addText( rcsc::Logger::TEAM, __FILE__": Neck_OffensiveInterceptNeck failed" ); |
| 1035 | + } |
| 1036 | + } |
1025 | 1037 | else if (action.action_case() == PlayerAction::kViewChangeWidth) { |
1026 | 1038 | const auto &viewChangeWidth = action.view_change_width(); |
1027 | 1039 | const rcsc::ViewWidth view_width = GrpcClient::convertViewWidth(viewChangeWidth.view_width()); |
@@ -1167,6 +1179,19 @@ void GrpcClientPlayer::getActions() |
1167 | 1179 | __FILE__": sample_communication failed" ); |
1168 | 1180 | } |
1169 | 1181 | } |
| 1182 | + else if (action.action_case() == PlayerAction::kHeliosBasicTackle && !action_performed) { |
| 1183 | + const auto &helios_basic_tackle = action.helios_basic_tackle(); |
| 1184 | + if (Bhv_BasicTackle( helios_basic_tackle.min_prob(), helios_basic_tackle.body_thr() ).execute(agent)) { |
| 1185 | + action_performed = true; |
| 1186 | + rcsc::dlog.addText( rcsc::Logger::TEAM, |
| 1187 | + __FILE__": Bhv_BasicTackle performed" ); |
| 1188 | + } |
| 1189 | + else |
| 1190 | + { |
| 1191 | + rcsc::dlog.addText( rcsc::Logger::TEAM, |
| 1192 | + __FILE__": Bhv_BasicTackle failed" ); |
| 1193 | + } |
| 1194 | + } |
1170 | 1195 | else if (action.action_case() == PlayerAction::kBhvDoForceKick && !action_performed) |
1171 | 1196 | { |
1172 | 1197 | if(doForceKick(agent)) |
|
0 commit comments