Bazaar developer reference

CvDealAI::GetCachedValueOfPeaceWithHuman()

Defined in
CvDealAI.cpp, line 3648
Class
CvDealAI
Hook name
CivHooks::CvDealAI_GetCachedValueOfPeaceWithHuman

Hooks

static bool BeforeCvDealAI_GetCachedValueOfPeaceWithHuman(CvDealAI* self, int& result);static void AfterCvDealAI_GetCachedValueOfPeaceWithHuman(CvDealAI* self, int& result);static int ReplaceCvDealAI_GetCachedValueOfPeaceWithHuman(int (*original)(CvDealAI*), CvDealAI* self);CivRegisterBefore<CivHooks::CvDealAI_GetCachedValueOfPeaceWithHuman>(host, &BeforeCvDealAI_GetCachedValueOfPeaceWithHuman);CivRegisterAfter<CivHooks::CvDealAI_GetCachedValueOfPeaceWithHuman>(host, &AfterCvDealAI_GetCachedValueOfPeaceWithHuman);CivRegisterReplace<CivHooks::CvDealAI_GetCachedValueOfPeaceWithHuman>(host, &ReplaceCvDealAI_GetCachedValueOfPeaceWithHuman);

Code

3647/// What are we willing to give/receive for peace with the active human player?3648int CvDealAI::GetCachedValueOfPeaceWithHuman()3649{3650	return m_iCachedValueOfPeaceWithHuman;		// NOT SERIALIZED3651}

Called by