CvCityCitizens::GetCityPlotFromIndex(int) const
- Defined in
- CvCityCitizens.cpp, line 2155
- Class
- CvCityCitizens
- Hook name
CivHooks::CvCityCitizens_GetCityPlotFromIndex
Hooks
static bool BeforeCvCityCitizens_GetCityPlotFromIndex(const CvCityCitizens* self, int iIndex, CvPlot*& result);static void AfterCvCityCitizens_GetCityPlotFromIndex(const CvCityCitizens* self, int iIndex, CvPlot*& result);static CvPlot* ReplaceCvCityCitizens_GetCityPlotFromIndex(CvPlot* (*original)(const CvCityCitizens*, int), const CvCityCitizens* self, int iIndex);CivRegisterBefore<CivHooks::CvCityCitizens_GetCityPlotFromIndex>(host, &BeforeCvCityCitizens_GetCityPlotFromIndex);CivRegisterAfter<CivHooks::CvCityCitizens_GetCityPlotFromIndex>(host, &AfterCvCityCitizens_GetCityPlotFromIndex);CivRegisterReplace<CivHooks::CvCityCitizens_GetCityPlotFromIndex>(host, &ReplaceCvCityCitizens_GetCityPlotFromIndex);
Code
2154/// Returns the CvPlot from a Plot Index2155CvPlot* CvCityCitizens::GetCityPlotFromIndex(int iIndex) const2156{2157 return plotCity(m_pCity->getX(), m_pCity->getY(), iIndex);2158}
Calls
Called by
- CvCity::GetNumResourceLocal(ResourceTypes, bool)
- CvCity::PreKill(bool)
- CvCity::clearWorkingOverride(int)
- CvCity::countNumForestPlots() const
- CvCity::countNumImprovedPlots(ImprovementTypes, bool) const
- CvCity::countNumRiverPlots() const
- CvCity::countNumWaterPlots() const
- CvCity::doTurn()
- CvCity::updateYield()
- CvCityCitizens::DoAlterWorkingPlot(int)
- CvCityCitizens::DoDemoteWorstForcedWorkingPlot()
- CvCityCitizens::DoFoundCity()
- CvCityCitizens::DoVerifyWorkingPlots()
- CvCityCitizens::GetBestCityPlotWithValue(int &, bool, bool)
- CvCityCitizens::IsAnyPlotBlockaded() const
- CvCityStrategyAI::UpdateBestYields()
- CvCityCulture::GetCultureFromNaturalWonders() const
- CvCityCulture::GetYieldFromImprovements(YieldTypes) const
- CvDealAI::GetCityValue(int, int, bool, PlayerTypes, bool)
- CvDllCity::GetCityPlotFromIndex(int) const
- CvPlayer::DoUprising()
- CvLuaCity::lGetCityIndexPlot(lua_State *)