2004-11-18 08:59:56 +00:00
|
|
|
|
2004-05-23 12:43:13 +00:00
|
|
|
#define MAZE_TITLE N_("Maze")
|
1998-03-09 01:45:26 +00:00
|
|
|
|
|
|
|
#define HELP_OPENS_NEW_WINDOW FALSE
|
|
|
|
|
|
|
|
/* The "divbox" really should look and act more like a spinbutton.
|
|
|
|
This flag is a small step in the direction toward the former, the
|
|
|
|
latter leaves much to be desired. */
|
|
|
|
#define DIVBOX_LOOKS_LIKE_SPINBUTTON FALSE
|
1998-02-20 10:41:20 +00:00
|
|
|
|
1998-05-18 00:33:13 +00:00
|
|
|
/* Don't update the progress for every cell when creating a maze.
|
|
|
|
Instead, update every . . . */
|
|
|
|
#define PRIMS_PROGRESS_UPDATE 256
|
|
|
|
|
2004-11-18 08:59:56 +00:00
|
|
|
/* Don't draw in anything that has less than
|
1998-05-18 00:33:13 +00:00
|
|
|
this value in the selection channel. */
|
|
|
|
#define MAZE_ALPHA_THRESHOLD 127
|
|
|
|
|
|
|
|
#include "glib.h"
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DEPTH_FIRST,
|
|
|
|
PRIMS_ALGORITHM
|
|
|
|
} MazeAlgoType;
|
1998-02-20 10:41:20 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
gint width;
|
|
|
|
gint height;
|
2002-11-24 19:29:49 +00:00
|
|
|
guint32 seed;
|
1998-02-20 10:41:20 +00:00
|
|
|
gboolean tile;
|
|
|
|
gint multiple;
|
|
|
|
gint offset;
|
1998-05-18 00:33:13 +00:00
|
|
|
MazeAlgoType algorithm;
|
2004-01-31 23:34:56 +00:00
|
|
|
gboolean random_seed;
|
1998-02-20 10:41:20 +00:00
|
|
|
/* Interface options. */
|
|
|
|
} MazeValues;
|
1998-05-18 00:33:13 +00:00
|
|
|
|
|
|
|
enum CellTypes {
|
|
|
|
OUT,
|
|
|
|
IN,
|
|
|
|
FRONTIER,
|
|
|
|
MASKED
|
|
|
|
};
|