Bazaar developer reference

CvDiplomacyAI::SetPlayerIgnoredBullyCityStatePromise(PlayerTypes, bool)

Defined in
CvDiplomacyAI.cpp, line 22719
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise

Hooks

static bool BeforeCvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);static void AfterCvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);static void ReplaceCvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise(void (*original)(CvDiplomacyAI*, PlayerTypes, bool), CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise>(host, &BeforeCvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise>(host, &AfterCvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise>(host, &ReplaceCvDiplomacyAI_SetPlayerIgnoredBullyCityStatePromise);

Code

22719void CvDiplomacyAI::SetPlayerIgnoredBullyCityStatePromise(PlayerTypes ePlayer, bool bValue)22720{22721	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");22722	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");22723	m_pabPlayerIgnoredBullyCityStatePromise[ePlayer] = bValue;22724}

Called by