Méthode | Description | |
---|---|---|
Generate ( int width, int height, InnerMapType innerMapType, Action |
Generate a Maze
|
|
Generate ( int width, int height, InnerMapType innerMapType, int seed, Action |
Generate a Maze
|
Méthode | Description | |
---|---|---|
GoGenerate ( DeveMazeGenerator.InnerMaps.InnerMap map, Maze maze, |
||
isValid ( int x, int y, DeveMazeGenerator.InnerMaps.InnerMap map, Maze maze ) : bool |
public Generate ( int width, int height, InnerMapType innerMapType, Action |
||
width | int | Width of the maze |
height | int | Height of the maze |
innerMapType | InnerMapType | The type which is used to store a map |
pixelChangedCallback | Action |
When a pixel is changed you can define a callback here to for example draw the maze while its being generated, add null if you don't want this. Last 2 longs are for the current step and the total steps (can be used to calculate how far the maze is done being generated) |
Résultat | Maze |
public Generate ( int width, int height, InnerMapType innerMapType, int seed, Action |
||
width | int | Width of the maze |
height | int | Height of the maze |
innerMapType | InnerMapType | The type which is used to store a map |
seed | int | The seed that is used to generate a maze |
pixelChangedCallback | Action |
When a pixel is changed you can define a callback here to for example draw the maze while its being generated, add null if you don't want this. Last 2 longs are for the current step and the total steps (can be used to calculate how far the maze is done being generated) |
Résultat | Maze |