X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/9b265feb3378c6f2b36a52dffabe8110e3c77566..3199a01b45fe16e540800fb73f69b4188d6e70ff:/puzzles.h diff --git a/puzzles.h b/puzzles.h index a962bc3..f4fc67f 100644 --- a/puzzles.h +++ b/puzzles.h @@ -60,12 +60,14 @@ enum { #define IS_MOUSE_RELEASE(m) ( (unsigned)((m) - LEFT_RELEASE) <= \ (unsigned)(RIGHT_RELEASE - LEFT_RELEASE)) +/* + * Flags in the back end's `flags' word. + */ /* Bit flags indicating mouse button priorities */ #define BUTTON_BEATS(x,y) ( 1 << (((x)-LEFT_BUTTON)*3+(y)-LEFT_BUTTON) ) - -/* Another random flag that goes in the mouse priorities section for want - * of a better place to put it */ +/* Flag indicating that Solve operations should be animated */ #define SOLVE_ANIMATES ( 1 << 9 ) +/* end of `flags' word definitions */ #define IGNOREARG(x) ( (x) = (x) ) @@ -287,7 +289,7 @@ extern char ver[]; /* * random.c */ -random_state *random_init(char *seed, int len); +random_state *random_new(char *seed, int len); random_state *random_copy(random_state *tocopy); unsigned long random_bits(random_state *state, int bits); unsigned long random_upto(random_state *state, unsigned long limit); @@ -397,7 +399,7 @@ struct game { int (*wants_statusbar)(void); int is_timed; int (*timing_state)(game_state *state, game_ui *ui); - int mouse_priorities; + int flags; }; /*