Bazaar developer reference

CvHomelandAI::UnitProcessed(int)

Defined in
CvHomelandAI.cpp, line 5955
Class
CvHomelandAI
Hook name
CivHooks::CvHomelandAI_UnitProcessed

Hooks

static bool BeforeCvHomelandAI_UnitProcessed(CvHomelandAI* self, int iID);static void AfterCvHomelandAI_UnitProcessed(CvHomelandAI* self, int iID);static void ReplaceCvHomelandAI_UnitProcessed(void (*original)(CvHomelandAI*, int), CvHomelandAI* self, int iID);CivRegisterBefore<CivHooks::CvHomelandAI_UnitProcessed>(host, &BeforeCvHomelandAI_UnitProcessed);CivRegisterAfter<CivHooks::CvHomelandAI_UnitProcessed>(host, &AfterCvHomelandAI_UnitProcessed);CivRegisterReplace<CivHooks::CvHomelandAI_UnitProcessed>(host, &ReplaceCvHomelandAI_UnitProcessed);

Code

5954/// Remove a unit that we've allocated from list of units to move this turn5955void CvHomelandAI::UnitProcessed(int iID)5956{5957	CvUnit* pUnit;59585959	m_CurrentTurnUnits.remove(iID);5960	pUnit = m_pPlayer->getUnit(iID);59615962	CvAssert(pUnit);5963	if(!pUnit) return;59645965	pUnit->SetTurnProcessed(true);5966}

Calls

Called by