Bazaar developer reference

CvDiplomacyAI::GetDeclarationLogMustHaveMetPlayerForIndex(int)

Defined in
CvDiplomacyAI.cpp, line 25141
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex

Hooks

static bool BeforeCvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex(CvDiplomacyAI* self, int iIndex, PlayerTypes& result);static void AfterCvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex(CvDiplomacyAI* self, int iIndex, PlayerTypes& result);static PlayerTypes ReplaceCvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex(PlayerTypes (*original)(CvDiplomacyAI*, int), CvDiplomacyAI* self, int iIndex);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex>(host, &BeforeCvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex>(host, &AfterCvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex>(host, &ReplaceCvDiplomacyAI_GetDeclarationLogMustHaveMetPlayerForIndex);

Code

25140/// Does whoever is listening to our declaration have to have met someone?25141PlayerTypes CvDiplomacyAI::GetDeclarationLogMustHaveMetPlayerForIndex(int iIndex)25142{25143	CvAssertMsg(iIndex >= 0, "DIPLOMACY_AI: Invalid DiploLogStatement Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");25144	CvAssertMsg(iIndex < MAX_DIPLO_LOG_STATEMENTS, "DIPLOMACY_AI: Invalid DiploLogStatement Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");25145	return m_paDeclarationsLog[iIndex].m_eMustHaveMetPlayer;25146}

Called by