Bazaar developer reference

CvPlot::getFoundValue(PlayerTypes)

Defined in
CvPlot.cpp, line 8650
Class
CvPlot
Hook name
CivHooks::CvPlot_getFoundValue

Hooks

static bool BeforeCvPlot_getFoundValue(CvPlot* self, PlayerTypes eIndex, int& result);static void AfterCvPlot_getFoundValue(CvPlot* self, PlayerTypes eIndex, int& result);static int ReplaceCvPlot_getFoundValue(int (*original)(CvPlot*, PlayerTypes), CvPlot* self, PlayerTypes eIndex);CivRegisterBefore<CivHooks::CvPlot_getFoundValue>(host, &BeforeCvPlot_getFoundValue);CivRegisterAfter<CivHooks::CvPlot_getFoundValue>(host, &AfterCvPlot_getFoundValue);CivRegisterReplace<CivHooks::CvPlot_getFoundValue>(host, &ReplaceCvPlot_getFoundValue);

Code

8650int CvPlot::getFoundValue(PlayerTypes eIndex)8651{8652	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");8653	CvAssertMsg(eIndex < MAX_PLAYERS, "eIndex is expected to be within maximum bounds (invalid Index)");86548655	if(m_aiFoundValue[eIndex] == -1)8656	{8657		m_aiFoundValue[eIndex] = GET_PLAYER(eIndex).AI_foundValue(getX(), getY(), -1, true);8658	}86598660	return m_aiFoundValue[eIndex];8661}

Calls

Called by