aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2004-08-16 16:29:54 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2004-08-16 16:29:54 +0000
commitdaac529a9eded98181fdf2b0d79e7138195614ec (patch)
tree88f9422b8f36470c838e379340a2f9598e930229 /puzzles.h
parentf1e8a586b53535bad3e201a8cc42b514a8cb6e16 (diff)
downloadpuzzles-daac529a9eded98181fdf2b0d79e7138195614ec.zip
puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.tar.gz
puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.tar.bz2
puzzles-daac529a9eded98181fdf2b0d79e7138195614ec.tar.xz
After discussion with Simon, the game redraw functions are now passed a new
argument `dir' which tells them whether this redraw is due to an undo, rather than have them second-guess it from game state. Note that none of the actual games yet take advantage of this; so it hasn't been tested in anger (although it has been inspected by debugging). [originally from svn r4469]
Diffstat (limited to 'puzzles.h')
-rw-r--r--puzzles.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/puzzles.h b/puzzles.h
index b04ec97..b0947fc 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -184,10 +184,10 @@ float *game_colours(frontend *fe, game_state *state, int *ncolours);
game_drawstate *game_new_drawstate(game_state *state);
void game_free_drawstate(game_drawstate *ds);
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
- game_state *newstate, game_ui *ui, float anim_time,
+ game_state *newstate, int dir, game_ui *ui, float anim_time,
float flash_time);
-float game_anim_length(game_state *oldstate, game_state *newstate);
-float game_flash_length(game_state *oldstate, game_state *newstate);
+float game_anim_length(game_state *oldstate, game_state *newstate, int dir);
+float game_flash_length(game_state *oldstate, game_state *newstate, int dir);
int game_wants_statusbar(void);
#endif /* PUZZLES_PUZZLES_H */