X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/48dcdd627698354063fa1b551cfa1917dea1b25e..7b72c68e954905d8127b3eb964e798a259db5e15:/nullgame.c diff --git a/nullgame.c b/nullgame.c index abb6cc5..92bdf32 100644 --- a/nullgame.c +++ b/nullgame.c @@ -84,7 +84,7 @@ static char *validate_params(game_params *params) } static char *new_game_desc(game_params *params, random_state *rs, - game_aux_info **aux) + game_aux_info **aux, int interactive) { return dupstr("FIXME"); } @@ -142,8 +142,17 @@ static void free_ui(game_ui *ui) { } -static game_state *make_move(game_state *from, game_ui *ui, int x, int y, - int button) +static void game_changed_state(game_ui *ui, game_state *oldstate, + game_state *newstate) +{ +} + +struct game_drawstate { + int FIXME; +}; + +static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds, + int x, int y, int button) { return NULL; } @@ -152,11 +161,8 @@ static game_state *make_move(game_state *from, game_ui *ui, int x, int y, * Drawing routines. */ -struct game_drawstate { - int FIXME; -}; - -static void game_size(game_params *params, int *x, int *y) +static void game_size(game_params *params, game_drawstate *ds, + int *x, int *y, int expand) { *x = *y = 200; /* FIXME */ } @@ -244,6 +250,7 @@ const struct game thegame = { FALSE, game_text_format, new_ui, free_ui, + game_changed_state, make_move, game_size, game_colours, @@ -254,4 +261,5 @@ const struct game thegame = { game_flash_length, game_wants_statusbar, FALSE, game_timing_state, + 0, /* mouse_priorities */ };