Bazaar developer reference

CvDiplomacyAI::IsPlayerIgnoredBorderPromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22592
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerIgnoredBorderPromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerIgnoredBorderPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerIgnoredBorderPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerIgnoredBorderPromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerIgnoredBorderPromise>(host, &BeforeCvDiplomacyAI_IsPlayerIgnoredBorderPromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerIgnoredBorderPromise>(host, &AfterCvDiplomacyAI_IsPlayerIgnoredBorderPromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerIgnoredBorderPromise>(host, &ReplaceCvDiplomacyAI_IsPlayerIgnoredBorderPromise);

Code

22592bool CvDiplomacyAI::IsPlayerIgnoredBorderPromise(PlayerTypes ePlayer)22593{22594	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22595	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.");22596	return m_pabPlayerIgnoredBorderPromise[ePlayer];22597}

Called by