Bazaar developer reference

CvPlot::isRevealedGoody(TeamTypes) const

Defined in
CvPlot.cpp, line 3686
Class
CvPlot
Hook name
CivHooks::CvPlot_isRevealedGoody

Hooks

static bool BeforeCvPlot_isRevealedGoody(const CvPlot* self, TeamTypes eTeam, bool& result);static void AfterCvPlot_isRevealedGoody(const CvPlot* self, TeamTypes eTeam, bool& result);static bool ReplaceCvPlot_isRevealedGoody(bool (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_isRevealedGoody>(host, &BeforeCvPlot_isRevealedGoody);CivRegisterAfter<CivHooks::CvPlot_isRevealedGoody>(host, &AfterCvPlot_isRevealedGoody);CivRegisterReplace<CivHooks::CvPlot_isRevealedGoody>(host, &ReplaceCvPlot_isRevealedGoody);

Code

3686bool CvPlot::isRevealedGoody(TeamTypes eTeam) const3687{3688	if(eTeam == NO_TEAM)3689	{3690		return isGoody();3691	}36923693	if(GET_TEAM(eTeam).isBarbarian() || GET_TEAM(eTeam).isMinorCiv())3694	{3695		return false;3696	}36973698	if(!isRevealed(eTeam))3699	{3700		return false;3701	}37023703	return ((getRevealedImprovementType(eTeam) == NO_IMPROVEMENT) ? false : GC.getImprovementInfo(getRevealedImprovementType(eTeam))->IsGoody());3704}

Calls

Called by