Bazaar developer reference

CvCity::changeProductionTimes100(int)

Defined in
CvCity.cpp, line 5435
Class
CvCity
Hook name
CivHooks::CvCity_changeProductionTimes100

Hooks

static bool BeforeCvCity_changeProductionTimes100(CvCity* self, int iChange);static void AfterCvCity_changeProductionTimes100(CvCity* self, int iChange);static void ReplaceCvCity_changeProductionTimes100(void (*original)(CvCity*, int), CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_changeProductionTimes100>(host, &BeforeCvCity_changeProductionTimes100);CivRegisterAfter<CivHooks::CvCity_changeProductionTimes100>(host, &AfterCvCity_changeProductionTimes100);CivRegisterReplace<CivHooks::CvCity_changeProductionTimes100>(host, &ReplaceCvCity_changeProductionTimes100);

Code

5435void CvCity::changeProductionTimes100(int iChange)5436{5437	VALIDATE_OBJECT5438	if(isProductionUnit())5439	{5440		changeUnitProductionTimes100(getProductionUnit(), iChange);5441	}5442	else if(isProductionBuilding())5443	{5444		m_pCityBuildings->ChangeBuildingProductionTimes100(getProductionBuilding(), iChange);5445	}5446	else if(isProductionProject())5447	{5448		changeProjectProductionTimes100(getProductionProject(), iChange);5449	}5450	else if(isProductionSpecialist())5451	{5452		changeSpecialistProductionTimes100(getProductionSpecialist(), iChange);5453	}5454	else if(isProductionProcess())5455	{5456		doProcess();5457	}5458}

Calls

Called by