Bazaar developer reference

CvGame::getNumCivCities() const

Defined in
CvGame.cpp, line 4840
Class
CvGame
Hook name
CivHooks::CvGame_getNumCivCities

Hooks

static bool BeforeCvGame_getNumCivCities(const CvGame* self, int& result);static void AfterCvGame_getNumCivCities(const CvGame* self, int& result);static int ReplaceCvGame_getNumCivCities(int (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getNumCivCities>(host, &BeforeCvGame_getNumCivCities);CivRegisterAfter<CivHooks::CvGame_getNumCivCities>(host, &AfterCvGame_getNumCivCities);CivRegisterReplace<CivHooks::CvGame_getNumCivCities>(host, &ReplaceCvGame_getNumCivCities);

Code

4840int CvGame::getNumCivCities() const4841{4842	return (getNumCities() - GET_PLAYER(BARBARIAN_PLAYER).getNumCities());4843}

Calls

Called by