Bazaar developer reference

CvPlot::isGoody(TeamTypes) const

Defined in
CvPlot.cpp, line 3674
Class
CvPlot
Hook name
CivHooks::CvPlot_isGoody

Hooks

static bool BeforeCvPlot_isGoody(const CvPlot* self, TeamTypes eTeam, bool& result);static void AfterCvPlot_isGoody(const CvPlot* self, TeamTypes eTeam, bool& result);static bool ReplaceCvPlot_isGoody(bool (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_isGoody>(host, &BeforeCvPlot_isGoody);CivRegisterAfter<CivHooks::CvPlot_isGoody>(host, &AfterCvPlot_isGoody);CivRegisterReplace<CivHooks::CvPlot_isGoody>(host, &ReplaceCvPlot_isGoody);

Code

3674bool CvPlot::isGoody(TeamTypes eTeam) const3675{3676	if((eTeam != NO_TEAM) && (GET_TEAM(eTeam).isBarbarian() || GET_TEAM(eTeam).isMinorCiv()))3677	{3678		return false;3679	}36803681	return ((getImprovementType() == NO_IMPROVEMENT) ? false : GC.getImprovementInfo(getImprovementType())->IsGoody());3682}

Calls

Called by