C# Class DeveMazeGenerator.Generators.AlgorithmDivision

Inheritance: Algorithm
Afficher le fichier Open project: devedse/DeveMazeGenerator Class Usage Examples

Méthodes publiques

Méthode Description
Generate ( int width, int height, InnerMapType innerMapType, Action pixelChangedCallback ) : Maze

Generate a Maze

Generate ( int width, int height, InnerMapType innerMapType, int seed, Action pixelChangedCallback ) : Maze

Generate a Maze

Private Methods

Méthode Description
GoGenerate ( DeveMazeGenerator.InnerMaps.InnerMap map, Maze maze, Random r, Action pixelChangedCallback ) : void
isValid ( int x, int y, DeveMazeGenerator.InnerMaps.InnerMap map, Maze maze ) : bool

Method Details

Generate() public méthode

Generate a Maze
public Generate ( int width, int height, InnerMapType innerMapType, Action pixelChangedCallback ) : Maze
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

Generate() public méthode

Generate a Maze
public Generate ( int width, int height, InnerMapType innerMapType, int seed, Action pixelChangedCallback ) : Maze
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