~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Framework alteration: we now support a `game_ui' structure in
[sgt/puzzles]
/
sixteen.c
diff --git
a/sixteen.c
b/sixteen.c
index
1b0b4ea
..
cce11d9
100644
(file)
--- a/
sixteen.c
+++ b/
sixteen.c
@@
-358,7
+358,16
@@
void free_game(game_state *state)
sfree(state);
}
sfree(state);
}
-game_state *make_move(game_state *from, int x, int y, int button)
+game_ui *new_ui(game_state *state)
+{
+ return NULL;
+}
+
+void free_ui(game_ui *ui)
+{
+}
+
+game_state *make_move(game_state *from, game_ui *ui, int x, int y, int button)
{
int cx, cy;
int dx, dy, tx, ty, n;
{
int cx, cy;
int dx, dy, tx, ty, n;
@@
-534,7
+543,8
@@
static void draw_arrow(frontend *fe, int x, int y, int xdx, int xdy)
}
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
}
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
- game_state *state, float animtime, float flashtime)
+ game_state *state, game_ui *ui,
+ float animtime, float flashtime)
{
int i, bgcolour;
{
int i, bgcolour;