Bazaar developer reference

CvGame::getProductionPerPopulation(HurryTypes)

Defined in
CvGame.cpp, line 3768
Class
CvGame
Hook name
CivHooks::CvGame_getProductionPerPopulation

Hooks

static bool BeforeCvGame_getProductionPerPopulation(CvGame* self, HurryTypes eHurry, int& result);static void AfterCvGame_getProductionPerPopulation(CvGame* self, HurryTypes eHurry, int& result);static int ReplaceCvGame_getProductionPerPopulation(int (*original)(CvGame*, HurryTypes), CvGame* self, HurryTypes eHurry);CivRegisterBefore<CivHooks::CvGame_getProductionPerPopulation>(host, &BeforeCvGame_getProductionPerPopulation);CivRegisterAfter<CivHooks::CvGame_getProductionPerPopulation>(host, &AfterCvGame_getProductionPerPopulation);CivRegisterReplace<CivHooks::CvGame_getProductionPerPopulation>(host, &ReplaceCvGame_getProductionPerPopulation);

Code

3768int CvGame::getProductionPerPopulation(HurryTypes eHurry)3769{3770	if(NO_HURRY == eHurry)3771		return 0;37723773	CvHurryInfo* pkHurryInfo = GC.getHurryInfo(eHurry);3774	if(pkHurryInfo == NULL)3775		return 0;37763777	return (pkHurryInfo->getProductionPerPopulation());3778}

Calls

Called by