Example #1
0
 // dump the shortest path to the log
 public void Dump(TerrainMap terrainMap)
 {
     for (var y = 0; y < terrainMap.Height; y++)
     {
         var line = "";
         for (var x = 0; x < terrainMap.Width; x++)
         {
             if (WaypointContains(x, y))
             {
                 line += "*";
             }
             else
             {
                 line += ".";
             }
         }
         //_log.Debug(line);
     }
 }
Example #2
0
 public void ComputePath(TerrainMap terrainMap)
 {
     _shortestPath.ComputeShortestPath(terrainMap, Col, Row, DestCol, DestRow, UnitType);
 }