45 lines
994 B
C#
45 lines
994 B
C#
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;
|
|
public bool Target = false;
|
|
|
|
public int Coast = 0;
|
|
|
|
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;
|
|
}
|
|
|
|
public PathNode(int positionX, int positionY, bool isWalkable, bool isTarget)
|
|
{
|
|
PositionX = positionX;
|
|
PositionY = positionY;
|
|
|
|
Walkable = isWalkable;
|
|
Target = isTarget;
|
|
}
|
|
}
|
|
}
|