Bazaar developer reference

CvPlot::calculateTotalBestNatureYield(TeamTypes) const

Defined in
CvPlot.cpp, line 8084
Class
CvPlot
Hook name
CivHooks::CvPlot_calculateTotalBestNatureYield

Hooks

static bool BeforeCvPlot_calculateTotalBestNatureYield(const CvPlot* self, TeamTypes eTeam, int& result);static void AfterCvPlot_calculateTotalBestNatureYield(const CvPlot* self, TeamTypes eTeam, int& result);static int ReplaceCvPlot_calculateTotalBestNatureYield(int (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_calculateTotalBestNatureYield>(host, &BeforeCvPlot_calculateTotalBestNatureYield);CivRegisterAfter<CivHooks::CvPlot_calculateTotalBestNatureYield>(host, &AfterCvPlot_calculateTotalBestNatureYield);CivRegisterReplace<CivHooks::CvPlot_calculateTotalBestNatureYield>(host, &ReplaceCvPlot_calculateTotalBestNatureYield);

Code

8084int CvPlot::calculateTotalBestNatureYield(TeamTypes eTeam) const8085{8086	return (calculateBestNatureYield(YIELD_FOOD, eTeam) + calculateBestNatureYield(YIELD_PRODUCTION, eTeam) + calculateBestNatureYield(YIELD_GOLD, eTeam));8087}

Calls

Called by