Bazaar developer reference

CvPlot::HasFeature(FeatureTypes) const

Defined in
CvPlot.cpp, line 11880
Class
CvPlot
Hook name
CivHooks::CvPlot_HasFeature

Hooks

static bool BeforeCvPlot_HasFeature(const CvPlot* self, FeatureTypes iFeatureType, bool& result);static void AfterCvPlot_HasFeature(const CvPlot* self, FeatureTypes iFeatureType, bool& result);static bool ReplaceCvPlot_HasFeature(bool (*original)(const CvPlot*, FeatureTypes), const CvPlot* self, FeatureTypes iFeatureType);CivRegisterBefore<CivHooks::CvPlot_HasFeature>(host, &BeforeCvPlot_HasFeature);CivRegisterAfter<CivHooks::CvPlot_HasFeature>(host, &AfterCvPlot_HasFeature);CivRegisterReplace<CivHooks::CvPlot_HasFeature>(host, &ReplaceCvPlot_HasFeature);

Code

11880bool CvPlot::HasFeature(FeatureTypes iFeatureType) const11881{11882	if (iFeatureType == (FeatureTypes)GC.getInfoTypeForString("FEATURE_LAKE")) {11883		return IsFeatureLake();11884	} else if (iFeatureType == (FeatureTypes)GC.getInfoTypeForString("FEATURE_RIVER")) {11885		return IsFeatureRiver();11886	}1188711888	return (getFeatureType() == iFeatureType);11889}

Calls

Called by