главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/clicker-ncurses.c
diff options
context:
space:
mode:
Diffstat (limited to 'clicker-ncurses.c')
-rw-r--r--clicker-ncurses.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/clicker-ncurses.c b/clicker-ncurses.c
index fbcc076..37dc0b9 100644
--- a/clicker-ncurses.c
+++ b/clicker-ncurses.c
@@ -1,20 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ncurses.h>
-struct game
-{
- int click;
- int multiplifier;
- int score;
-};
+#include <ncurses.h>
-int get_score (struct game *game);
-void *set_score (struct game *game, int score);
-int get_click (struct game *game);
-void *set_click (struct game *game, int click);
-int get_multiplifier (struct game *game);
+#include "clicker-ncurses.h"
int
main (void)
@@ -85,7 +75,7 @@ get_score (struct game *game)
return game->score;
}
-void *
+void
set_score (struct game *game, int score)
{
game->score = score;
@@ -98,7 +88,7 @@ get_click (struct game *game)
return game->click;
}
-void *
+void
set_click (struct game *game, int click)
{
game->click = click;