This header file defines constants and data types used for a game state machine. It includes an events header file and defines enumerated state types for the game. It also prototypes public functions for initializing, posting events to, and running the state machine as well as functions for activating a pipe LED and writing to a pipe register.
This header file defines constants and data types used for a game state machine. It includes an events header file and defines enumerated state types for the game. It also prototypes public functions for initializing, posting events to, and running the state machine as well as functions for activating a pipe LED and writing to a pipe register.
This header file defines constants and data types used for a game state machine. It includes an events header file and defines enumerated state types for the game. It also prototypes public functions for initializing, posting events to, and running the state machine as well as functions for activating a pipe LED and writing to a pipe register.
This header file defines constants and data types used for a game state machine. It includes an events header file and defines enumerated state types for the game. It also prototypes public functions for initializing, posting events to, and running the state machine as well as functions for activating a pipe LED and writing to a pipe register.
#include "ES_Events.h" //to give definition on the states
#define PIPE_TIMER 1 #define WATER_FLOW_TIMER 4
// typedefs for the states
// State definitions for use with the query function typedef enum { PseudoState_Game, Uninitialized_Game, SelectingPipe, WaterFlowing, IRRead, WaitForReset }GameSM_States_t;