Bazaar developer reference

CvMinorCivAI::GetAlliesThreshold() const

Defined in
CvMinorCivAI.cpp, line 6930
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_GetAlliesThreshold

Hooks

static bool BeforeCvMinorCivAI_GetAlliesThreshold(const CvMinorCivAI* self, int& result);static void AfterCvMinorCivAI_GetAlliesThreshold(const CvMinorCivAI* self, int& result);static int ReplaceCvMinorCivAI_GetAlliesThreshold(int (*original)(const CvMinorCivAI*), const CvMinorCivAI* self);CivRegisterBefore<CivHooks::CvMinorCivAI_GetAlliesThreshold>(host, &BeforeCvMinorCivAI_GetAlliesThreshold);CivRegisterAfter<CivHooks::CvMinorCivAI_GetAlliesThreshold>(host, &AfterCvMinorCivAI_GetAlliesThreshold);CivRegisterReplace<CivHooks::CvMinorCivAI_GetAlliesThreshold>(host, &ReplaceCvMinorCivAI_GetAlliesThreshold);

Code

6929/// What is the allies threshold?6930int CvMinorCivAI::GetAlliesThreshold() const6931{6932	return /*60*/ GC.getFRIENDSHIP_THRESHOLD_ALLIES();6933}

Calls

Called by