Bazaar developer reference

CvDllDealAI::DoHumanOfferDealToThisAI(ICvDeal1 *)

Defined in
CvDllDealAI.cpp, line 89
Class
CvDllDealAI
Hook name
CivHooks::CvDllDealAI_DoHumanOfferDealToThisAI

Hooks

static bool BeforeCvDllDealAI_DoHumanOfferDealToThisAI(CvDllDealAI* self, ICvDeal1* pDeal, int& result);static void AfterCvDllDealAI_DoHumanOfferDealToThisAI(CvDllDealAI* self, ICvDeal1* pDeal, int& result);static int ReplaceCvDllDealAI_DoHumanOfferDealToThisAI(int (*original)(CvDllDealAI*, ICvDeal1*), CvDllDealAI* self, ICvDeal1* pDeal);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoHumanOfferDealToThisAI::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDealAI_DoHumanOfferDealToThisAI);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoHumanOfferDealToThisAI::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDealAI_DoHumanOfferDealToThisAI);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoHumanOfferDealToThisAI::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDealAI_DoHumanOfferDealToThisAI);

Code

89int CvDllDealAI::DoHumanOfferDealToThisAI(ICvDeal1* pDeal)90{91	CvDeal* pkDeal = (NULL != pDeal)? static_cast<CvDllDeal*>(pDeal)->GetInstance() : NULL;92	return m_pDealAI->DoHumanOfferDealToThisAI(pkDeal);93}

Calls