public HasPathTo ( |
||
node | ||
Результат | bool |
/// <summary> /// Initializes the path. /// Traces the path from the start node. /// </summary> protected override void Initialize() { if (startNode != null && flood.HasPathTo(startNode)) { Trace(startNode); CompleteState = PathCompleteState.Complete; } else { FailWithError("Could not find valid start node"); } }
/** Initializes the path. * Traces the path from the start node. */ public override void Initialize() { if (startNode != null && flood.HasPathTo(startNode)) { Trace(startNode); CompleteState = PathCompleteState.Complete; } else { Error(); LogError("Could not find valid start node"); } }
public override bool Suitable(GraphNode node) { return(base.Suitable(node) && path.HasPathTo(node)); }