Bazaar developer reference

CvDiplomacyAI::SetDoFCounter(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 21288
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_SetDoFCounter

Hooks

static bool BeforeCvDiplomacyAI_SetDoFCounter(CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);static void AfterCvDiplomacyAI_SetDoFCounter(CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);static void ReplaceCvDiplomacyAI_SetDoFCounter(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iValue);CivRegisterBefore<CivHooks::CvDiplomacyAI_SetDoFCounter>(host, &BeforeCvDiplomacyAI_SetDoFCounter);CivRegisterAfter<CivHooks::CvDiplomacyAI_SetDoFCounter>(host, &AfterCvDiplomacyAI_SetDoFCounter);CivRegisterReplace<CivHooks::CvDiplomacyAI_SetDoFCounter>(host, &ReplaceCvDiplomacyAI_SetDoFCounter);

Code

21288void CvDiplomacyAI::SetDoFCounter(PlayerTypes ePlayer, int iValue)21289{21290	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");21291	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.");21292	m_paiDoFCounter[ePlayer] = iValue;21293}

Called by