Bazaar developer reference

CvDiplomacyAI::GetRecentAssistValue(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 8027
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetRecentAssistValue

Hooks

static bool BeforeCvDiplomacyAI_GetRecentAssistValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetRecentAssistValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetRecentAssistValue(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetRecentAssistValue>(host, &BeforeCvDiplomacyAI_GetRecentAssistValue);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetRecentAssistValue>(host, &AfterCvDiplomacyAI_GetRecentAssistValue);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetRecentAssistValue>(host, &ReplaceCvDiplomacyAI_GetRecentAssistValue);

Code

8026/// Return value of aid given8027int CvDiplomacyAI::GetRecentAssistValue(PlayerTypes ePlayer)8028{8029	return m_paiAssistValue[(int)ePlayer];8030}

Called by