Bazaar developer reference

CvDiplomacyAI::IsPlayerBrokenAttackCityStatePromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22648
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise>(host, &BeforeCvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise>(host, &AfterCvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise>(host, &ReplaceCvDiplomacyAI_IsPlayerBrokenAttackCityStatePromise);

Code

22648bool CvDiplomacyAI::IsPlayerBrokenAttackCityStatePromise(PlayerTypes ePlayer)22649{22650	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22651	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.");22652	return m_pabPlayerBrokenAttackCityStatePromise[ePlayer];22653}

Called by