Bazaar developer reference

CvPlayer::getNumCityNames() const

Defined in
CvPlayer.cpp, line 21704
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getNumCityNames

Hooks

static bool BeforeCvPlayer_getNumCityNames(const CvPlayer* self, int& result);static void AfterCvPlayer_getNumCityNames(const CvPlayer* self, int& result);static int ReplaceCvPlayer_getNumCityNames(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getNumCityNames>(host, &BeforeCvPlayer_getNumCityNames);CivRegisterAfter<CivHooks::CvPlayer_getNumCityNames>(host, &AfterCvPlayer_getNumCityNames);CivRegisterReplace<CivHooks::CvPlayer_getNumCityNames>(host, &ReplaceCvPlayer_getNumCityNames);

Code

21704int CvPlayer::getNumCityNames() const21705{21706	return m_cityNames.getLength();21707}

Calls

Called by