Bazaar developer reference

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

Called by