Bazaar developer reference

CvPlot::getRevealedImprovementType(TeamTypes) const

Defined in
CvPlot.cpp, line 9652
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedImprovementType_with_TeamTypes_const

Hooks

static bool BeforeCvPlot_getRevealedImprovementType_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, ImprovementTypes& result);static void AfterCvPlot_getRevealedImprovementType_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, ImprovementTypes& result);static ImprovementTypes ReplaceCvPlot_getRevealedImprovementType_with_TeamTypes_const(ImprovementTypes (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_getRevealedImprovementType_with_TeamTypes_const>(host, &BeforeCvPlot_getRevealedImprovementType_with_TeamTypes_const);CivRegisterAfter<CivHooks::CvPlot_getRevealedImprovementType_with_TeamTypes_const>(host, &AfterCvPlot_getRevealedImprovementType_with_TeamTypes_const);CivRegisterReplace<CivHooks::CvPlot_getRevealedImprovementType_with_TeamTypes_const>(host, &ReplaceCvPlot_getRevealedImprovementType_with_TeamTypes_const);

Code

9652ImprovementTypes CvPlot::getRevealedImprovementType(TeamTypes eTeam) const9653{9654	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");9655	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");96569657	return (ImprovementTypes)m_aeRevealedImprovementType[eTeam];9658}

Called by