C# 클래스 DeveMazeGenerator.Generators.AlgorithmDivision

상속: Algorithm
파일 보기 프로젝트 열기: devedse/DeveMazeGenerator 1 사용 예제들

공개 메소드들

메소드 설명
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