Bazaar developer reference

CvDiplomacyAI::IsPlayerBrokenNoConvertPromise(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 22797
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsPlayerBrokenNoConvertPromise

Hooks

static bool BeforeCvDiplomacyAI_IsPlayerBrokenNoConvertPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvDiplomacyAI_IsPlayerBrokenNoConvertPromise(CvDiplomacyAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvDiplomacyAI_IsPlayerBrokenNoConvertPromise(bool (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsPlayerBrokenNoConvertPromise>(host, &BeforeCvDiplomacyAI_IsPlayerBrokenNoConvertPromise);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsPlayerBrokenNoConvertPromise>(host, &AfterCvDiplomacyAI_IsPlayerBrokenNoConvertPromise);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsPlayerBrokenNoConvertPromise>(host, &ReplaceCvDiplomacyAI_IsPlayerBrokenNoConvertPromise);

Code

22797bool CvDiplomacyAI::IsPlayerBrokenNoConvertPromise(PlayerTypes ePlayer)22798{22799	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis your save file and version.");22800	CvAssertMsg(ePlayer < MAX_MAJOR_CIVS, "DIPLOMACY_AI: Invalid Player Index.  Please send slewis your save file and version.");22801	return m_pabPlayerBrokenNoConvertPromise[ePlayer];22802}

Called by