Bazaar developer reference

CvWonderProductionAI::Init(CvBuildingXMLEntries *, CvPlayer *, bool)

Defined in
CvWonderProductionAI.cpp, line 34
Class
CvWonderProductionAI
Hook name
CivHooks::CvWonderProductionAI_Init

Hooks

static bool BeforeCvWonderProductionAI_Init(CvWonderProductionAI* self, CvBuildingXMLEntries* pBuildings, CvPlayer* pPlayer, bool bIsCity);static void AfterCvWonderProductionAI_Init(CvWonderProductionAI* self, CvBuildingXMLEntries* pBuildings, CvPlayer* pPlayer, bool bIsCity);static void ReplaceCvWonderProductionAI_Init(void (*original)(CvWonderProductionAI*, CvBuildingXMLEntries*, CvPlayer*, bool), CvWonderProductionAI* self, CvBuildingXMLEntries* pBuildings, CvPlayer* pPlayer, bool bIsCity);CivRegisterBefore<CivHooks::CvWonderProductionAI_Init>(host, &BeforeCvWonderProductionAI_Init);CivRegisterAfter<CivHooks::CvWonderProductionAI_Init>(host, &AfterCvWonderProductionAI_Init);CivRegisterReplace<CivHooks::CvWonderProductionAI_Init>(host, &ReplaceCvWonderProductionAI_Init);

Code

33/// Initialize34void CvWonderProductionAI::Init(CvBuildingXMLEntries* pBuildings, CvPlayer* pPlayer, bool bIsCity)35{36	// Init base class37	CvFlavorRecipient::Init();3839	// Store off the pointer to the buildings for this game40	m_pBuildings = pBuildings;41	m_pPlayer = pPlayer;42	m_bIsCity = bIsCity;4344	Reset();45}

Calls

Called by