Bazaar developer reference

CvGame::getPlotExtraYield(int, int, YieldTypes) const

Defined in
CvGame.cpp, line 10039
Class
CvGame
Hook name
CivHooks::CvGame_getPlotExtraYield

Hooks

static bool BeforeCvGame_getPlotExtraYield(const CvGame* self, int iX, int iY, YieldTypes eYield, int& result);static void AfterCvGame_getPlotExtraYield(const CvGame* self, int iX, int iY, YieldTypes eYield, int& result);static int ReplaceCvGame_getPlotExtraYield(int (*original)(const CvGame*, int, int, YieldTypes), const CvGame* self, int iX, int iY, YieldTypes eYield);CivRegisterBefore<CivHooks::CvGame_getPlotExtraYield>(host, &BeforeCvGame_getPlotExtraYield);CivRegisterAfter<CivHooks::CvGame_getPlotExtraYield>(host, &AfterCvGame_getPlotExtraYield);CivRegisterReplace<CivHooks::CvGame_getPlotExtraYield>(host, &ReplaceCvGame_getPlotExtraYield);

Code

10039int CvGame::getPlotExtraYield(int iX, int iY, YieldTypes eYield) const10040{10041	for(std::vector<PlotExtraYield>::const_iterator it = m_aPlotExtraYields.begin(); it != m_aPlotExtraYields.end(); ++it)10042	{10043		if((*it).m_iX == iX && (*it).m_iY == iY)10044		{10045			return (*it).m_aeExtraYield[eYield];10046		}10047	}1004810049	return 0;10050}

Calls

Called by