QuadGrid

class in FinixMakesGames.MazeGenerator.Core / Inherits from:Grid

Description

A class that represents a rectangular Maze in it's raw data form without any graphics.

Constructor

TypeResult
QuadGridCreates a new grid with the given row and collumn components, creates a new collection of cells and assings it's neighbors.

Properties

PropertyDescription
cellsA double Array of QuadCell that stores all Cells present in this grid .
distancesA class Distances variable that can store a collection of paths. Null by default.

Inhereted Members

Public Methods

MethodDescription
RandomCellReturns a random Cell from the Grid.
SizeReturns the number of total Cells present in this Grid.
DeadEndsReturns a list of Cells that have only one link to another cell.
ToStringRepresents the maze in form of a string. Usefull for debugging.