Bazaar developer reference

CvDiplomacyAI::GetDeclarationLogTypeForIndex(int)

Defined in
CvDiplomacyAI.cpp, line 25117
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDeclarationLogTypeForIndex

Hooks

static bool BeforeCvDiplomacyAI_GetDeclarationLogTypeForIndex(CvDiplomacyAI* self, int iIndex, PublicDeclarationTypes& result);static void AfterCvDiplomacyAI_GetDeclarationLogTypeForIndex(CvDiplomacyAI* self, int iIndex, PublicDeclarationTypes& result);static PublicDeclarationTypes ReplaceCvDiplomacyAI_GetDeclarationLogTypeForIndex(PublicDeclarationTypes (*original)(CvDiplomacyAI*, int), CvDiplomacyAI* self, int iIndex);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDeclarationLogTypeForIndex>(host, &BeforeCvDiplomacyAI_GetDeclarationLogTypeForIndex);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDeclarationLogTypeForIndex>(host, &AfterCvDiplomacyAI_GetDeclarationLogTypeForIndex);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDeclarationLogTypeForIndex>(host, &ReplaceCvDiplomacyAI_GetDeclarationLogTypeForIndex);

Code

25116/// Returns the DeclarationLogType associated with the index passed in25117PublicDeclarationTypes CvDiplomacyAI::GetDeclarationLogTypeForIndex(int iIndex)25118{25119	CvAssertMsg(iIndex >= 0, "DIPLOMACY_AI: Invalid DiploLogStatement Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");25120	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.");25121	return m_paDeclarationsLog[iIndex].m_eDeclaration;25122}

Called by