Bazaar developer reference

CvDiplomacyAI::IsPlayerIgnoredAttackCityStatePromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22667
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise>(host, &BeforeCvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise>(host, &AfterCvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise>(host, &ReplaceCvDiplomacyAI_IsPlayerIgnoredAttackCityStatePromise);

Code

22667bool CvDiplomacyAI::IsPlayerIgnoredAttackCityStatePromise(PlayerTypes ePlayer)22668{22669	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22670	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.");22671	return m_pabPlayerIgnoredAttackCityStatePromise[ePlayer];22672}

Called by