Bazaar developer reference

CvPlot::getRevealedOwner(TeamTypes) const

Defined in
CvPlot.cpp, line 8903
Class
CvPlot
Hook name
CivHooks::CvPlot_getRevealedOwner_with_TeamTypes_const

Hooks

static bool BeforeCvPlot_getRevealedOwner_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, PlayerTypes& result);static void AfterCvPlot_getRevealedOwner_with_TeamTypes_const(const CvPlot* self, TeamTypes eTeam, PlayerTypes& result);static PlayerTypes ReplaceCvPlot_getRevealedOwner_with_TeamTypes_const(PlayerTypes (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_getRevealedOwner_with_TeamTypes_const>(host, &BeforeCvPlot_getRevealedOwner_with_TeamTypes_const);CivRegisterAfter<CivHooks::CvPlot_getRevealedOwner_with_TeamTypes_const>(host, &AfterCvPlot_getRevealedOwner_with_TeamTypes_const);CivRegisterReplace<CivHooks::CvPlot_getRevealedOwner_with_TeamTypes_const>(host, &ReplaceCvPlot_getRevealedOwner_with_TeamTypes_const);

Code

8903PlayerTypes CvPlot::getRevealedOwner(TeamTypes eTeam) const8904{8905	CvAssertMsg(eTeam >= 0, "eTeam is expected to be non-negative (invalid Index)");8906	CvAssertMsg(eTeam < MAX_TEAMS, "eTeam is expected to be within maximum bounds (invalid Index)");89078908	return (PlayerTypes)m_aiRevealedOwner[eTeam];8909}

Called by