CvCity::GetNumWorkablePlots(int) const
- Defined in
- CvCity.cpp, line 2248
- Class
- CvCity
- Hook name
CivHooks::CvCity_GetNumWorkablePlots
Hooks
static bool BeforeCvCity_GetNumWorkablePlots(const CvCity* self, int iChange, int& result);static void AfterCvCity_GetNumWorkablePlots(const CvCity* self, int iChange, int& result);static int ReplaceCvCity_GetNumWorkablePlots(int (*original)(const CvCity*, int), const CvCity* self, int iChange);CivRegisterBefore<CivHooks::CvCity_GetNumWorkablePlots>(host, &BeforeCvCity_GetNumWorkablePlots);CivRegisterAfter<CivHooks::CvCity_GetNumWorkablePlots>(host, &AfterCvCity_GetNumWorkablePlots);CivRegisterReplace<CivHooks::CvCity_GetNumWorkablePlots>(host, &ReplaceCvCity_GetNumWorkablePlots);
Code
2247/// How many plots this city may work2248int CvCity::GetNumWorkablePlots(int iChange) const2249{2250 int iWorkablePlots = ((6 * (1+getWorkPlotDistance(iChange)) * getWorkPlotDistance(iChange) / 2) + 1);2251 return iWorkablePlots;2252}
Calls
Called by
61 functions in 13 files
- CvCity::BuyPlot(int, int)
- CvCity::CountFeature(FeatureTypes) const
- CvCity::CountImprovement(ImprovementTypes) const
- CvCity::CountPlotType(PlotTypes) const
- CvCity::CountResource(ResourceTypes) const
- CvCity::CountTerrain(TerrainTypes) const
- CvCity::CountWorkedFeature(FeatureTypes) const
- CvCity::CountWorkedImprovement(ImprovementTypes) const
- CvCity::CountWorkedPlotType(PlotTypes) const
- CvCity::CountWorkedResource(ResourceTypes) const
- CvCity::CountWorkedTerrain(TerrainTypes) const
- CvCity::DoCreatePuppet()
- CvCity::DoPickResourceDemanded(bool)
- CvCity::GetNumResourceLocal(ResourceTypes, bool)
- CvCity::HasAnyNaturalWonder() const
- CvCity::HasFeature(FeatureTypes) const
- CvCity::HasImprovement(ImprovementTypes) const
- CvCity::HasPlotType(PlotTypes) const
- CvCity::HasResource(ResourceTypes) const
- CvCity::HasTerrain(TerrainTypes) const
- CvCity::HasWorkedFeature(FeatureTypes) const
- CvCity::HasWorkedImprovement(ImprovementTypes) const
- CvCity::HasWorkedPlotType(PlotTypes) const
- CvCity::HasWorkedResource(ResourceTypes) const
- CvCity::HasWorkedTerrain(TerrainTypes) const
- CvCity::IsHasResourceLocal(ResourceTypes, bool) const
- CvCity::PreKill(bool)
- CvCity::changeCityWorkingChange(int)
- CvCity::countNumForestPlots() const
- CvCity::countNumImprovedPlots(ImprovementTypes, bool) const
- CvCity::countNumRiverPlots() const
- CvCity::countNumWaterPlots() const
- CvCity::doTurn()
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::updateYield()
- CvCityAI::AI_stealPlots()
- CvCityCitizens::DoAlterWorkingPlot(int)
- CvCityCitizens::DoDemoteWorstForcedWorkingPlot()
- CvCityCitizens::DoVerifyWorkingPlots()
- CvCityCitizens::GetBestCityPlotWithValue(int &, bool, bool)
- CvCityCitizens::IsAnyPlotBlockaded() const
- CvCityCitizens::SetForcedWorkingPlot(CvPlot *, bool)
- CvCityCitizens::SetWorkingPlot(CvPlot *, bool, bool)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedNavalGrowth(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedNavalTileImprovement(CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedTileImprovers(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_WantTileImprovers(AICityStrategyTypes, CvCity *)
- CvCityStrategyAI::UpdateBestYields()
- CvCityCulture::GetCultureFromNaturalWonders() const
- CvCityCulture::GetYieldFromImprovements(YieldTypes) const
- CvDealAI::GetCityValue(int, int, bool, PlayerTypes, bool)
- CvDllGameContext::GetNUM_CITY_PLOTS() const
- CvPlayer::ChangeCityWorkingChange(int)
- CvPlayer::DoUprising()
- CvPlayer::countCityFeatures(FeatureTypes) const
- CvPlayerAI::FindBestMusicianTargetPlot(CvUnit *, bool)
- CvPlot::setPlotCity(CvCity *)
- CvTeam::changeCityWorkingChange(int)
- CvPlayerTechs::SetLocalePriorities()
- CvLuaCity::lGetNumCityPlots(lua_State *)