Bazaar developer reference

CvDiplomacyAI::ChangeDeclarationLogTurnForIndex(int, int)

Defined in
CvDiplomacyAI.cpp, line 25197
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeDeclarationLogTurnForIndex

Hooks

static bool BeforeCvDiplomacyAI_ChangeDeclarationLogTurnForIndex(CvDiplomacyAI* self, int iIndex, int iChange);static void AfterCvDiplomacyAI_ChangeDeclarationLogTurnForIndex(CvDiplomacyAI* self, int iIndex, int iChange);static void ReplaceCvDiplomacyAI_ChangeDeclarationLogTurnForIndex(void (*original)(CvDiplomacyAI*, int, int), CvDiplomacyAI* self, int iIndex, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeDeclarationLogTurnForIndex>(host, &BeforeCvDiplomacyAI_ChangeDeclarationLogTurnForIndex);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeDeclarationLogTurnForIndex>(host, &AfterCvDiplomacyAI_ChangeDeclarationLogTurnForIndex);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeDeclarationLogTurnForIndex>(host, &ReplaceCvDiplomacyAI_ChangeDeclarationLogTurnForIndex);

Code

25196/// Changes the DeclarationLog turn number associated with the index passed in25197void CvDiplomacyAI::ChangeDeclarationLogTurnForIndex(int iIndex, int iChange)25198{25199	SetDeclarationLogTurnForIndex(iIndex, GetDeclarationLogTurnForIndex(iIndex) + iChange);25200}

Calls

Called by