|
Thunderbots Project
|


Public Member Functions | |
| DefensePlayFSM (TbotsProto::AiConfig ai_config) | |
| void | defendAgainstThreats (const Update &event) |
| auto | operator() () |
Public Member Functions inherited from DefensePlayFSMBase | |
| DEFINE_PLAY_UPDATE_STRUCT_WITH_CONTROL_AND_COMMON_PARAMS | DefensePlayFSMBase (TbotsProto::AiConfig ai_config) |
Additional Inherited Members | |
Protected Member Functions inherited from DefensePlayFSMBase | |
| void | setUpCreaseDefenders (int num_crease_defenders) |
| void | setUpPassDefenders (int num_pass_defenders) |
| void | setAlignment (const Update &event, const std::vector< DefenderAssignment > &crease_defender_assignments, TbotsProto::BallStealMode ball_steal_mode) |
| void | updatePassDefenderControlParams (std::vector< DefenderAssignment > &pass_defender_assignments, TbotsProto::BallStealMode ball_steal_mode) |
Protected Attributes inherited from DefensePlayFSMBase | |
| TbotsProto::AiConfig | ai_config |
| std::vector< std::shared_ptr< CreaseDefenderTactic > > | crease_defenders |
| std::vector< std::shared_ptr< PassDefenderTactic > > | pass_defenders |
|
explicit |
Creates a defense play FSM
| ai_config | the play config for this play FSM |
| void defendAgainstThreats | ( | const Update & | event | ) |
Action to identify all immediate enemy threats and assign defenders to block enemy shots and passes
| event | the FSM event |