Bazaar developer reference

CvCity::updateYield()

Defined in
CvCity.cpp, line 1964
Class
CvCity
Hook name
CivHooks::CvCity_updateYield

Hooks

static bool BeforeCvCity_updateYield(CvCity* self);static void AfterCvCity_updateYield(CvCity* self);static void ReplaceCvCity_updateYield(void (*original)(CvCity*), CvCity* self);CivRegisterBefore<CivHooks::CvCity_updateYield>(host, &BeforeCvCity_updateYield);CivRegisterAfter<CivHooks::CvCity_updateYield>(host, &AfterCvCity_updateYield);CivRegisterReplace<CivHooks::CvCity_updateYield>(host, &ReplaceCvCity_updateYield);

Code

1964void CvCity::updateYield()1965{1966	VALIDATE_OBJECT1967	CvPlot* pLoopPlot;1968	int iI;19691970#if defined(MOD_GLOBAL_CITY_WORKING)1971	for(iI = 0; iI < GetNumWorkablePlots(); iI++)1972#else1973	for(iI = 0; iI < NUM_CITY_PLOTS; iI++)1974#endif1975	{1976		pLoopPlot = GetCityCitizens()->GetCityPlotFromIndex(iI);19771978		if(pLoopPlot != NULL)1979		{1980			pLoopPlot->updateYield();1981		}1982	}1983}

Calls

Called by