Files

24 lines
487 B
C
Raw Permalink Normal View History

/**
* Copyright (c) 2014, Miguel Angel Astor Romero. All rights reserved.
* See the file LICENSE for more details.
*/
#ifndef GAME_STATE_H
#define GAME_STATE_H
static const int NUM_STATES = 4;
typedef enum GAME_STATE_NAMES { INTRO = 0, MENU = 1, IN_GAME = 2, GAME_OVER = 3 } gsname_t;
typedef struct GAME_STATE {
2014-03-03 21:54:15 -04:30
gsname_t name;
void (*input)();
gsname_t (*update)();
void (*render)(int, int);
} gs_t;
extern void initStateArray(gs_t **);
2014-03-08 21:19:02 -04:30
void clear_screen(int, int);
#endif