SDLGameEngine

include/sgegamestate.h File Reference

Game states and event handlers. More...

Go to the source code of this file.

Data Structures

struct  SGEGAMESTATEMANAGER
struct  SGEGAMESTATE

Functions

SGEGAMESTATEMANAGERsgeGameStateManagerNew (void)
 Create a new state manager.
int sgeGameStateManagerChange (SGEGAMESTATEMANAGER *manager, SGEGAMESTATE *next_state)
 Change to a new state.
void sgeGameStateManagerRun (SGEGAMESTATEMANAGER *manager, int fps)
 Run the game with the current states, redrawing at certain frames per second.
void sgeGameStateManagerQuit (SGEGAMESTATEMANAGER *manager)
 Quit the game state manager.
SGEGAMESTATEsgeGameStateNew (void)
 Create new game state.

Detailed Description

Game states and event handlers.

Definition in file sgegamestate.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines