Thunderbots Project
Loading...
Searching...
No Matches
DefensePlayFSM Struct Reference
Inheritance diagram for DefensePlayFSM:
Collaboration diagram for DefensePlayFSM:

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
 

Constructor & Destructor Documentation

◆ DefensePlayFSM()

DefensePlayFSM ( TbotsProto::AiConfig  ai_config)
explicit

Creates a defense play FSM

Parameters
ai_configthe play config for this play FSM

Member Function Documentation

◆ defendAgainstThreats()

void defendAgainstThreats ( const Update &  event)

Action to identify all immediate enemy threats and assign defenders to block enemy shots and passes

Parameters
eventthe FSM event

The documentation for this struct was generated from the following files: