Bazaar developer reference

CvPlot::getRevealedRouteType(TeamTypes, bool) const

Defined in
CvPlot.cpp, line 9696
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedRouteType

Hooks

static bool BeforeCvPlot_getRevealedRouteType(const CvPlot* self, TeamTypes eTeam, bool bDebug, RouteTypes& result);static void AfterCvPlot_getRevealedRouteType(const CvPlot* self, TeamTypes eTeam, bool bDebug, RouteTypes& result);static RouteTypes ReplaceCvPlot_getRevealedRouteType(RouteTypes (*original)(const CvPlot*, TeamTypes, bool), const CvPlot* self, TeamTypes eTeam, bool bDebug);CivRegisterBefore<CivHooks::CvPlot_getRevealedRouteType>(host, &BeforeCvPlot_getRevealedRouteType);CivRegisterAfter<CivHooks::CvPlot_getRevealedRouteType>(host, &AfterCvPlot_getRevealedRouteType);CivRegisterReplace<CivHooks::CvPlot_getRevealedRouteType>(host, &ReplaceCvPlot_getRevealedRouteType);

Code

9696RouteTypes CvPlot::getRevealedRouteType(TeamTypes eTeam, bool bDebug) const9697{9698	if(bDebug && GC.getGame().isDebugMode())9699	{9700		return getRouteType();9701	}9702	else9703	{9704		CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");9705		CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");97069707		return (RouteTypes)m_aeRevealedRouteType[eTeam];9708	}9709}

Calls

Called by