Bazaar developer reference

CvDiplomacyAI::GetDiploLogStatementTypeForIndex(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 24515
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_GetDiploLogStatementTypeForIndex

Hooks

static bool BeforeCvDiplomacyAI_GetDiploLogStatementTypeForIndex(CvDiplomacyAI* self, PlayerTypes ePlayer, int iIndex, DiploStatementTypes& result);static void AfterCvDiplomacyAI_GetDiploLogStatementTypeForIndex(CvDiplomacyAI* self, PlayerTypes ePlayer, int iIndex, DiploStatementTypes& result);static DiploStatementTypes ReplaceCvDiplomacyAI_GetDiploLogStatementTypeForIndex(DiploStatementTypes (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iIndex);CivRegisterBefore<CivHooks::CvDiplomacyAI_GetDiploLogStatementTypeForIndex>(host, &BeforeCvDiplomacyAI_GetDiploLogStatementTypeForIndex);CivRegisterAfter<CivHooks::CvDiplomacyAI_GetDiploLogStatementTypeForIndex>(host, &AfterCvDiplomacyAI_GetDiploLogStatementTypeForIndex);CivRegisterReplace<CivHooks::CvDiplomacyAI_GetDiploLogStatementTypeForIndex>(host, &ReplaceCvDiplomacyAI_GetDiploLogStatementTypeForIndex);

Code

24514/// Returns the DiploLogStatementType associated with the index passed in24515DiploStatementTypes CvDiplomacyAI::GetDiploLogStatementTypeForIndex(PlayerTypes ePlayer, int iIndex)24516{24517	CvAssertMsg(ePlayer >= 0, "DIPLOMACY_AI: Invalid Player Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");24518	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.");24519	CvAssertMsg(iIndex >= 0, "DIPLOMACY_AI: Invalid DiploLogStatement Index.  Please send Jon this with your last 5 autosaves and what changelist # you're playing.");24520	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.");2452124522	return m_ppaDiploStatementsLog[ePlayer][iIndex].m_eDiploLogStatement;24523}

Called by