Bazaar developer reference

CvDiplomacyAI::ResetSentAttackProtectedMinorTaunts(PlayerTypes)

Defined in
CvDiplomacyAI.cpp, line 24481
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ResetSentAttackProtectedMinorTaunts

Hooks

static bool BeforeCvDiplomacyAI_ResetSentAttackProtectedMinorTaunts(CvDiplomacyAI* self, PlayerTypes eMinor);static void AfterCvDiplomacyAI_ResetSentAttackProtectedMinorTaunts(CvDiplomacyAI* self, PlayerTypes eMinor);static void ReplaceCvDiplomacyAI_ResetSentAttackProtectedMinorTaunts(void (*original)(CvDiplomacyAI*, PlayerTypes), CvDiplomacyAI* self, PlayerTypes eMinor);CivRegisterBefore<CivHooks::CvDiplomacyAI_ResetSentAttackProtectedMinorTaunts>(host, &BeforeCvDiplomacyAI_ResetSentAttackProtectedMinorTaunts);CivRegisterAfter<CivHooks::CvDiplomacyAI_ResetSentAttackProtectedMinorTaunts>(host, &AfterCvDiplomacyAI_ResetSentAttackProtectedMinorTaunts);CivRegisterReplace<CivHooks::CvDiplomacyAI_ResetSentAttackProtectedMinorTaunts>(host, &ReplaceCvDiplomacyAI_ResetSentAttackProtectedMinorTaunts);

Code

24480/// Reset whether we have approached another civ about attacking a protected minor (ie. once peace is made with the minor)24481void CvDiplomacyAI::ResetSentAttackProtectedMinorTaunts(PlayerTypes eMinor)24482{24483	CvAssertMsg(eMinor >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");24484	CvAssertMsg(eMinor < MAX_CIV_PLAYERS, "DIPLOMACY_AI: Invalid Player Index.  Please send Anton your save file and version.");24485	for(int iI = 0; iI < MAX_CIV_PLAYERS; iI++)24486	{24487		SetSentAttackProtectedMinorTaunt((PlayerTypes)iI, eMinor, false);24488	}24489}

Calls

Called by