Bazaar developer reference

CvDllDealAI::DoAcceptedDemand(PlayerTypes, ICvDeal1 *)

Defined in
CvDllDealAI.cpp, line 108
Class
CvDllDealAI
Hook name
CivHooks::CvDllDealAI_DoAcceptedDemand

Hooks

static bool BeforeCvDllDealAI_DoAcceptedDemand(CvDllDealAI* self, PlayerTypes eFromPlayer, ICvDeal1* pDeal);static void AfterCvDllDealAI_DoAcceptedDemand(CvDllDealAI* self, PlayerTypes eFromPlayer, ICvDeal1* pDeal);static void ReplaceCvDllDealAI_DoAcceptedDemand(void (*original)(CvDllDealAI*, PlayerTypes, ICvDeal1*), CvDllDealAI* self, PlayerTypes eFromPlayer, ICvDeal1* pDeal);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoAcceptedDemand::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDealAI_DoAcceptedDemand);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoAcceptedDemand::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDealAI_DoAcceptedDemand);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDealAI_DoAcceptedDemand::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDealAI_DoAcceptedDemand);

Code

108void CvDllDealAI::DoAcceptedDemand(PlayerTypes eFromPlayer, ICvDeal1* pDeal)109{110	CvDeal* pkDeal = (NULL != pDeal)? static_cast<CvDllDeal*>(pDeal)->GetInstance() : NULL;111	if(pkDeal != NULL)112		m_pDealAI->DoAcceptedDemand(eFromPlayer, *pkDeal);113}

Calls