summaryrefslogtreecommitdiffstats
path: root/src/game.h
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-21 17:50:37 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-21 17:50:37 (EDT)
commitd97f66ef26c89c8bd805cdeafffa959c91ec278b (patch)
tree96bf1eabfaece5ad310210dd40ea7f08543a15e0 /src/game.h
parenta9c64a158c369bc370c14dd87567fc030fa050e0 (diff)
downloadcursespong-d97f66ef26c89c8bd805cdeafffa959c91ec278b.zip
cursespong-d97f66ef26c89c8bd805cdeafffa959c91ec278b.tar.gz
cursespong-d97f66ef26c89c8bd805cdeafffa959c91ec278b.tar.bz2
Add (stationary and invisible) balls to the board.
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game.h b/src/game.h
index 9a0f096..25d509b 100644
--- a/src/game.h
+++ b/src/game.h
@@ -2,13 +2,17 @@
#define GAME_H
#include "player.h"
+#include "ball.h"
struct game {
struct player *players[2];
char running;
+ char min_balls;
+ char cur_balls;
+ struct ball *balls_head;
};
-struct game *new_game(void);
+struct game *new_game(char balls);
void free_game(struct game *g);
void run_game(struct game *g);