Bazaar developer reference

CvDllPlayer::NextCity(int *, bool)

Defined in
CvDllPlayer.cpp, line 269
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_NextCity

Hooks

static bool BeforeCvDllPlayer_NextCity(CvDllPlayer* self, int* pIterIdx, bool bRev, ICvCity1*& result);static void AfterCvDllPlayer_NextCity(CvDllPlayer* self, int* pIterIdx, bool bRev, ICvCity1*& result);static ICvCity1* ReplaceCvDllPlayer_NextCity(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_NextCity::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_NextCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_NextCity::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_NextCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_NextCity::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_NextCity);

Code

269ICvCity1* CvDllPlayer::NextCity(int* pIterIdx, bool bRev)270{271	CvCity* pkCity = m_pPlayer->nextCity(pIterIdx, bRev);272	return (NULL != pkCity)? new CvDllCity(pkCity) : NULL;273}

Calls