Bazaar developer reference

CvDllPlayer::GetCapitalCity()

Defined in
CvDllPlayer.cpp, line 167
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetCapitalCity

Hooks

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

Code

167ICvCity1* CvDllPlayer::GetCapitalCity()168{169	CvCity* pkCity = m_pPlayer->getCapitalCity();170	return (NULL != pkCity)? new CvDllCity(pkCity) : NULL;171}

Calls