CvGlobals::getPathFinder()
- Defined in
- CvGlobals.cpp, line 2373
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getPathFinder
Hooks
static bool BeforeCvGlobals_getPathFinder(CvGlobals* self, CvTwoLayerPathFinder*& result);static void AfterCvGlobals_getPathFinder(CvGlobals* self, CvTwoLayerPathFinder*& result);static CvTwoLayerPathFinder& ReplaceCvGlobals_getPathFinder(CvTwoLayerPathFinder& (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getPathFinder>(host, &BeforeCvGlobals_getPathFinder);CivRegisterAfter<CivHooks::CvGlobals_getPathFinder>(host, &AfterCvGlobals_getPathFinder);CivRegisterReplace<CivHooks::CvGlobals_getPathFinder>(host, &ReplaceCvGlobals_getPathFinder);
Code
2373CvTwoLayerPathFinder& CvGlobals::getPathFinder()2374{2375 return *m_pathFinder;2376}
Called by
- CvEconomicAI::AssignExplorersToHuts()
- CvEconomicAI::AssignHutsToExplorers()
- CvGame::updateMoves()
- CvHomelandAI::ExecuteExplorerMoves()
- CvHomelandAI::ExecuteSpecialExploreMove(CvUnit *, CvPlot *)
- CvHomelandAI::IsAnyValidExploreMoves(const CvUnit *) const
- CvMap::setup()
- CvPlayer::setTurnActive(bool, bool)
- CvPlayerAI::AI_unitUpdate()
- CvUnit::GeneratePath(const CvPlot *, int, bool, int *) const
- CvUnit::IsHasNoValidMove() const
- CvUnit::ResetPath()
- CvUnit::setMoves(int)