Added "dual" option to grid generators
[sgt/puzzles] / grid.h
diff --git a/grid.h b/grid.h
index 00cd7c5..7cf4f59 100644 (file)
--- a/grid.h
+++ b/grid.h
@@ -101,7 +101,6 @@ typedef struct grid {
   A(CAIRO,cairo) \
   A(GREATHEXAGONAL,greathexagonal) \
   A(OCTAGONAL,octagonal) \
-  A(DUAL_OCTAGONAL,dual_octagonal) \
   A(KITE,kites) \
   A(FLORET,floret) \
   A(DODECAGONAL,dodecagonal) \
@@ -115,10 +114,10 @@ typedef enum grid_type { GRIDGEN_LIST(ENUM) GRID_TYPE_MAX } grid_type;
 
 /* Free directly after use if non-NULL. Will never contain an underscore
  * (so clients can safely use that as a separator). */
-char *grid_new_desc(grid_type type, int width, int height, random_state *rs);
-char *grid_validate_desc(grid_type type, int width, int height, char *desc);
+char *grid_new_desc(grid_type type, int width, int height, int dual, random_state *rs);
+char *grid_validate_desc(grid_type type, int width, int height, int dual, char *desc);
 
-grid *grid_new(grid_type type, int width, int height, char *desc);
+grid *grid_new(grid_type type, int width, int height, int dual, char *desc);
 
 void grid_free(grid *g);