/****************************************************************************
 Template header file for Hierarchical Sate Machines AKA StateCharts

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

#ifndef MasterSM_H
#define MasterSM_H

#include "ES_Configure.h"
#include "ES_Framework.h"

//typedefs for the states
typedef enum { WAITING_TO_START, CONSTRUCTING } MasterState_t;

// Public Function Prototypes

bool InitMasterSM ( uint8_t Priority );
bool PostMasterSM( ES_Event ThisEvent );
ES_Event RunMasterSM( ES_Event ThisEvent );
void StartMasterSM ( ES_Event CurrentEvent );
uint8_t GetMyTeam (void);
uint8_t GetNumCOWs (void); 
void AddCOW (void);
void SubtractCOW (void);
uint8_t GetCurrentArea(void);
void AddArea(void);
void SubtractArea(void);
void SetArea(uint8_t Area);

#endif /*MasterSM_H */