Bazaar developer reference

CvMinorCivAI::GetAlly() const

Defined in
CvMinorCivAI.cpp, line 6508
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_GetAlly

Hooks

static bool BeforeCvMinorCivAI_GetAlly(const CvMinorCivAI* self, PlayerTypes& result);static void AfterCvMinorCivAI_GetAlly(const CvMinorCivAI* self, PlayerTypes& result);static PlayerTypes ReplaceCvMinorCivAI_GetAlly(PlayerTypes (*original)(const CvMinorCivAI*), const CvMinorCivAI* self);CivRegisterBefore<CivHooks::CvMinorCivAI_GetAlly>(host, &BeforeCvMinorCivAI_GetAlly);CivRegisterAfter<CivHooks::CvMinorCivAI_GetAlly>(host, &AfterCvMinorCivAI_GetAlly);CivRegisterReplace<CivHooks::CvMinorCivAI_GetAlly>(host, &ReplaceCvMinorCivAI_GetAlly);

Code

6507/// Who has the best relations with us right now?6508PlayerTypes CvMinorCivAI::GetAlly() const6509{6510	return m_eAlly;6511}

Called by

42 functions in 15 files