Alpha Engine: AEGameStateMgr.h Source File

AlphaEngine

AEGameStateMgr.h
Go to the documentation of this file.
1 /******************************************************************************/
15 /******************************************************************************/
16 
17 #ifndef AE_GAME_STATE_MGR_H
18 #define AE_GAME_STATE_MGR_H
19 
20 // ---------------------------------------------------------------------------
21 // defines and enums
22 
23 #define AE_GS_RESTART 0xFFFFFFFE
24 #define AE_GS_QUIT 0xFFFFFFFF
25 
26 // ---------------------------------------------------------------------------
27 // externs
28 
33 
34 // ---------------------------------------------------------------------------
35 
36 extern AE_API void (*AEGameStateLoad)(void);
37 extern AE_API void (*AEGameStateInit)(void);
38 extern AE_API void (*AEGameStateUpdate)(void);
39 extern AE_API void (*AEGameStateDraw)(void);
40 extern AE_API void (*AEGameStateFree)(void);
41 extern AE_API void (*AEGameStateUnload)(void);
42 
43 // ---------------------------------------------------------------------------
44 // Function prototypes
45 // ---------------------------------------------------------------------------
46 
47 #ifdef __cplusplus
48 
49 extern "C"
50 {
51 #endif
52 // ---------------------------------------------------------------------------
53 
54 /******************************************************************************/
93 /******************************************************************************/
94 AE_API void AEGameStateMgrAdd(u32 gameStateIdx,
95  void (*pLoad)(),
96  void (*pInit)(),
97  void (*pUpdate)(),
98  void (*pDraw)(),
99  void (*pFree)(),
100  void (*pUnload)());
101 
102 /******************************************************************************/
120 /******************************************************************************/
121 AE_API void AEGameStateMgrInit(u32 gameStateInit);
122 
123 /******************************************************************************/
135 /******************************************************************************/
137 
138 // ---------------------------------------------------------------------------
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 // ---------------------------------------------------------------------------
145 
146 #endif // AE_GAME_STATE_MGR_H
u32 gAEGameStateInit
Initial GameState.
void(* AEGameStateFree)(void)
Function pointer for free.
u32 gAEGameStateNext
Next GameState.
unsigned int u32
Definition: AETypes.h:28
void AEGameStateMgrUpdate()
Update the GameStateManager.
u32 gAEGameStatePrev
Previous GameState.
void(* AEGameStateLoad)(void)
Function pointer for load.
void AEGameStateMgrInit(u32 gameStateInit)
Initialize the GameStateManager.
void(* AEGameStateDraw)(void)
Function pointer for draw.
void(* AEGameStateUpdate)(void)
Function pointer for update.
#define AE_API
Definition: AEExport.h:53
void AEGameStateMgrAdd(u32 gameStateIdx, void(*pLoad)(), void(*pInit)(), void(*pUpdate)(), void(*pDraw)(), void(*pFree)(), void(*pUnload)())
Create a new GameState and add it to GameStateManager.
u32 gAEGameStateCurr
Current GameState.
void(* AEGameStateInit)(void)
Function pointer for init.
void(* AEGameStateUnload)(void)
Function pointer for unload.
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by   doxygen 1.8.5