class in FinixMakesGames.MazeGenerator.Core / Inherits from:Cell
Class that represents the basic unit of a QuadGrid and by extension a QuadMaze.
Type | Result |
QuadCell | Creates a new cell with the given row and collumn components, sets the neighbouring cells to null. |
Property | Description |
row | The position of the Cell within the QuadGrid on the horizontal axis. |
collumn | The position of the Cell within the QuadGrid on the vertical axis. |
north, east, west, south | References to each of the four neighbouring Cells relative to this one. |
Property | Description |
links | Array of all Cells linked to this Cell |
Method | Description |
Link | Links this Cell to another Cell, making a path between them. |
UnLink | Removes a link from a choosen Cell to this one. |
IsLinked | Check if a Cell is linked to this one. |
Neighbors | Returns a list of all neighboring cells whether they're linked or not. |
CellDistances | Returns a Distances class with all paths and their relative distance to this Cell. |