Class FloodPathConstraint Extends NNConstraint

Public

Restrict suitable nodes by if they have been searched by a FloodPath.

Suitable nodes are in addition to the basic contraints, only the nodes which return true on a FloodPath.HasPathTo (node) call.

A* Pro Feature:

This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited.
The Pro version can be bought here

Public Methods

FloodPathConstraint (path)
Public
Suitable (node)

Returns whether or not the node conforms to this NNConstraint's rules.

Public

Inherited Public Members

Default

The default NNConstraint.

Public Static
None

Returns a constraint which does not filter the results.

Public Static
SuitableGraph (graphIndex, graph)

Returns whether or not the graph conforms to this NNConstraint's rules.

Public
area

Area ID to constrain to.

Public
constrainArea

Only treat nodes in the area area as suitable.

Public
constrainDistance

Constrain distance to node.

Public
constrainTags

Sets if tags should be constrained.

Public
constrainWalkability

Constrain the search to only walkable or unwalkable nodes depending on walkable.

Public
distanceXZ

if available, do an XZ check instead of checking on all axes.

Public
graphMask

Graphs treated as valid to search on.

Public
tags

Nodes which have any of these tags set are suitable.

Public
walkable

Only search for walkable or unwalkable nodes if constrainWalkability is enabled.

Public

Private/Protected Members

path
Private Readonly