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 11:05:49 +08:00
|
|
|
void showLastPressed(char ch);
|
|
|
|
|
2020-06-24 09:51:30 +08:00
|
|
|
void showCurPos();
|
|
|
|
|
|
|
|
bool endgame();
|
|
|
|
|
|
|
|
#endif
|
2020-06-24 11:05:49 +08:00
|
|
|
|