CvPlot::getYield(YieldTypes) const
- Defined in
- CvPlot.cpp, line 7807
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_getYield_with_YieldTypes_const
Hooks
static bool BeforeCvPlot_getYield_with_YieldTypes_const(const CvPlot* self, YieldTypes eIndex, int& result);static void AfterCvPlot_getYield_with_YieldTypes_const(const CvPlot* self, YieldTypes eIndex, int& result);static int ReplaceCvPlot_getYield_with_YieldTypes_const(int (*original)(const CvPlot*, YieldTypes), const CvPlot* self, YieldTypes eIndex);CivRegisterBefore<CivHooks::CvPlot_getYield_with_YieldTypes_const>(host, &BeforeCvPlot_getYield_with_YieldTypes_const);CivRegisterAfter<CivHooks::CvPlot_getYield_with_YieldTypes_const>(host, &AfterCvPlot_getYield_with_YieldTypes_const);CivRegisterReplace<CivHooks::CvPlot_getYield_with_YieldTypes_const>(host, &ReplaceCvPlot_getYield_with_YieldTypes_const);
Code
7807int CvPlot::getYield(YieldTypes eIndex) const7808{7809 CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7810 CvAssertMsg(eIndex < NUM_YIELD_TYPES, "eIndex is expected to be within maximum bounds (invalid Index)");7811 return (int)(m_aiYield[eIndex]);7812}
Called by
- CvBuilderTaskingAI::UpdateCurrentPlotYields(CvPlot *)
- CvCity::GetBuyablePlotList(std::vector<int> &)
- CvCityCitizens::GetPlotValue(CvPlot *, bool)
- CvCityCitizens::SetWorkingPlot(CvPlot *, bool, bool)
- CvCitySpecializationAI::PlotValueForScience(CvPlot *)
- CvCitySpecializationAI::PlotValueForSpecificYield(CvPlot *, YieldTypes)
- CvCityStrategyAI::UpdateBestYields()
- CvCityCulture::GetCultureFromNaturalWonders() const
- CvPlayerAI::FindBestArtistTargetPlot(CvUnit *, int &)
- CvPlot::calculateYield(YieldTypes, bool)
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvPlot::hasYield() const
- CvPlot::updateYield()
- CvLuaPlot::lGetYield(lua_State *)