Bazaar developer reference

CvDllPlayer::FirstCity(int *, bool)

Defined in
CvDllPlayer.cpp, line 263
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_FirstCity

Hooks

static bool BeforeCvDllPlayer_FirstCity(CvDllPlayer* self, int* pIterIdx, bool bRev, ICvCity1*& result);static void AfterCvDllPlayer_FirstCity(CvDllPlayer* self, int* pIterIdx, bool bRev, ICvCity1*& result);static ICvCity1* ReplaceCvDllPlayer_FirstCity(ICvCity1* (*original)(CvDllPlayer*, int*, bool), CvDllPlayer* self, int* pIterIdx, bool bRev);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_FirstCity::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_FirstCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_FirstCity::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_FirstCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_FirstCity::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_FirstCity);

Code

263ICvCity1* CvDllPlayer::FirstCity(int* pIterIdx, bool bRev)264{265	CvCity* pkCity = m_pPlayer->firstCity(pIterIdx, bRev);266	return (NULL != pkCity)? new CvDllCity(pkCity) : NULL;267}

Calls