Bazaar developer reference

CvDiplomacyAI::IsPlayerIgnoredExpansionPromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22483
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerIgnoredExpansionPromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerIgnoredExpansionPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerIgnoredExpansionPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerIgnoredExpansionPromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerIgnoredExpansionPromise>(host, &BeforeCvDiplomacyAI_IsPlayerIgnoredExpansionPromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerIgnoredExpansionPromise>(host, &AfterCvDiplomacyAI_IsPlayerIgnoredExpansionPromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerIgnoredExpansionPromise>(host, &ReplaceCvDiplomacyAI_IsPlayerIgnoredExpansionPromise);

Code

22483bool CvDiplomacyAI::IsPlayerIgnoredExpansionPromise(PlayerTypes ePlayer)22484{22485	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22486	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.");22487	return m_pabPlayerIgnoredExpansionPromise[ePlayer];22488}

Called by