26 lines
719 B
C
26 lines
719 B
C
#ifndef _CORE_H
|
|
#define _CORE_H
|
|
|
|
#include "calccity.h"
|
|
#include "display.h"
|
|
#include "menus.h"
|
|
|
|
// callback_tick : time function
|
|
int callback_tick(volatile int *tick);
|
|
|
|
// default_values : initialize the game
|
|
void default_values(struct calccity *current_game, struct camera *camera, struct map *map);
|
|
|
|
// rtc_key : get a key with RTC system
|
|
int rtc_key(void);
|
|
|
|
// next_step : compute in-game time
|
|
void next_step(struct calccity *calccity);
|
|
|
|
// main_loop : game main loop
|
|
void main_loop(struct calccity *calccity, struct camera *camera, struct map *map);
|
|
|
|
// keyboard_managment : get the key and manage input
|
|
void keyboard_managment(struct calccity *calccity, struct camera *camera, const int key);
|
|
|
|
#endif /* _CORE_H */ |