jcastarnode.cs
来自「两种AstarPathFinder 一种DijkstraPathfinder 」· CS 代码 · 共 93 行
CS
93 行
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 + =
减小字号Ctrl + -
显示快捷键?