aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blackbox.c29
-rw-r--r--bridges.c7
-rw-r--r--cube.c37
-rw-r--r--dominosa.c7
-rw-r--r--fifteen.c17
-rw-r--r--filling.c7
-rw-r--r--flip.c17
-rw-r--r--flood.c17
-rw-r--r--galaxies.c7
-rw-r--r--guess.c29
-rw-r--r--inertia.c17
-rw-r--r--keen.c21
-rw-r--r--lightup.c7
-rw-r--r--loopy.c7
-rw-r--r--magnets.c7
-rw-r--r--map.c19
-rw-r--r--mines.c10
-rw-r--r--mosaic.c17
-rw-r--r--net.c19
-rw-r--r--netslide.c29
-rw-r--r--nullgame.c49
-rw-r--r--palisade.c8
-rw-r--r--pattern.c7
-rw-r--r--pearl.c7
-rw-r--r--pegs.c25
-rw-r--r--range.c8
-rw-r--r--rect.c7
-rw-r--r--samegame.c25
-rw-r--r--signpost.c7
-rw-r--r--singles.c7
-rw-r--r--sixteen.c17
-rw-r--r--slant.c7
-rw-r--r--solo.c9
-rw-r--r--tents.c7
-rw-r--r--towers.c9
-rw-r--r--tracks.c7
-rw-r--r--twiddle.c17
-rw-r--r--undead.c17
-rw-r--r--unequal.c7
-rw-r--r--unruly.c7
-rw-r--r--untangle.c29
41 files changed, 71 insertions, 539 deletions
diff --git a/blackbox.c b/blackbox.c
index 22ef4cb..51a15f6 100644
--- a/blackbox.c
+++ b/blackbox.c
@@ -468,16 +468,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return dupstr("S");
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
struct game_ui {
int flash_laserno;
int errors;
@@ -1540,19 +1530,6 @@ static int game_status(const game_state *state)
return 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame blackbox
#endif
@@ -1573,7 +1550,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -1592,9 +1569,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/bridges.c b/bridges.c
index 510af44..db4a66e 100644
--- a/bridges.c
+++ b/bridges.c
@@ -3188,11 +3188,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -3297,7 +3292,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/cube.c b/cube.c
index 21df46d..1969bfb 100644
--- a/cube.c
+++ b/cube.c
@@ -1023,22 +1023,6 @@ static void free_game(game_state *state)
sfree(state);
}
-static char *solve_game(const game_state *state, const game_state *currstate,
- const char *aux, const char **error)
-{
- return NULL;
-}
-
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
static game_ui *new_ui(const game_state *state)
{
return NULL;
@@ -1758,19 +1742,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame cube
#endif
@@ -1790,8 +1761,8 @@ const struct game thegame = {
new_game,
dup_game,
free_game,
- false, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, /* solve */
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -1810,8 +1781,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/dominosa.c b/dominosa.c
index 25f2a0b..e60cb46 100644
--- a/dominosa.c
+++ b/dominosa.c
@@ -3369,11 +3369,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -3463,7 +3458,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/fifteen.c b/fifteen.c
index 2ba25af..0d19288 100644
--- a/fifteen.c
+++ b/fifteen.c
@@ -1080,19 +1080,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame fifteen
#endif
@@ -1132,9 +1119,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/filling.c b/filling.c
index 7dec656..215eefe 100644
--- a/filling.c
+++ b/filling.c
@@ -2093,11 +2093,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2198,7 +2193,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_NUMPAD, /* flags */
};
diff --git a/flip.c b/flip.c
index 9486f19..cc80b09 100644
--- a/flip.c
+++ b/flip.c
@@ -1321,19 +1321,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame flip
#endif
@@ -1373,8 +1360,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/flood.c b/flood.c
index c015c7e..8f4df00 100644
--- a/flood.c
+++ b/flood.c
@@ -1341,19 +1341,6 @@ static float game_flash_length(const game_state *oldstate,
return 0.0F;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame flood
#endif
@@ -1393,8 +1380,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/galaxies.c b/galaxies.c
index c367b29..d69ed84 100644
--- a/galaxies.c
+++ b/galaxies.c
@@ -3633,11 +3633,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
#ifndef EDITOR
static void game_print_size(const game_params *params, float *x, float *y)
{
@@ -3868,7 +3863,7 @@ const struct game thegame = {
true, false, game_print_size, game_print,
false, /* wants_statusbar */
#endif
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/guess.c b/guess.c
index dd6462b..5046f98 100644
--- a/guess.c
+++ b/guess.c
@@ -359,16 +359,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return dupstr("S");
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
static bool is_markable(const game_params *params, pegrow pegs)
{
int i, nset = 0, nrequired;
@@ -1500,19 +1490,6 @@ static int game_status(const game_state *state)
return state->solved;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame guess
#endif
@@ -1533,7 +1510,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -1552,9 +1529,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/inertia.c b/inertia.c
index 213ad35..2f352d3 100644
--- a/inertia.c
+++ b/inertia.c
@@ -2205,19 +2205,6 @@ static int game_status(const game_state *state)
return state->gems == 0 ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame inertia
#endif
@@ -2257,8 +2244,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/keen.c b/keen.c
index ec6e512..be06013 100644
--- a/keen.c
+++ b/keen.c
@@ -1490,16 +1490,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return out;
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
struct game_ui {
/*
* These are the coordinates of the currently highlighted
@@ -2231,13 +2221,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- if (state->completed)
- return false;
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2492,7 +2475,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -2513,7 +2496,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON | REQUIRE_NUMPAD, /* flags */
};
diff --git a/lightup.c b/lightup.c
index c37be86..854d28a 100644
--- a/lightup.c
+++ b/lightup.c
@@ -2255,11 +2255,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2363,7 +2358,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/loopy.c b/loopy.c
index 7fe91ff..960fafa 100644
--- a/loopy.c
+++ b/loopy.c
@@ -980,11 +980,6 @@ static void game_free_drawstate(drawing *dr, game_drawstate *ds)
sfree(ds);
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static float game_anim_length(const game_state *oldstate,
const game_state *newstate, int dir, game_ui *ui)
{
@@ -3694,7 +3689,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false /* wants_statusbar */,
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* mouse_priorities */
};
diff --git a/magnets.c b/magnets.c
index 0379fa0..0cd9adb 100644
--- a/magnets.c
+++ b/magnets.c
@@ -2344,11 +2344,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2485,7 +2480,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/map.c b/map.c
index 553a683..0d90f31 100644
--- a/map.c
+++ b/map.c
@@ -2261,16 +2261,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return dupstr(aux);
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
struct game_ui {
/*
* drag_colour:
@@ -3097,11 +3087,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -3275,7 +3260,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -3296,7 +3281,7 @@ const struct game thegame = {
game_status,
true, true, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/mines.c b/mines.c
index 5674849..711fc50 100644
--- a/mines.c
+++ b/mines.c
@@ -3215,14 +3215,6 @@ static bool game_timing_state(const game_state *state, game_ui *ui)
return true;
}
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame mines
#endif
@@ -3262,7 +3254,7 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
true, game_timing_state,
BUTTON_BEATS(LEFT_BUTTON, RIGHT_BUTTON) | REQUIRE_RBUTTON,
diff --git a/mosaic.c b/mosaic.c
index ae8563d..30e65b0 100644
--- a/mosaic.c
+++ b/mosaic.c
@@ -1587,19 +1587,6 @@ static int game_status(const game_state *state)
return 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return state->not_completed_clues > 0;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame mosaic
#endif
@@ -1640,9 +1627,9 @@ const struct game thegame = {
game_get_cursor_location,
game_status,
#ifndef NO_PRINTING
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
#endif
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/net.c b/net.c
index 73ccb08..cff0c9c 100644
--- a/net.c
+++ b/net.c
@@ -1848,16 +1848,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return ret;
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
/* ----------------------------------------------------------------------
* Utility routine.
*/
@@ -3102,11 +3092,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -3262,7 +3247,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -3283,6 +3268,6 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/netslide.c b/netslide.c
index c2eab66..1a01be2 100644
--- a/netslide.c
+++ b/netslide.c
@@ -893,16 +893,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return dupstr(aux);
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
/* ----------------------------------------------------------------------
* Utility routine.
*/
@@ -1852,19 +1842,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return false;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame netslide
#endif
@@ -1885,7 +1862,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -1904,9 +1881,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/nullgame.c b/nullgame.c
index 5942038..c539d1b 100644
--- a/nullgame.c
+++ b/nullgame.c
@@ -68,16 +68,6 @@ static char *encode_params(const game_params *params, bool full)
return dupstr("FIXME");
}
-static config_item *game_configure(const game_params *params)
-{
- return NULL;
-}
-
-static game_params *custom_params(const config_item *cfg)
-{
- return NULL;
-}
-
static const char *validate_params(const game_params *params, bool full)
{
return NULL;
@@ -118,22 +108,6 @@ static void free_game(game_state *state)
sfree(state);
}
-static char *solve_game(const game_state *state, const game_state *currstate,
- const char *aux, const char **error)
-{
- return NULL;
-}
-
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
static game_ui *new_ui(const game_state *state)
{
return NULL;
@@ -247,19 +221,6 @@ static int game_status(const game_state *state)
return 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame nullgame
#endif
@@ -272,15 +233,15 @@ const struct game thegame = {
encode_params,
free_params,
dup_params,
- false, game_configure, custom_params,
+ false, NULL, NULL, /* configure, custom_params */
validate_params,
new_game_desc,
validate_desc,
new_game,
dup_game,
free_game,
- false, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, /* solve */
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -299,8 +260,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/palisade.c b/palisade.c
index d03ee0f..f405efd 100644
--- a/palisade.c
+++ b/palisade.c
@@ -1303,12 +1303,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- assert (!"this shouldn't get called");
- return false; /* placate optimiser */
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -1416,6 +1410,6 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/pattern.c b/pattern.c
index 9904b80..68862df 100644
--- a/pattern.c
+++ b/pattern.c
@@ -1994,11 +1994,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2105,7 +2100,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/pearl.c b/pearl.c
index 9603bec..72f36f7 100644
--- a/pearl.c
+++ b/pearl.c
@@ -2599,11 +2599,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2711,7 +2706,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/pegs.c b/pegs.c
index 2fa9a2a..2005a9e 100644
--- a/pegs.c
+++ b/pegs.c
@@ -722,12 +722,6 @@ static void free_game(game_state *state)
sfree(state);
}
-static char *solve_game(const game_state *state, const game_state *currstate,
- const char *aux, const char **error)
-{
- return NULL;
-}
-
static bool game_can_format_as_text_now(const game_params *params)
{
return true;
@@ -1327,19 +1321,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame pegs
#endif
@@ -1359,7 +1340,7 @@ const struct game thegame = {
new_game,
dup_game,
free_game,
- false, solve_game,
+ false, NULL, /* solve */
true, game_can_format_as_text_now, game_text_format,
new_ui,
free_ui,
@@ -1379,9 +1360,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/range.c b/range.c
index a845b82..bc70c05 100644
--- a/range.c
+++ b/range.c
@@ -1768,12 +1768,6 @@ static void draw_cell(drawing *draw, game_drawstate *ds, int r, int c,
draw_update(draw, x, y, ts + 1, ts + 1);
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- puts("warning: game_timing_state was called (this shouldn't happen)");
- return false; /* the (non-existing) timer should not be running */
-}
-
/* ----------------------------------------------------------------------
* User interface: print
*/
@@ -1852,6 +1846,6 @@ struct game const thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/rect.c b/rect.c
index 5115018..535b007 100644
--- a/rect.c
+++ b/rect.c
@@ -2912,11 +2912,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -3023,7 +3018,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/samegame.c b/samegame.c
index c161234..121ed7d 100644
--- a/samegame.c
+++ b/samegame.c
@@ -1016,12 +1016,6 @@ static void free_game(game_state *state)
sfree(state);
}
-static char *solve_game(const game_state *state, const game_state *currstate,
- const char *aux, const char **error)
-{
- return NULL;
-}
-
static bool game_can_format_as_text_now(const game_params *params)
{
return true;
@@ -1656,19 +1650,6 @@ static int game_status(const game_state *state)
return state->complete ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame samegame
#endif
@@ -1688,7 +1669,7 @@ const struct game thegame = {
new_game,
dup_game,
free_game,
- false, solve_game,
+ false, NULL, /* solve */
true, game_can_format_as_text_now, game_text_format,
new_ui,
free_ui,
@@ -1708,8 +1689,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/signpost.c b/signpost.c
index daf5509..17557a3 100644
--- a/signpost.c
+++ b/signpost.c
@@ -2227,11 +2227,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2314,7 +2309,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/singles.c b/singles.c
index 42ecdbe..51fb23a 100644
--- a/singles.c
+++ b/singles.c
@@ -1788,11 +1788,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -1880,7 +1875,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/sixteen.c b/sixteen.c
index 7c9e7aa..400fa51 100644
--- a/sixteen.c
+++ b/sixteen.c
@@ -1175,19 +1175,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame sixteen
#endif
@@ -1227,9 +1214,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/slant.c b/slant.c
index f7070d7..fef73e0 100644
--- a/slant.c
+++ b/slant.c
@@ -2090,11 +2090,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2207,7 +2202,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/solo.c b/solo.c
index bac19a0..ff98073 100644
--- a/solo.c
+++ b/solo.c
@@ -5336,13 +5336,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- if (state->completed)
- return false;
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -5661,7 +5654,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON | REQUIRE_NUMPAD, /* flags */
};
diff --git a/tents.c b/tents.c
index cd7da79..9e8349c 100644
--- a/tents.c
+++ b/tents.c
@@ -2583,11 +2583,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2659,7 +2654,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON, /* flags */
};
diff --git a/towers.c b/towers.c
index 661514c..b1f6a16 100644
--- a/towers.c
+++ b/towers.c
@@ -1960,13 +1960,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- if (state->completed)
- return false;
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2085,7 +2078,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON | REQUIRE_NUMPAD, /* flags */
};
diff --git a/tracks.c b/tracks.c
index 07a9a80..5375410 100644
--- a/tracks.c
+++ b/tracks.c
@@ -2979,11 +2979,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -3073,7 +3068,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/twiddle.c b/twiddle.c
index 9ec593b..6d86264 100644
--- a/twiddle.c
+++ b/twiddle.c
@@ -1287,19 +1287,6 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
}
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame twiddle
#endif
@@ -1339,9 +1326,9 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
true, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/undead.c b/undead.c
index b31991d..40339ae 100644
--- a/undead.c
+++ b/undead.c
@@ -2770,19 +2770,6 @@ static int game_status(const game_state *state)
return state->solved;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame undead
#endif
@@ -2822,8 +2809,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/unequal.c b/unequal.c
index c1d3a30..ed03c0b 100644
--- a/unequal.c
+++ b/unequal.c
@@ -2086,11 +2086,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2180,7 +2175,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
REQUIRE_RBUTTON | REQUIRE_NUMPAD, /* flags */
};
diff --git a/unruly.c b/unruly.c
index 0a9403e..63d25e2 100644
--- a/unruly.c
+++ b/unruly.c
@@ -1970,11 +1970,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
static void game_print_size(const game_params *params, float *x, float *y)
{
int pw, ph;
@@ -2058,7 +2053,7 @@ const struct game thegame = {
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
0, /* flags */
};
diff --git a/untangle.c b/untangle.c
index e849b5b..1dc4fb3 100644
--- a/untangle.c
+++ b/untangle.c
@@ -1028,16 +1028,6 @@ static char *solve_game(const game_state *state, const game_state *currstate,
return ret;
}
-static bool game_can_format_as_text_now(const game_params *params)
-{
- return true;
-}
-
-static char *game_text_format(const game_state *state)
-{
- return NULL;
-}
-
struct game_ui {
int dragpoint; /* point being dragged; -1 if none */
point newpoint; /* where it's been dragged to so far */
@@ -1446,19 +1436,6 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static bool game_timing_state(const game_state *state, game_ui *ui)
-{
- return true;
-}
-
-static void game_print_size(const game_params *params, float *x, float *y)
-{
-}
-
-static void game_print(drawing *dr, const game_state *state, int tilesize)
-{
-}
-
#ifdef COMBINED
#define thegame untangle
#endif
@@ -1479,7 +1456,7 @@ const struct game thegame = {
dup_game,
free_game,
true, solve_game,
- false, game_can_format_as_text_now, game_text_format,
+ false, NULL, NULL, /* can_format_as_text_now, text_format */
new_ui,
free_ui,
encode_ui,
@@ -1498,8 +1475,8 @@ const struct game thegame = {
game_flash_length,
game_get_cursor_location,
game_status,
- false, false, game_print_size, game_print,
+ false, false, NULL, NULL, /* print_size, print */
false, /* wants_statusbar */
- false, game_timing_state,
+ false, NULL, /* timing_state */
SOLVE_ANIMATES, /* flags */
};