Bazaar developer reference

CvDealAI::Init(CvPlayer *)

Defined in
CvDealAI.cpp, line 36
Class
CvDealAI
Hook name
CivHooks::CvDealAI_Init

Hooks

static bool BeforeCvDealAI_Init(CvDealAI* self, CvPlayer* pPlayer);static void AfterCvDealAI_Init(CvDealAI* self, CvPlayer* pPlayer);static void ReplaceCvDealAI_Init(void (*original)(CvDealAI*, CvPlayer*), CvDealAI* self, CvPlayer* pPlayer);CivRegisterBefore<CivHooks::CvDealAI_Init>(host, &BeforeCvDealAI_Init);CivRegisterAfter<CivHooks::CvDealAI_Init>(host, &AfterCvDealAI_Init);CivRegisterReplace<CivHooks::CvDealAI_Init>(host, &ReplaceCvDealAI_Init);

Code

35/// Initialize36void CvDealAI::Init(CvPlayer* pPlayer)37{38	m_pPlayer = pPlayer;3940	Reset();41}

Calls

Called by