Bazaar developer reference

CvDiplomacyAI::SetIgnoredExpansionPromiseValue(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 7859
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetIgnoredExpansionPromiseValue

Hooks

static bool BeforeCvDiplomacyAI_SetIgnoredExpansionPromiseValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);static void AfterCvDiplomacyAI_SetIgnoredExpansionPromiseValue(CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);static void ReplaceCvDiplomacyAI_SetIgnoredExpansionPromiseValue(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetIgnoredExpansionPromiseValue>(host, &BeforeCvDiplomacyAI_SetIgnoredExpansionPromiseValue);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetIgnoredExpansionPromiseValue>(host, &AfterCvDiplomacyAI_SetIgnoredExpansionPromiseValue);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetIgnoredExpansionPromiseValue>(host, &ReplaceCvDiplomacyAI_SetIgnoredExpansionPromiseValue);

Code

7858// Setting the value of the expansion ignored promise7859void CvDiplomacyAI::SetIgnoredExpansionPromiseValue(PlayerTypes ePlayer, int iValue)7860{7861	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");7862	CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis this with your last 5 autosaves and what changelist # you're playing.");7863	m_paiIgnoredExpansionPromiseValue[(int)ePlayer] = iValue;7864}

Called by