ncurses-gameoflife/game.h

30 lines
337 B
C
Raw Normal View History

#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();
void handleInput(char ch);
2020-06-24 11:05:49 +08:00
// Overlays
// Draws cursor and cursor position
void drawLastPressed(char ch);
2020-06-24 11:05:49 +08:00
void drawCurPos();
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();
#endif
2020-06-24 11:05:49 +08:00