Bazaar developer reference

CvDiplomacyAI::IsPlayerBrokenBorderPromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22573
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerBrokenBorderPromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerBrokenBorderPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerBrokenBorderPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerBrokenBorderPromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerBrokenBorderPromise>(host, &BeforeCvDiplomacyAI_IsPlayerBrokenBorderPromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerBrokenBorderPromise>(host, &AfterCvDiplomacyAI_IsPlayerBrokenBorderPromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerBrokenBorderPromise>(host, &ReplaceCvDiplomacyAI_IsPlayerBrokenBorderPromise);

Code

22573bool CvDiplomacyAI::IsPlayerBrokenBorderPromise(PlayerTypes ePlayer)22574{22575	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22576	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.");22577	return m_pabPlayerBrokenBorderPromise[ePlayer];22578}

Called by