public float TestRun(MapTile start, MapTile dest) { Stopwatch sw = new Stopwatch(); sw.Start(); IggPathFinder.FindPaths(start, dest); sw.Stop(); return(sw.ElapsedTicks / 10000.0f); }
private void InitAPI() { TileHelp.Init(this); SectorHelp.Init(this); AStar.Init(this); FlowField.Init(this); JumpFlowFiled.Init(this); IggPathFinder.Init(this); MapChangeManger.Init(this); }
private void FindPath(MapTile dest, PathRun units) { if (dest != null && !dest.blocked && units.currentTile != null && !units.currentTile.blocked && dest != units.currentTile) { RoadResult ret = IggPathFinder.FindPaths(units.currentTile, dest); units.SetRoad(ret); if (m_ListPersion.Contains(units) == false) { m_ListPersion.Add(units); } } }