Bazaar developer reference

CvPlot::getRevealedTeam(TeamTypes) const

Defined in
CvPlot.cpp, line 8913
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedTeam_with_TeamTypes_const

Hooks

static bool BeforeCvPlot_getRevealedTeam_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, TeamTypes& result);static void AfterCvPlot_getRevealedTeam_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, TeamTypes& result);static TeamTypes ReplaceCvPlot_getRevealedTeam_with_TeamTypes_const(TeamTypes (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_getRevealedTeam_with_TeamTypes_const>(host, &BeforeCvPlot_getRevealedTeam_with_TeamTypes_const);CivRegisterAfter<CivHooks::CvPlot_getRevealedTeam_with_TeamTypes_const>(host, &AfterCvPlot_getRevealedTeam_with_TeamTypes_const);CivRegisterReplace<CivHooks::CvPlot_getRevealedTeam_with_TeamTypes_const>(host, &ReplaceCvPlot_getRevealedTeam_with_TeamTypes_const);

Code

8913TeamTypes CvPlot::getRevealedTeam(TeamTypes eTeam) const8914{8915	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");8916	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");89178918	PlayerTypes eRevealedOwner = getRevealedOwner(eTeam);89198920	if(eRevealedOwner != NO_PLAYER)8921	{8922		return GET_PLAYER(eRevealedOwner).getTeam();8923	}8924	else8925	{8926		return NO_TEAM;8927	}8928}

Calls

Called by