Bazaar developer reference

CvDllDealAI::DoHumanDemand(ICvDeal1 *)

Defined in
CvDllDealAI.cpp, line 102
Class
CvDllDealAI
Hook name
CivHooks::CvDllDealAI_DoHumanDemand

Hooks

static bool BeforeCvDllDealAI_DoHumanDemand(CvDllDealAI* self, ICvDeal1* pDeal, int& result);static void AfterCvDllDealAI_DoHumanDemand(CvDllDealAI* self, ICvDeal1* pDeal, int& result);static int ReplaceCvDllDealAI_DoHumanDemand(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_DoHumanDemand::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDealAI_DoHumanDemand);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoHumanDemand::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDealAI_DoHumanDemand);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoHumanDemand::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDealAI_DoHumanDemand);

Code

102int CvDllDealAI::DoHumanDemand(ICvDeal1* pDeal)103{104	CvDeal* pkDeal = (NULL != pDeal)? static_cast<CvDllDeal*>(pDeal)->GetInstance() : NULL;105	return m_pDealAI->DoHumanDemand(pkDeal);106}

Calls