Bazaar developer reference

CvPlot::getRevealedOwner(TeamTypes, bool) const

Defined in
CvPlot.cpp, line 8868
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedOwner

Hooks

static bool BeforeCvPlot_getRevealedOwner(const CvPlot* self, TeamTypes eTeam, bool bDebug, PlayerTypes& result);static void AfterCvPlot_getRevealedOwner(const CvPlot* self, TeamTypes eTeam, bool bDebug, PlayerTypes& result);static PlayerTypes ReplaceCvPlot_getRevealedOwner(PlayerTypes (*original)(const CvPlot*, TeamTypes, bool), const CvPlot* self, TeamTypes eTeam, bool bDebug);CivRegisterBefore<CivHooks::CvPlot_getRevealedOwner>(host, &BeforeCvPlot_getRevealedOwner);CivRegisterAfter<CivHooks::CvPlot_getRevealedOwner>(host, &AfterCvPlot_getRevealedOwner);CivRegisterReplace<CivHooks::CvPlot_getRevealedOwner>(host, &ReplaceCvPlot_getRevealedOwner);

Code

8868PlayerTypes CvPlot::getRevealedOwner(TeamTypes eTeam, bool bDebug) const8869{8870	if(bDebug && GC.getGame().isDebugMode())8871	{8872		return getOwner();8873	}8874	else8875	{8876		CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");8877		CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");88788879		return (PlayerTypes)m_aiRevealedOwner[eTeam];8880	}8881}

Calls

Called by