From caee305b47bd93eda98ba40d98de7aa180a470c7 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 31 May 2005 11:43:51 +0000 Subject: Mouse-based interface for Cube: you left-click anywhere on the grid and it moves the polyhedron in the general direction of the mouse pointer. (I had this in my initial throwaway Python implementation of this game, but never reimplemented it in this version. It's harder with triangles, but not too much harder.) Since the logical-to-physical coordinate mapping in Cube is dynamically computed, this has involved an interface change which touches all puzzles: make_move() is now passed a pointer to the game_drawstate, which it may of course completely ignore if it wishes. [originally from svn r5877] --- netslide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netslide.c') diff --git a/netslide.c b/netslide.c index 324946e..b81a816 100644 --- a/netslide.c +++ b/netslide.c @@ -1051,7 +1051,7 @@ static void slide_col(game_state *state, int dir, int col) } static game_state *make_move(game_state *state, game_ui *ui, - int x, int y, int button) + game_drawstate *ds, int x, int y, int button) { int cx, cy; int n, dx, dy; -- cgit v1.1