|
| | AttackerFSM (const TbotsProto::AiConfig &ai_config) |
| |
| DEFINE_TACTIC_UPDATE_STRUCT_WITH_CONTROL_AND_COMMON_PARAMS void | pivotKick (const Update &event, boost::sml::back::process< PivotKickFSM::Update > processEvent) |
| |
| void | keepAway (const Update &event, boost::sml::back::process< DribbleFSM::Update > processEvent) |
| |
| bool | shouldKick (const Update &event) |
| |
|
auto | operator() () |
| |
◆ AttackerFSM()
Constructor for AttackerFSM
- Parameters
-
| attacker_tactic_config | The config to fetch parameters from |
◆ keepAway()
| void keepAway |
( |
const Update & |
event, |
|
|
boost::sml::back::process< DribbleFSM::Update > |
processEvent |
|
) |
| |
Action that updates the DribbleFSM to keep the ball away
- Parameters
-
| event | AttackerFSM::Update event |
| processEvent | processes the DribbleFSM::Update |
◆ pivotKick()
| void pivotKick |
( |
const Update & |
event, |
|
|
boost::sml::back::process< PivotKickFSM::Update > |
processEvent |
|
) |
| |
Action that updates the PivotKickFSM to shoot or pass
- Parameters
-
| event | AttackerFSM::Update event |
| processEvent | processes the PivotKickFSM::Update |
◆ shouldKick()
| bool shouldKick |
( |
const Update & |
event | ) |
|
Guard that checks if the ball should be kicked, which is when there's a nearby enemy or a good pass/shot
- Parameters
-
| event | AttackerFSM::Update event |
- Returns
- if the ball should be kicked
The documentation for this struct was generated from the following files:
- src/software/ai/hl/stp/tactic/attacker/attacker_fsm.h
- src/software/ai/hl/stp/tactic/attacker/attacker_fsm.cpp