/****************************************************************************
 
  Header file for LolaGameMaster hierarchical state machine
  based on the Gen 2 Events and Services Framework

 ****************************************************************************/

#ifndef LolaGameMaster_H
#define LolaGameMaster_H

// State definitions for use with the query function
typedef enum { WaitingForStart, Playing } LolaGameMasterState_t ;

// Public Function Prototypes

ES_Event_t RunLolaGameMasterSM( ES_Event_t CurrentEvent );
void StartLolaGameMasterSM ( ES_Event_t CurrentEvent );
bool PostLolaGameMasterSM( ES_Event_t ThisEvent );
bool InitLolaGameMasterSM ( uint8_t Priority );

LolaGameMasterState_t QueryLolaGameMaster(void);

#endif /*LolaGameMaster_H */