2020-06-24 09:51:30 +08:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
void initGame();
|
|
|
|
|
|
|
|
bool isRunning();
|
|
|
|
|
2020-06-24 11:05:49 +08:00
|
|
|
void updateGame();
|
|
|
|
|
|
|
|
void drawGame();
|
|
|
|
|
2020-06-24 09:51:30 +08:00
|
|
|
void handleInput(char ch);
|
|
|
|
|
2020-06-24 11:05:49 +08:00
|
|
|
// Overlays
|
2020-06-24 09:51:30 +08:00
|
|
|
// Draws cursor and cursor position
|
2020-06-24 21:27:24 +08:00
|
|
|
void drawLastPressed(char ch);
|
2020-06-24 11:05:49 +08:00
|
|
|
|
2020-06-24 21:27:24 +08:00
|
|
|
void drawCurPos();
|
2020-06-24 09:51:30 +08:00
|
|
|
|
2020-07-04 07:26:34 +08:00
|
|
|
void saveGame(char* name);
|
|
|
|
|
|
|
|
void loadGame(char* name);
|
|
|
|
|
2020-06-27 08:18:06 +08:00
|
|
|
void endGame();
|
2020-06-24 09:51:30 +08:00
|
|
|
|
|
|
|
#endif
|
2020-06-24 11:05:49 +08:00
|
|
|
|