Bazaar developer reference

CvDiplomacyAI::IsDeclarationLogForIndexActive(int)

Defined in
CvDiplomacyAI.cpp, line 25149
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_IsDeclarationLogForIndexActive

Hooks

static bool BeforeCvDiplomacyAI_IsDeclarationLogForIndexActive(CvDiplomacyAI* self, int iIndex, bool& result);static void AfterCvDiplomacyAI_IsDeclarationLogForIndexActive(CvDiplomacyAI* self, int iIndex, bool& result);static bool ReplaceCvDiplomacyAI_IsDeclarationLogForIndexActive(bool (*original)(CvDiplomacyAI*, int), CvDiplomacyAI* self, int iIndex);CivRegisterBefore<CivHooks::CvDiplomacyAI_IsDeclarationLogForIndexActive>(host, &BeforeCvDiplomacyAI_IsDeclarationLogForIndexActive);CivRegisterAfter<CivHooks::CvDiplomacyAI_IsDeclarationLogForIndexActive>(host, &AfterCvDiplomacyAI_IsDeclarationLogForIndexActive);CivRegisterReplace<CivHooks::CvDiplomacyAI_IsDeclarationLogForIndexActive>(host, &ReplaceCvDiplomacyAI_IsDeclarationLogForIndexActive);

Code

25148/// Returns the DeclarationLog iData2 number associated with the index passed in25149bool CvDiplomacyAI::IsDeclarationLogForIndexActive(int iIndex)25150{25151	CvAssertMsg(iIndex >= 0, "DIPLOMACY_AI: Invalid DiploLogStatement Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");25152	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.");25153	return m_paDeclarationsLog[iIndex].m_bActive;25154}

Called by