Bazaar developer reference

CvCity::IsOnFeature(FeatureTypes) const

Defined in
CvCity.cpp, line 17683
Class
CvCity
Hook name
CivHooks::CvCity_IsOnFeature

Hooks

static bool BeforeCvCity_IsOnFeature(const CvCity* self, FeatureTypes iFeatureType, bool& result);static void AfterCvCity_IsOnFeature(const CvCity* self, FeatureTypes iFeatureType, bool& result);static bool ReplaceCvCity_IsOnFeature(bool (*original)(const CvCity*, FeatureTypes), const CvCity* self, FeatureTypes iFeatureType);CivRegisterBefore<CivHooks::CvCity_IsOnFeature>(host, &BeforeCvCity_IsOnFeature);CivRegisterAfter<CivHooks::CvCity_IsOnFeature>(host, &AfterCvCity_IsOnFeature);CivRegisterReplace<CivHooks::CvCity_IsOnFeature>(host, &ReplaceCvCity_IsOnFeature);

Code

17683bool CvCity::IsOnFeature(FeatureTypes iFeatureType) const17684{17685	return plot()->HasFeature(iFeatureType);17686}

Calls

Called by