Bazaar developer reference

CvPlot::getRevealedRouteType(TeamTypes) const

Defined in
CvPlot.cpp, line 9712
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedRouteType_with_TeamTypes_const

Hooks

static bool BeforeCvPlot_getRevealedRouteType_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, RouteTypes& result);static void AfterCvPlot_getRevealedRouteType_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, RouteTypes& result);static RouteTypes ReplaceCvPlot_getRevealedRouteType_with_TeamTypes_const(RouteTypes (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_getRevealedRouteType_with_TeamTypes_const>(host, &BeforeCvPlot_getRevealedRouteType_with_TeamTypes_const);CivRegisterAfter<CivHooks::CvPlot_getRevealedRouteType_with_TeamTypes_const>(host, &AfterCvPlot_getRevealedRouteType_with_TeamTypes_const);CivRegisterReplace<CivHooks::CvPlot_getRevealedRouteType_with_TeamTypes_const>(host, &ReplaceCvPlot_getRevealedRouteType_with_TeamTypes_const);

Code

9712RouteTypes CvPlot::getRevealedRouteType(TeamTypes eTeam) const9713{9714	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");9715	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");97169717	return (RouteTypes)m_aeRevealedRouteType[eTeam];9718}

Called by