Bazaar developer reference

CvDiplomacyAI::SetPlayerIgnoredExpansionPromise(PlayerTypes, bool)

Defined in
CvDiplomacyAI.cpp, line 22490
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetPlayerIgnoredExpansionPromise

Hooks

static bool BeforeCvDiplomacyAI_SetPlayerIgnoredExpansionPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);static void AfterCvDiplomacyAI_SetPlayerIgnoredExpansionPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);static void ReplaceCvDiplomacyAI_SetPlayerIgnoredExpansionPromise(void (*original)(CvDiplomacyAI*, PlayerTypes, bool), CvDiplomacyAI* self, PlayerTypes ePlayer, bool bValue);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetPlayerIgnoredExpansionPromise>(host, &BeforeCvDiplomacyAI_SetPlayerIgnoredExpansionPromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetPlayerIgnoredExpansionPromise>(host, &AfterCvDiplomacyAI_SetPlayerIgnoredExpansionPromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetPlayerIgnoredExpansionPromise>(host, &ReplaceCvDiplomacyAI_SetPlayerIgnoredExpansionPromise);

Code

22490void CvDiplomacyAI::SetPlayerIgnoredExpansionPromise(PlayerTypes ePlayer, bool bValue)22491{22492	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22493	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.");22494	m_pabPlayerIgnoredExpansionPromise[ePlayer] = bValue;22495}

Called by