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
- CvCity::CountFeature(FeatureTypes) const
- CvCity::CountWorkedFeature(FeatureTypes) const
- CvCity::HasFeature(FeatureTypes) const
- CvCity::HasWorkedFeature(FeatureTypes) const
- CvCity::IsOnFeature(FeatureTypes) const
- CvPlot::HasNaturalWonder(FeatureTypes) const
- CvPlot::IsAdjacentToFeature(FeatureTypes) const
- CvPlot::IsWithinDistanceOfFeature(FeatureTypes, int) const
- CvPlot::IsFeatureAtoll() const
- CvPlot::IsFeatureFallout() const
- CvPlot::IsFeatureFloodPlains() const
- CvPlot::IsFeatureForest() const
- CvPlot::IsFeatureIce() const
- CvPlot::IsFeatureJungle() const
- CvPlot::IsFeatureMarsh() const
- CvPlot::IsFeatureOasis() const
- CvUnit::IsOnFeature(FeatureTypes) const
- CvLuaPlot::lHasFeature(lua_State *)