using Grid;

public class PathNode {
    public PathNode(GridPosition gridPosition) => GridPosition = gridPosition;
    public GridPosition GridPosition { get; }
    public int GCost { get; set; }
    public int HCost { get; set; }
    public int FCost => GCost + HCost;
    public bool IsWalkable { get; set; }

    public PathNode CameFromPathNode { get; set; }

    public override string ToString() => $"{GridPosition.ToString()}";
}