HasPathTo() public method

public HasPathTo ( GraphNode node ) : bool
node GraphNode
return bool
Example #1
0
 /// <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");
     }
 }
Example #2
0
 /** 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");
     }
 }
Example #3
0
 public override bool Suitable(GraphNode node)
 {
     return(base.Suitable(node) && path.HasPathTo(node));
 }