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< MFCell > | solution = 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:
-
height | Height in number of cells. |
width | Width in number of cells. |
seed | Random seed |
Member Function Documentation
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:
-
beginY | Begin y. |
endY | End y. |
Member Data Documentation
The start point of the maze.
The end point of the maze.
The maze in an two dimensional array of MFCells.
The shortest path through the maze from begin to end
The documentation for this class was generated from the following file: