Bazaar developer reference

CvUnit::IsOnFeature(FeatureTypes) const

Defined in
CvUnit.cpp, line 25535
Class
CvUnit
Hook name
CivHooks::CvUnit_IsOnFeature

Hooks

static bool BeforeCvUnit_IsOnFeature(const CvUnit* self, FeatureTypes iFeatureType, bool& result);static void AfterCvUnit_IsOnFeature(const CvUnit* self, FeatureTypes iFeatureType, bool& result);static bool ReplaceCvUnit_IsOnFeature(bool (*original)(const CvUnit*, FeatureTypes), const CvUnit* self, FeatureTypes iFeatureType);CivRegisterBefore<CivHooks::CvUnit_IsOnFeature>(host, &BeforeCvUnit_IsOnFeature);CivRegisterAfter<CivHooks::CvUnit_IsOnFeature>(host, &AfterCvUnit_IsOnFeature);CivRegisterReplace<CivHooks::CvUnit_IsOnFeature>(host, &ReplaceCvUnit_IsOnFeature);

Code

25535bool CvUnit::IsOnFeature(FeatureTypes iFeatureType) const25536{25537	return plot()->HasFeature(iFeatureType);25538}

Calls

Called by