CvHomelandAI::Reset()
- Defined in
- CvHomelandAI.cpp, line 70
- Class
- CvHomelandAI
- Hook name
CivHooks::CvHomelandAI_Reset
Hooks
static bool BeforeCvHomelandAI_Reset(CvHomelandAI* self);static void AfterCvHomelandAI_Reset(CvHomelandAI* self);static void ReplaceCvHomelandAI_Reset(void (*original)(CvHomelandAI*), CvHomelandAI* self);CivRegisterBefore<CivHooks::CvHomelandAI_Reset>(host, &BeforeCvHomelandAI_Reset);CivRegisterAfter<CivHooks::CvHomelandAI_Reset>(host, &AfterCvHomelandAI_Reset);CivRegisterReplace<CivHooks::CvHomelandAI_Reset>(host, &ReplaceCvHomelandAI_Reset);
Code
69/// Reset variables70void CvHomelandAI::Reset()71{72 m_MovePriorityTurn = -1;73 m_CurrentBestMoveUnit = NULL;74 m_CurrentBestMoveHighPriorityUnit = NULL;75 m_iCurrentBestMoveUnitTurns = MAX_INT;76 m_iCurrentBestMoveHighPriorityUnitTurns = MAX_INT;77}