Bazaar developer reference

CvPlot::getRevealedTeam(TeamTypes, bool) const

Defined in
CvPlot.cpp, line 8885
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedTeam

Hooks

static bool BeforeCvPlot_getRevealedTeam(const CvPlot* self, TeamTypes eTeam, bool bDebug, TeamTypes& result);static void AfterCvPlot_getRevealedTeam(const CvPlot* self, TeamTypes eTeam, bool bDebug, TeamTypes& result);static TeamTypes ReplaceCvPlot_getRevealedTeam(TeamTypes (*original)(const CvPlot*, TeamTypes, bool), const CvPlot* self, TeamTypes eTeam, bool bDebug);CivRegisterBefore<CivHooks::CvPlot_getRevealedTeam>(host, &BeforeCvPlot_getRevealedTeam);CivRegisterAfter<CivHooks::CvPlot_getRevealedTeam>(host, &AfterCvPlot_getRevealedTeam);CivRegisterReplace<CivHooks::CvPlot_getRevealedTeam>(host, &ReplaceCvPlot_getRevealedTeam);

Code

8885TeamTypes CvPlot::getRevealedTeam(TeamTypes eTeam, bool bDebug) const8886{8887	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");8888	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");88898890	PlayerTypes eRevealedOwner = getRevealedOwner(eTeam, bDebug);88918892	if(eRevealedOwner != NO_PLAYER)8893	{8894		return GET_PLAYER(eRevealedOwner).getTeam();8895	}8896	else8897	{8898		return NO_TEAM;8899	}8900}

Calls

Called by