⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jcastarnode.cs

📁 两种AstarPathFinder 一种DijkstraPathfinder BFS
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace PathFinder
{

        class JCAstarNode
        {

            public JCAstarNode(Point p)
            {
                this.NodeLoction = p;
                this.Pluscost = 0;
                this.GExactCost = 0;
                this.HeuristicCost = 0;
            }

            private Point Loction;

            public Point NodeLoction
            {
                get { return Loction; }
                set { Loction = value; }
            }
            private JCAstarNode FParent;
            public JCAstarNode Parent
            {
                get
                {
                    return FParent;
                }
                set
                {
                    FParent = value;
                }
            }

            public int GExactCost
            {
                set
                {
                    GCost = value;
                }
                get
                {
                    return GCost;
                }
            }
            private int GCost;


            public double HeuristicCost
            {
                set
                {
                    HCost = value;
                }
                get
                {
                    return HCost;
                }
            }
            private double HCost;


            public double FTotalCost
            {
                set
                {
                    TCost = value;
                }
                get
                {
                    return TCost;
                }
            }

            private double TCost;


            public int Pluscost
            {
                get { return pluscost; }
                set { pluscost = value; }
            }
            private int pluscost;

        }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -