Bazaar developer reference

CvDiplomacyAI::ChangeDemandCounter(PlayerTypes, int)

Defined in
CvDiplomacyAI.cpp, line 20762
Class
CvDiplomacyAI
Hook name
CivHooks::CvDiplomacyAI_ChangeDemandCounter

Hooks

static bool BeforeCvDiplomacyAI_ChangeDemandCounter(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void AfterCvDiplomacyAI_ChangeDemandCounter(CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);static void ReplaceCvDiplomacyAI_ChangeDemandCounter(void (*original)(CvDiplomacyAI*, PlayerTypes, int), CvDiplomacyAI* self, PlayerTypes ePlayer, int iChange);CivRegisterBefore<CivHooks::CvDiplomacyAI_ChangeDemandCounter>(host, &BeforeCvDiplomacyAI_ChangeDemandCounter);CivRegisterAfter<CivHooks::CvDiplomacyAI_ChangeDemandCounter>(host, &AfterCvDiplomacyAI_ChangeDemandCounter);CivRegisterReplace<CivHooks::CvDiplomacyAI_ChangeDemandCounter>(host, &ReplaceCvDiplomacyAI_ChangeDemandCounter);

Code

20762void CvDiplomacyAI::ChangeDemandCounter(PlayerTypes ePlayer, int iChange)20763{20764	SetDemandCounter(ePlayer, GetDemandCounter(ePlayer) + iChange);20765}

Calls

Called by