Bazaar developer reference

CvDiplomacyAI::GetNumTimesCultureBombed(PlayerTypes) const

Defined in
CvDiplomacyAI.cpp, line 23130
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetNumTimesCultureBombed

Hooks

static bool BeforeCvDiplomacyAI_GetNumTimesCultureBombed(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static void AfterCvDiplomacyAI_GetNumTimesCultureBombed(const CvDiplomacyAI* self, PlayerTypes ePlayer, int& result);static int ReplaceCvDiplomacyAI_GetNumTimesCultureBombed(int (*original)(const CvDiplomacyAI*, PlayerTypes), const CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetNumTimesCultureBombed>(host, &BeforeCvDiplomacyAI_GetNumTimesCultureBombed);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetNumTimesCultureBombed>(host, &AfterCvDiplomacyAI_GetNumTimesCultureBombed);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetNumTimesCultureBombed>(host, &ReplaceCvDiplomacyAI_GetNumTimesCultureBombed);

Code

23129/// Culture Bombed?23130int CvDiplomacyAI::GetNumTimesCultureBombed(PlayerTypes ePlayer) const23131{23132	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");23133	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");2313423135	return m_paiNumTimesCultureBombed[ePlayer];23136}

Called by