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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views1 page
Gamesm
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;