This document contains function prototypes and typedefs for a control state machine (ControlSM) used in a game. It includes function prototypes for initializing and running the state machine, getting the current state, and checking for specific events. It also defines an enumerated type for the different states of the state machine, including welcoming, setup, reading difficulty, and in-game states.
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)
39 views1 page
Controlsm
This document contains function prototypes and typedefs for a control state machine (ControlSM) used in a game. It includes function prototypes for initializing and running the state machine, getting the current state, and checking for specific events. It also defines an enumerated type for the different states of the state machine, including welcoming, setup, reading difficulty, and in-game states.
#include "ES_Events.h" //to give definition on the states
#define INACTIVE_TIMER 0
// typedefs for the states
// State definitions for use with the query function typedef enum { PseudoState_Control, Welcoming, Setup, ReadingDifficulty, Resetting, InGame, Ending, MovingMarioBack }ControlSM_States_t;