AbsoluteLongestPathModifier

class in FinixMakesGames.MazeGenerator / Inherits from:MonoBehaviour, IQuadMazePrefabModifier

Description

A modifier designed to add a pair of prefab tiles. This modifier will always pick the pair most further apart possible.

Warning: Because this modifier searches for the absolute longest path in a maze it can be very CPU intensive, as such, it's not recomended to use it in mazes that have a cell count above 400 (e.g. A 40x40 maze can require Dijkstra's algorithm to run aproximately 16 000 times).

Properties

PropertyDescription
entrancePrefabThe tile used for the entrance cell.
entranceLinksHow many links/paths the entrance prefab is supposed to have.
exitPrefabThe tile used for the exit cell.
exitLinksHow many links/paths the exit prefab is supposed to have.

Inhereted Members

Public Methods

MethodDescription
ApplyPrefabModifierAdds one or multiple <QuadCell,GameObject> pairs to the uniqueTiles property in the given QuadMaze.