Bazaar developer reference

CvCity::getRealPopulation() const

Defined in
CvCity.cpp, line 8032
Class
CvCity
Hook name
CivHooks::CvCity_getRealPopulation

Hooks

static bool BeforeCvCity_getRealPopulation(const CvCity* self, long& result);static void AfterCvCity_getRealPopulation(const CvCity* self, long& result);static long ReplaceCvCity_getRealPopulation(long (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_getRealPopulation>(host, &BeforeCvCity_getRealPopulation);CivRegisterAfter<CivHooks::CvCity_getRealPopulation>(host, &AfterCvCity_getRealPopulation);CivRegisterReplace<CivHooks::CvCity_getRealPopulation>(host, &ReplaceCvCity_getRealPopulation);

Code

8032long CvCity::getRealPopulation() const8033{8034	VALIDATE_OBJECT8035	return (((long)(pow((double)getPopulation(), 2.8))) * 1000);8036}

Calls

Called by