Maze Factory  1.0
Unity3d component package for procedural mazes
 All Classes Functions Variables Enumerations Properties
MFMaze Class Reference

The Maze generator. Generates an abstract two dimensional array of mfcells. Use this class with your own visualisation routine, or use the MazeFactory class on an empty game object to do it for you. More...

List of all members.

Public Member Functions

 MFMaze (int height, int width, int seed)
 Initializes a new instance of the MFMaze class.
void Generate ()
 Generate maze with random begin position and random end position
void Generate (int?beginY, int?endY)
 Generate maze with the specified beginY and endY.
void Solve ()
 Solves the current maze

Public Attributes

MFCell[,] maze
 The maze in an two dimensional array of MFCells.
MFCell begin
 The start point of the maze.
MFCell end
 The end point of the maze.
List< MFCellsolution = new List<MFCell>()
 The shortest path through the maze from begin to end

Detailed Description

The Maze generator. Generates an abstract two dimensional array of mfcells. Use this class with your own visualisation routine, or use the MazeFactory class on an empty game object to do it for you.


Constructor & Destructor Documentation

MFMaze ( int  height,
int  width,
int  seed 
)

Initializes a new instance of the MFMaze class.

Parameters:
heightHeight in number of cells.
widthWidth in number of cells.
seedRandom seed

Member Function Documentation

void Generate ( )

Generate maze with random begin position and random end position

void Generate ( int?  beginY,
int?  endY 
)

Generate maze with the specified beginY and endY.

Parameters:
beginYBegin y.
endYEnd y.
void Solve ( )

Solves the current maze


Member Data Documentation

MFCell begin

The start point of the maze.

MFCell end

The end point of the maze.

MFCell [,] maze

The maze in an two dimensional array of MFCells.

List<MFCell> solution = new List<MFCell>()

The shortest path through the maze from begin to end


The documentation for this class was generated from the following file: