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

Classes

struct  Update
 

Public Member Functions

 PlaySelectionFSM (TbotsProto::AiConfig ai_config)
 
bool gameStateStopped (const Update &event)
 
bool gameStateHalted (const Update &event)
 
bool gameStatePlaying (const Update &event)
 
bool gameStateSetupRestart (const Update &event)
 
void setupSetPlay (const Update &event)
 
void setupStopPlay (const Update &event)
 
void setupHaltPlay (const Update &event)
 
void setupOffensePlay (const Update &event)
 
void resetSetPlay (const Update &event)
 
auto operator() ()
 

Constructor & Destructor Documentation

◆ PlaySelectionFSM()

PlaySelectionFSM ( TbotsProto::AiConfig  ai_config)
explicit

Creates a play selection FSM

Parameters
ai_configthe default play config for this play fsm

Member Function Documentation

◆ gameStateStopped()

bool gameStateStopped ( const Update event)

Guards for whether the game state is stopped, halted, playing, or in set up

Parameters
eventThe PlaySelection::Update event
Returns
whether the gamestate is stopped, halted, playing, or in set up

◆ resetSetPlay()

void resetSetPlay ( const Update event)

Action to reset the current SetPlay to none

Parameters
eventThe PlaySelection::Update event

◆ setupSetPlay()

void setupSetPlay ( const Update event)

Action to set up the OverridePlay, SetPlay, StopPlay, HaltPlay, or OffensePlay

Parameters
eventThe PlaySelection::Update event

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