adventskalender-2009/src/states.c
Aaron Mueller 01147c0d35 Adding game states and menu
* Implement a simple state machine to simulate different game stats
 * Create a generic menu to display different menus
 * Update the Makefile for TTF support
 * Draw a simple diagram to show the stats
2009-12-16 15:37:24 +01:00

18 lines
518 B
C

#include "states.h"
struct gameState stateTable[] = {
{*displayMainmenu, *eventsMainmenu}, /* STATE_MAINMENU */
{*displayNumplayers, *eventsNumplayers}, /* STATE_NUMPLAYERS */
{*displayCredits, *eventsCredits}, /* STATE_CREDITS */
{*displayRunninggame, *eventsRunninggame}, /* STATE_RUNNINGGAME */
{*displayRlyquit, *eventsRlyquit}, /* STATE_RLYQUIT */
{*exitGame, *exitGame} /* STATE_EXIT */
};
void exitGame() {
currentState = STATE_EXIT;
}