Bazaar developer reference

CvDllPlayer::GetNumCities() const

Defined in
CvDllPlayer.cpp, line 275
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetNumCities

Hooks

static bool BeforeCvDllPlayer_GetNumCities(const CvDllPlayer* self, int& result);static void AfterCvDllPlayer_GetNumCities(const CvDllPlayer* self, int& result);static int ReplaceCvDllPlayer_GetNumCities(int (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetNumCities::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetNumCities);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetNumCities::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetNumCities);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetNumCities::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetNumCities);

Code

275int CvDllPlayer::GetNumCities() const276{277	return m_pPlayer->getNumCities();278}

Calls