public Path(MapSquare currentSquare, Path parentPath, MapSquare targetSquare, double cost) { CurrentSquare = currentSquare; ParentPath = parentPath; Cost = cost + currentSquare.Cost; MovementCost = currentSquare.EuclideanDistance(targetSquare); TotalCost = Cost + MovementCost; }