QuadCell

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

Description

Class that represents the basic unit of a QuadGrid and by extension a QuadMaze.

Constructor

TypeResult
QuadCellCreates a new cell with the given row and collumn components, sets the neighbouring cells to null.

Properties

PropertyDescription
rowThe position of the Cell within the QuadGrid on the horizontal axis.
collumnThe position of the Cell within the QuadGrid on the vertical axis.
north, east, west, southReferences to each of the four neighbouring Cells relative to this one.

Inherited Members

Properties

PropertyDescription
linksArray of all Cells linked to this Cell

Public Methods

MethodDescription
LinkLinks this Cell to another Cell, making a path between them.
UnLinkRemoves a link from a choosen Cell to this one.
IsLinkedCheck if a Cell is linked to this one.
NeighborsReturns a list of all neighboring cells whether they're linked or not.
CellDistancesReturns a Distances class with all paths and their relative distance to this Cell.