Bazaar developer reference

CvDealAI::SetCachedValueOfPeaceWithHuman(int)

Defined in
CvDealAI.cpp, line 3654
Class
CvDealAI
Hook name
CivHooks::CvDealAI_SetCachedValueOfPeaceWithHuman

Hooks

static bool BeforeCvDealAI_SetCachedValueOfPeaceWithHuman(CvDealAI* self, int iValue);static void AfterCvDealAI_SetCachedValueOfPeaceWithHuman(CvDealAI* self, int iValue);static void ReplaceCvDealAI_SetCachedValueOfPeaceWithHuman(void (*original)(CvDealAI*, int), CvDealAI* self, int iValue);CivRegisterBefore<CivHooks::CvDealAI_SetCachedValueOfPeaceWithHuman>(host, &BeforeCvDealAI_SetCachedValueOfPeaceWithHuman);CivRegisterAfter<CivHooks::CvDealAI_SetCachedValueOfPeaceWithHuman>(host, &AfterCvDealAI_SetCachedValueOfPeaceWithHuman);CivRegisterReplace<CivHooks::CvDealAI_SetCachedValueOfPeaceWithHuman>(host, &ReplaceCvDealAI_SetCachedValueOfPeaceWithHuman);

Code

3653/// Sets what are we willing to give/receive for peace with the active human player3654void CvDealAI::SetCachedValueOfPeaceWithHuman(int iValue)3655{3656	m_iCachedValueOfPeaceWithHuman = iValue;		// NOT SERIALIZED3657}

Called by