#ifndef GAME_H #define GAME_H #include #ifdef __cplusplus extern "C" { #endif enum { GAME_MAX_PLAYERS = 4, GAME_PLAYER_NAME_LEN = 16 }; struct game_cfg { struct game_cfg_player { enum game_cfg_player_type { GAME_CFG_PLAYER_TYPE_HUMAN, GAME_CFG_PLAYER_TYPE_BOT, GAME_CFG_PLAYER_TYPE_NET } type; char name[GAME_PLAYER_NAME_LEN]; } *players; size_t n; union peripheral *p; const char *map; }; int game_resinit(void); int game(const struct game_cfg *cfg); void game_free(void); #ifdef __cplusplus } #endif #endif /* GAME_H */