diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-21 18:30:27 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-21 18:30:27 (EDT) |
commit | 4dd1fb7d25a74f92b362d77bfc50e9132f2a1952 (patch) | |
tree | dc3433ebb413c6c27e545577f26f813dbcad727d | |
parent | f40768e82a9f396526c30c0bda10388f4746fbea (diff) | |
download | cursespong-4dd1fb7d25a74f92b362d77bfc50e9132f2a1952.zip cursespong-4dd1fb7d25a74f92b362d77bfc50e9132f2a1952.tar.gz cursespong-4dd1fb7d25a74f92b362d77bfc50e9132f2a1952.tar.bz2 |
src/game.c: Rename static functions.
-rw-r--r-- | src/game.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -6,11 +6,11 @@ #include "player.h" #include "paddle.h" -static void wait(struct game *g); -static void input(struct game *g); +static void wait_game(struct game *g); +static void input_game(struct game *g); static void clear_game(struct game *g); -static void update(struct game *g); -static void draw(struct game *g); +static void update_game(struct game *g); +static void draw_game(struct game *g); struct game * new_game(char balls) @@ -45,23 +45,23 @@ run_game(struct game *g) g->running = 1; while (g->running) { - input(g); + input_game(g); clear_game(g); - update(g); - draw(g); - wait(g); + update_game(g); + draw_game(g); + wait_game(g); } } static void -wait(struct game *g) +wait_game(struct game *g) { ++g; usleep(10000); } static void -input(struct game *g) +input_game(struct game *g) { int c; @@ -108,7 +108,7 @@ clear_game(struct game *g) } static void -update(struct game *g) +update_game(struct game *g) { struct ball *b; @@ -130,7 +130,7 @@ update(struct game *g) } static void -draw(struct game *g) +draw_game(struct game *g) { struct ball *b; |