OpenSim.Modules.PathFinding/src/PathNode.cs

35 lines
719 B
C#
Raw Normal View History

2020-06-18 23:52:18 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenSim.Modules.PathFinding
{
class PathNode
{
public int PositionX = 0;
public int PositionY = 0;
public bool Walkable = false;
2020-06-22 22:51:24 +00:00
public int f_cost = 99999;
2020-06-18 23:52:18 +00:00
public PathNode Parent = null;
public PathNode(int positionX, int positionY)
{
PositionX = positionX;
PositionY = positionY;
}
public PathNode(int positionX, int positionY, bool isWalkable)
{
PositionX = positionX;
PositionY = positionY;
Walkable = isWalkable;
}
}
}