Bazaar developer reference

CvDllPlayer::GetDealAI()

Defined in
CvDllPlayer.cpp, line 394
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetDealAI

Hooks

static bool BeforeCvDllPlayer_GetDealAI(CvDllPlayer* self, ICvDealAI1*& result);static void AfterCvDllPlayer_GetDealAI(CvDllPlayer* self, ICvDealAI1*& result);static ICvDealAI1* ReplaceCvDllPlayer_GetDealAI(ICvDealAI1* (*original)(CvDllPlayer*), CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetDealAI::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetDealAI);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetDealAI::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetDealAI);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetDealAI::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetDealAI);

Code

394ICvDealAI1* CvDllPlayer::GetDealAI()395{396	CvDealAI* pAI = m_pPlayer->GetDealAI();397	return (NULL != pAI)? new CvDllDealAI(pAI) : NULL;398}

Calls