Bazaar developer reference

CvDiplomacyAI::HasSentAttackProtectedMinorTaunt(PlayerTypes, PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 24461
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_HasSentAttackProtectedMinorTaunt

Hooks

static bool BeforeCvDiplomacyAI_HasSentAttackProtectedMinorTaunt(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eMinor, bool& result);static void AfterCvDiplomacyAI_HasSentAttackProtectedMinorTaunt(CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eMinor, bool& result);static bool ReplaceCvDiplomacyAI_HasSentAttackProtectedMinorTaunt(bool (*original)(CvDiplomacyAI*, PlayerTypes, PlayerTypes), CvDiplomacyAI* self, PlayerTypes ePlayer, PlayerTypes eMinor);CivRegisterBefore<CivHooks::CvDiplomacyAI_HasSentAttackProtectedMinorTaunt>(host, &BeforeCvDiplomacyAI_HasSentAttackProtectedMinorTaunt);CivRegisterAfter<CivHooks::CvDiplomacyAI_HasSentAttackProtectedMinorTaunt>(host, &AfterCvDiplomacyAI_HasSentAttackProtectedMinorTaunt);CivRegisterReplace<CivHooks::CvDiplomacyAI_HasSentAttackProtectedMinorTaunt>(host, &ReplaceCvDiplomacyAI_HasSentAttackProtectedMinorTaunt);

Code

24460/// Have we approached another civ about attacking their protected minor?24461bool CvDiplomacyAI::HasSentAttackProtectedMinorTaunt(PlayerTypes ePlayer, PlayerTypes eMinor)24462{24463	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");24464	CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");24465	CvAssertMsg(eMinor >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");24466	CvAssertMsg(eMinor < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");24467	return m_ppaabSentAttackMessageToMinorCivProtector[ePlayer][eMinor];24468}

Called by