X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/aa27d4932844e6aa590afba411b1503217f1602d..17bebcac7bf49c2927fb3bc0d63a6fdc268eb0d7:/netslide.c diff --git a/netslide.c b/netslide.c index a97ee07..5697b2f 100644 --- a/netslide.c +++ b/netslide.c @@ -13,8 +13,6 @@ #include "puzzles.h" #include "tree234.h" -#define PI 3.141592653589793238462643383279502884197169399 - #define MATMUL(xr,yr,m,x,y) do { \ float rx, ry, xx = (x), yy = (y), *mat = (m); \ rx = mat[0] * xx + mat[2] * yy; \ @@ -334,7 +332,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) { tree234 *possibilities, *barriertree; int w, h, x, y, cx, cy, nbarriers; @@ -738,7 +736,7 @@ static char *validate_desc(game_params *params, char *desc) * Construct an initial game state, given a description and parameters. */ -static game_state *new_game(game_params *params, char *desc) +static game_state *new_game(midend_data *me, game_params *params, char *desc) { game_state *state; int w, h, x, y; @@ -1051,7 +1049,7 @@ static void slide_col(game_state *state, int dir, int col) } static game_state *make_move(game_state *state, game_ui *ui, - int x, int y, int button) + game_drawstate *ds, int x, int y, int button) { int cx, cy; int n, dx, dy; @@ -1683,7 +1681,7 @@ static void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, } static float game_anim_length(game_state *oldstate, - game_state *newstate, int dir) + game_state *newstate, int dir, game_ui *ui) { /* * Don't animate an auto-solve move. @@ -1696,7 +1694,7 @@ static float game_anim_length(game_state *oldstate, } static float game_flash_length(game_state *oldstate, - game_state *newstate, int dir) + game_state *newstate, int dir, game_ui *ui) { /* * If the game has just been completed, we display a completion @@ -1725,6 +1723,11 @@ static int game_wants_statusbar(void) return TRUE; } +static int game_timing_state(game_state *state) +{ + return FALSE; +} + #ifdef COMBINED #define thegame netslide #endif @@ -1758,4 +1761,6 @@ const struct game thegame = { game_anim_length, game_flash_length, game_wants_statusbar, + FALSE, game_timing_state, + 0, /* mouse_priorities */ };