Bazaar developer reference

CvDiplomacyAI::ChangeDiploLogStatementTurnForIndex(PlayerTypes, int, int)

Defined in
CvDiplomacyAI.cpp, line 24548
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeDiploLogStatementTurnForIndex

Hooks

static bool BeforeCvDiplomacyAI_ChangeDiploLogStatementTurnForIndex(CvDiplomacyAI* self, PlayerTypes ePlayer, int iIndex, int iChange);static void AfterCvDiplomacyAI_ChangeDiploLogStatementTurnForIndex(CvDiplomacyAI* self, PlayerTypes ePlayer, int iIndex, int iChange);static void ReplaceCvDiplomacyAI_ChangeDiploLogStatementTurnForIndex(void (*original)(CvDiplomacyAI*, PlayerTypes, int, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iIndex, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeDiploLogStatementTurnForIndex>(host, &BeforeCvDiplomacyAI_ChangeDiploLogStatementTurnForIndex);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeDiploLogStatementTurnForIndex>(host, &AfterCvDiplomacyAI_ChangeDiploLogStatementTurnForIndex);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeDiploLogStatementTurnForIndex>(host, &ReplaceCvDiplomacyAI_ChangeDiploLogStatementTurnForIndex);

Code

24547/// Changes the DiploLogStatement turn number associated with the index passed in24548void CvDiplomacyAI::ChangeDiploLogStatementTurnForIndex(PlayerTypes ePlayer, int iIndex, int iChange)24549{24550	SetDiploLogStatementTurnForIndex(ePlayer, iIndex, GetDiploLogStatementTurnForIndex(ePlayer, iIndex) + iChange);24551}

Calls

Called by