示例#1
0
 void NotFoundNode(AStarNode tempStart, AStarNode end, AStarNode node)
 {
     node.ParentNode = tempStart;
     node.G          = CalcG(tempStart, node);
     node.H          = CalcH(end, node);
     node.CalcF();
     OpenList.Add(node);
 }
示例#2
0
        void FoundNode(AStarNode tempStart, AStarNode node)
        {
            int G = CalcG(tempStart, node);

            if (G < node.G)
            {
                node.ParentNode = tempStart;
                node.G          = G;
                node.CalcF();
            }
        }