~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce the concept of a `game_aux_info' structure. This is
[sgt/puzzles]
/
net.c
diff --git
a/net.c
b/net.c
index
7b3a501
..
3d4daa7
100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-290,7
+290,8
@@
static char *validate_params(game_params *params)
* Randomly select a new game seed.
*/
* Randomly select a new game seed.
*/
-static char *new_game_seed(game_params *params, random_state *rs)
+static char *new_game_seed(game_params *params, random_state *rs,
+ game_aux_info **aux)
{
/*
* The full description of a Net game is far too large to
{
/*
* The full description of a Net game is far too large to
@@
-308,6
+309,11
@@
static char *new_game_seed(game_params *params, random_state *rs)
return dupstr(buf);
}
return dupstr(buf);
}
+void game_free_aux_info(game_aux_info *aux)
+{
+ assert(!"Shouldn't happen");
+}
+
static char *validate_seed(game_params *params, char *seed)
{
/*
static char *validate_seed(game_params *params, char *seed)
{
/*
@@
-699,6
+705,11
@@
static void free_game(game_state *state)
sfree(state);
}
sfree(state);
}
+static char *game_text_format(game_state *state)
+{
+ return NULL;
+}
+
/* ----------------------------------------------------------------------
* Utility routine.
*/
/* ----------------------------------------------------------------------
* Utility routine.
*/
@@
-1494,21
+1505,22
@@
static int game_wants_statusbar(void)
#endif
const struct game thegame = {
#endif
const struct game thegame = {
- "Net", "games.net",
TRUE,
+ "Net", "games.net",
default_params,
game_fetch_preset,
decode_params,
encode_params,
free_params,
dup_params,
default_params,
game_fetch_preset,
decode_params,
encode_params,
free_params,
dup_params,
- game_configure,
- custom_params,
+ TRUE, game_configure, custom_params,
validate_params,
new_game_seed,
validate_params,
new_game_seed,
+ game_free_aux_info,
validate_seed,
new_game,
dup_game,
free_game,
validate_seed,
new_game,
dup_game,
free_game,
+ FALSE, game_text_format,
new_ui,
free_ui,
make_move,
new_ui,
free_ui,
make_move,