CvCity::isCitySelected()
- Defined in
- CvCity.cpp, line 1941
- Class
- CvCity
- Hook name
CivHooks::CvCity_isCitySelected
Hooks
static bool BeforeCvCity_isCitySelected(CvCity* self, bool& result);static void AfterCvCity_isCitySelected(CvCity* self, bool& result);static bool ReplaceCvCity_isCitySelected(bool (*original)(CvCity*), CvCity* self);CivRegisterBefore<CivHooks::CvCity_isCitySelected>(host, &BeforeCvCity_isCitySelected);CivRegisterAfter<CivHooks::CvCity_isCitySelected>(host, &AfterCvCity_isCitySelected);CivRegisterReplace<CivHooks::CvCity_isCitySelected>(host, &ReplaceCvCity_isCitySelected);
Code
1941bool CvCity::isCitySelected()1942{1943 VALIDATE_OBJECT1944 auto_ptr<ICvCity1> pCity = GC.WrapCityPointer(this);19451946 return DLLUI->isCitySelected(pCity.get());1947}
Calls
- CvGlobals::GetEngineUserInterface()
- CvGlobals::WrapCityPointer(CvCity *)
ICvUserInterface1::isCitySelectedstd::auto_ptr::auto_ptrstd::auto_ptr::getstd::auto_ptr::operator auto_ptr_ref
Called by
- CvCityBuildings::SetBuildingProductionTimes100(BuildingTypes, int)
- CvCity::ChangeBaseYieldRateFromBuildings(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromMisc(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromReligion(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromSpecialists(YieldTypes, int)
- CvCity::ChangeBaseYieldRateFromTerrain(YieldTypes, int)
- CvCity::PreKill(bool)
- CvCity::hurry(HurryTypes)
- CvCity::popOrder(int, bool, bool)
- CvCity::pushOrder(OrderTypes, int, int, bool, bool, bool, bool)
- CvCity::setAutomatons(int, bool)
- CvCity::setName(const char *, bool)
- CvCity::setPopulation(int, bool)
- CvCity::setProductionAutomated(bool, bool)
- CvCity::setProjectProductionTimes100(ProjectTypes, int)
- CvCity::setRallyPlot(CvPlot *)
- CvCity::setSpecialistProductionTimes100(SpecialistTypes, int)
- CvCity::setUnitProductionTimes100(UnitTypes, int)
- CvCity::swapOrder(int)
- CvCityCitizens::SetWorkingPlot(CvPlot *, bool, bool)
- CvCityEmphases::SetEmphasize(EmphasizeTypes, bool)