using Grid;

public class PathNode {
    public GridPosition GridPosition { get; }
    public int GCost { get; set; }
    public int HCost { get; set; }
    public int FCost => GCost + HCost;
    public bool IsWalkable { get; set; } = true;
    
    public PathNode CameFromPathNode { get; set; }

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