Bazaar developer reference

CvPlot::calculateBestNatureYield(YieldTypes, TeamTypes) const

Defined in
CvPlot.cpp, line 8077
Class
CvPlot
Hook name
CivHooks::CvPlot_calculateBestNatureYield

Hooks

static bool BeforeCvPlot_calculateBestNatureYield(const CvPlot* self, YieldTypes eIndex, TeamTypes eTeam, int& result);static void AfterCvPlot_calculateBestNatureYield(const CvPlot* self, YieldTypes eIndex, TeamTypes eTeam, int& result);static int ReplaceCvPlot_calculateBestNatureYield(int (*original)(const CvPlot*, YieldTypes, TeamTypes), const CvPlot* self, YieldTypes eIndex, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_calculateBestNatureYield>(host, &BeforeCvPlot_calculateBestNatureYield);CivRegisterAfter<CivHooks::CvPlot_calculateBestNatureYield>(host, &AfterCvPlot_calculateBestNatureYield);CivRegisterReplace<CivHooks::CvPlot_calculateBestNatureYield>(host, &ReplaceCvPlot_calculateBestNatureYield);

Code

8077int CvPlot::calculateBestNatureYield(YieldTypes eIndex, TeamTypes eTeam) const8078{8079	return std::max(calculateNatureYield(eIndex, eTeam, false), calculateNatureYield(eIndex, eTeam, true));8080}

Calls

Called by