C# Класс DeveMazeGenerator.Generators.AlgorithmDivision

Наследование: Algorithm
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GoGenerate ( DeveMazeGenerator.InnerMaps.InnerMap map, Maze maze, Random r, Action pixelChangedCallback ) : void
isValid ( int x, int y, DeveMazeGenerator.InnerMaps.InnerMap map, Maze maze ) : bool

Описание методов

Generate() публичный Метод

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)
Результат Maze

Generate() публичный Метод

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)
Результат Maze