CvPlot::isBeingWorked() const
- Defined in
- CvPlot.cpp, line 3869
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_isBeingWorked
Hooks
static bool BeforeCvPlot_isBeingWorked(const CvPlot* self, bool& result);static void AfterCvPlot_isBeingWorked(const CvPlot* self, bool& result);static bool ReplaceCvPlot_isBeingWorked(bool (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_isBeingWorked>(host, &BeforeCvPlot_isBeingWorked);CivRegisterAfter<CivHooks::CvPlot_isBeingWorked>(host, &AfterCvPlot_isBeingWorked);CivRegisterReplace<CivHooks::CvPlot_isBeingWorked>(host, &ReplaceCvPlot_isBeingWorked);
Code
3869bool CvPlot::isBeingWorked() const3870{3871 CvCity* pWorkingCity;38723873 pWorkingCity = getWorkingCity();38743875 if(pWorkingCity != NULL)3876 {3877 return pWorkingCity->GetCityCitizens()->IsWorkingPlot(this);3878 }38793880 return false;3881}
Calls
Called by
- CvCity::CountWorkedFeature(FeatureTypes) const
- CvCity::CountWorkedImprovement(ImprovementTypes) const
- CvCity::CountWorkedPlotType(PlotTypes) const
- CvCity::CountWorkedResource(ResourceTypes) const
- CvCity::CountWorkedTerrain(TerrainTypes) const
- CvCity::HasWorkedFeature(FeatureTypes) const
- CvCity::HasWorkedImprovement(ImprovementTypes) const
- CvCity::HasWorkedPlotType(PlotTypes) const
- CvCity::HasWorkedResource(ResourceTypes) const
- CvCity::HasWorkedTerrain(TerrainTypes) const
- CvCity::doTurn()
- CvEconomicAI::LogMonitor()
- CvPlayer::GatherPerTurnReplayStats(int)
- CvPlot::doImprovementUpgrade()
- CvPlot::getVisibleImprovementState(ImprovementTypes &, bool &)
- CvPlot::getVisibleResourceState(ResourceTypes &, bool &, bool &)
- CvPlot::isLayoutStateDifferent() const
- CvPlot::isVisibleWorked() const
- CvPlot::setLayoutStateToCurrent()
- CvPlot::updateYield()
- CvReligionAI::ScoreBelief(CvBeliefEntry *)
- CvLuaPlot::lIsBeingWorked(lua_State *)