Thunderbots Project
Loading...
Searching...
No Matches
AttackerFSM Struct Reference

Classes

struct  ControlParams
 

Public Member Functions

 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() ()
 

Constructor & Destructor Documentation

◆ AttackerFSM()

AttackerFSM ( const TbotsProto::AiConfig &  ai_config)
inlineexplicit

Constructor for AttackerFSM

Parameters
attacker_tactic_configThe config to fetch parameters from

Member Function Documentation

◆ keepAway()

void keepAway ( const Update &  event,
boost::sml::back::process< DribbleFSM::Update >  processEvent 
)

Action that updates the DribbleFSM to keep the ball away

Parameters
eventAttackerFSM::Update event
processEventprocesses 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
eventAttackerFSM::Update event
processEventprocesses 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
eventAttackerFSM::Update event
Returns
if the ball should be kicked

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