Skip to content

Commit 6b9b95e

Browse files
added bhv_goalieFreeKick
1 parent c1471c5 commit 6b9b95e

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

ChangeLog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# ChangeLog
22

3+
## [1.0.9] - 2024-1۱-9
4+
5+
### Added
6+
- bhv_goalieFreeKick added
7+
8+
### Fixed
9+
-
10+
11+
### Changed
12+
-
13+
14+
### Engineers
15+
- [SoroushMazloum](https://github.com/SoroushMazloum)
16+
317
## [1.0.8] - 2024-10-24
418

519
### Added

idl/grpc/service.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// version 1.8
1+
// version 1.9
22

33
syntax = "proto3";
44

@@ -825,6 +825,8 @@ message bhv_doForceKick {}
825825

826826
message bhv_doHeardPassRecieve {}
827827

828+
message bhv_goalieFreeKick {}
829+
828830
message PlayerAction {
829831
oneof action {
830832
Dash dash = 1;
@@ -893,7 +895,7 @@ message PlayerAction {
893895
HeliosCommunicaion helios_communication = 64;
894896
bhv_doForceKick bhv_do_force_kick = 65;
895897
bhv_doHeardPassRecieve bhv_do_heard_pass_recieve = 66;
896-
898+
bhv_goalieFreeKick bhv_goalie_free_kick = 67;
897899
}
898900
}
899901

idl/thrift/soccer_service.thrift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// version 1.8
1+
// version 1.9
22

33
namespace cpp soccer
44
namespace py soccer
@@ -791,6 +791,8 @@ struct bhv_doForceKick {}
791791

792792
struct bhv_doHeardPassRecieve {}
793793

794+
struct bhv_goalieFreeKick {}
795+
794796
struct PlayerAction {
795797
1: optional Dash dash,
796798
2: optional Turn turn,
@@ -857,7 +859,8 @@ struct PlayerAction {
857859
63: optional HeliosPenalty helios_penalty,
858860
64: optional HeliosCommunicaion helios_communication,
859861
65: optional bhv_doForceKick bhv_do_force_kick,
860-
66: optional bhv_doHeardPassRecieve bhv_do_heard_pass_recieve
862+
66: optional bhv_doHeardPassRecieve bhv_do_heard_pass_recieve,
863+
67: optional bhv_goalieFreeKick bhv_goalie_free_kick
861864
}
862865

863866
struct PlayerActions {

src/thrift-client/thrift_client_player.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
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 <rcsc/player/say_message_builder.h>
6263
#include <rcsc/common/player_param.h>
6364

@@ -610,6 +611,11 @@ void ThriftClientPlayer::getActions()
610611
agent->debugClient().addMessage("doHeardPassReceive - false");
611612
}
612613
}
614+
else if(action.__isset.bhv_goalie_free_kick)
615+
{
616+
Bhv_GoalieFreeKick().execute(agent);
617+
agent->debugClient().addMessage("bhvGoalieFreeKick");
618+
}
613619
else if (action.__isset.helios_offensive_planner)
614620
{
615621
FieldEvaluator::ConstPtr field_evaluator = FieldEvaluator::ConstPtr(new SampleFieldEvaluator);

0 commit comments

Comments
 (0)