CvHomelandAI::ClearCurrentMoveUnits()
- Defined in
- CvHomelandAI.cpp, line 6280
- Class
- CvHomelandAI
- Hook name
CivHooks::CvHomelandAI_ClearCurrentMoveUnits
Hooks
static bool BeforeCvHomelandAI_ClearCurrentMoveUnits(CvHomelandAI* self);static void AfterCvHomelandAI_ClearCurrentMoveUnits(CvHomelandAI* self);static void ReplaceCvHomelandAI_ClearCurrentMoveUnits(void (*original)(CvHomelandAI*), CvHomelandAI* self);CivRegisterBefore<CivHooks::CvHomelandAI_ClearCurrentMoveUnits>(host, &BeforeCvHomelandAI_ClearCurrentMoveUnits);CivRegisterAfter<CivHooks::CvHomelandAI_ClearCurrentMoveUnits>(host, &AfterCvHomelandAI_ClearCurrentMoveUnits);CivRegisterReplace<CivHooks::CvHomelandAI_ClearCurrentMoveUnits>(host, &ReplaceCvHomelandAI_ClearCurrentMoveUnits);
Code
6280void CvHomelandAI::ClearCurrentMoveUnits()6281{6282 m_CurrentMoveUnits.clear();6283 m_CurrentBestMoveUnit = NULL;6284 m_iCurrentBestMoveUnitTurns = MAX_INT;6285}
Calls
BaseVector::clear
Called by
- CvHomelandAI::FindUnitsForThisMove(AIHomelandMove, bool)
- CvHomelandAI::FindWorkersInSameArea(CvPlot *, BuildTypes)
- CvHomelandAI::PlotAdmiralMoves()
- CvHomelandAI::PlotAircraftMoves()
- CvHomelandAI::PlotArchaeologistMoves()
- CvHomelandAI::PlotArtistMoves()
- CvHomelandAI::PlotEngineerMoves()
- CvHomelandAI::PlotExplorerMoves()
- CvHomelandAI::PlotExplorerSeaMoves()
- CvHomelandAI::PlotFirstTurnSettlerMoves()
- CvHomelandAI::PlotGeneralMoves()
- CvHomelandAI::PlotHealMoves()
- CvHomelandAI::PlotInquisitorMoves()
- CvHomelandAI::PlotMerchantMoves()
- CvHomelandAI::PlotMissionaryMoves()
- CvHomelandAI::PlotMovesToSafety()
- CvHomelandAI::PlotMusicianMoves()
- CvHomelandAI::PlotPatrolMoves()
- CvHomelandAI::PlotProphetMoves()
- CvHomelandAI::PlotSSPartAdds()
- CvHomelandAI::PlotSSPartMoves()
- CvHomelandAI::PlotScientistMoves()
- CvHomelandAI::PlotTradeUnitMoves()
- CvHomelandAI::PlotTreasureMoves()
- CvHomelandAI::PlotUpgradeMoves()
- CvHomelandAI::PlotWorkerMoves(bool)
- CvHomelandAI::PlotWorkerSeaMoves()
- CvHomelandAI::PlotWriterMoves()