MazeCell

class in FinixMakesGames.MazeGenerator.Core

Description

An Abstract Class that represents the basic unit of a maze. Similar to a node in a graph, the Cell is meant to represent a point in a MazeGrid and it stores how that point connects to other neighbouring points/Cells.

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.