Bazaar developer reference

CvDiplomacyAI::IsPlayerIgnoredMilitaryPromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22385
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerIgnoredMilitaryPromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerIgnoredMilitaryPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerIgnoredMilitaryPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerIgnoredMilitaryPromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerIgnoredMilitaryPromise>(host, &BeforeCvDiplomacyAI_IsPlayerIgnoredMilitaryPromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerIgnoredMilitaryPromise>(host, &AfterCvDiplomacyAI_IsPlayerIgnoredMilitaryPromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerIgnoredMilitaryPromise>(host, &ReplaceCvDiplomacyAI_IsPlayerIgnoredMilitaryPromise);

Code

22385bool CvDiplomacyAI::IsPlayerIgnoredMilitaryPromise(PlayerTypes ePlayer)22386{22387	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");22388	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.");22389	return m_pabPlayerIgnoredMilitaryPromise[ePlayer];22390}

Called by