Bazaar developer reference

CvDiplomacyAI::GetCommonFoeValue(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 7999
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetCommonFoeValue

Hooks

static bool BeforeCvDiplomacyAI_GetCommonFoeValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetCommonFoeValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetCommonFoeValue(int (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetCommonFoeValue>(host, &BeforeCvDiplomacyAI_GetCommonFoeValue);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetCommonFoeValue>(host, &AfterCvDiplomacyAI_GetCommonFoeValue);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetCommonFoeValue>(host, &ReplaceCvDiplomacyAI_GetCommonFoeValue);

Code

7998/// Return value of combat damage inflicted on a common enemy7999int CvDiplomacyAI::GetCommonFoeValue(PlayerTypes ePlayer)8000{8001	return m_paiCommonFoeValue[(int)ePlayer];8002}

Called by