Bazaar developer reference

CvDiplomacyAI::GetNumTimesIntrigueSharedBy(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 23253
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetNumTimesIntrigueSharedBy

Hooks

static bool BeforeCvDiplomacyAI_GetNumTimesIntrigueSharedBy(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetNumTimesIntrigueSharedBy(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetNumTimesIntrigueSharedBy(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetNumTimesIntrigueSharedBy>(host, &BeforeCvDiplomacyAI_GetNumTimesIntrigueSharedBy);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetNumTimesIntrigueSharedBy>(host, &AfterCvDiplomacyAI_GetNumTimesIntrigueSharedBy);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetNumTimesIntrigueSharedBy>(host, &ReplaceCvDiplomacyAI_GetNumTimesIntrigueSharedBy);

Code

23252/// Intrigue was shared by the player?23253int CvDiplomacyAI::GetNumTimesIntrigueSharedBy(PlayerTypes ePlayer) const23254{23255	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");23256	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");2325723258	return m_paiNumTimesIntrigueSharedBy[ePlayer];23259}

Called by