HasPathTo() public method

public HasPathTo ( GraphNode node ) : bool
node GraphNode
return bool
Ejemplo n.º 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");
     }
 }
Ejemplo n.º 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");
     }
 }
Ejemplo n.º 3
0
 public override bool Suitable(GraphNode node)
 {
     return(base.Suitable(node) && path.HasPathTo(node));
 }