Exemplo n.º 1
0
 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;
 }