1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

AI: replace SectorMap with new PathfinderManager

This commit is contained in:
Andrii Danylchenko
2018-08-12 14:31:31 +03:00
parent eb17313f7f
commit 49c872e4ec
28 changed files with 1449 additions and 418 deletions

View File

@@ -919,6 +919,11 @@ void CGameInfoCallback::getVisibleTilesInRange(std::unordered_set<int3, ShashInt
gs->getTilesInRange(tiles, pos, radious, getLocalPlayer(), -1, distanceFormula);
}
void CGameInfoCallback::calculatePaths(std::shared_ptr<CPathfinderConfig> config, const CGHeroInstance * hero)
{
gs->calculatePaths(config, hero);
}
const CArtifactInstance * CGameInfoCallback::getArtInstance( ArtifactInstanceID aid ) const
{
return gs->map->artInstances[aid.num];