git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1365 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-28 10:30:40 +00:00
parent 5d6fbbdfc9
commit 48e5da3945
13 changed files with 252 additions and 230 deletions

View File

@@ -26,9 +26,9 @@ namespace OpenRa.Game
// returns estimate to destination, 0.0 is cell is dest
public delegate double DistanceHeuristic( int2 cell );
public List<int2> FindUnitPath( Unit unit, DistanceHeuristic estimator )
public List<int2> FindUnitPath( int2 unitLocation, DistanceHeuristic estimator )
{
int2 startLocation = unit.Location + map.Offset;
int2 startLocation = unitLocation + map.Offset;
CellInfo[ , ] cellInfo = new CellInfo[ 128, 128 ];