Bazaar developer reference

CvUnit::IsAdjacentToFeature(FeatureTypes) const

Defined in
CvUnit.cpp, line 25540
Class
CvUnit
Hook name
CivHooks::CvUnit_IsAdjacentToFeature

Hooks

static bool BeforeCvUnit_IsAdjacentToFeature(const CvUnit* self, FeatureTypes iFeatureType, bool& result);static void AfterCvUnit_IsAdjacentToFeature(const CvUnit* self, FeatureTypes iFeatureType, bool& result);static bool ReplaceCvUnit_IsAdjacentToFeature(bool (*original)(const CvUnit*, FeatureTypes), const CvUnit* self, FeatureTypes iFeatureType);CivRegisterBefore<CivHooks::CvUnit_IsAdjacentToFeature>(host, &BeforeCvUnit_IsAdjacentToFeature);CivRegisterAfter<CivHooks::CvUnit_IsAdjacentToFeature>(host, &AfterCvUnit_IsAdjacentToFeature);CivRegisterReplace<CivHooks::CvUnit_IsAdjacentToFeature>(host, &ReplaceCvUnit_IsAdjacentToFeature);

Code

25540bool CvUnit::IsAdjacentToFeature(FeatureTypes iFeatureType) const25541{25542	return plot()->IsAdjacentToFeature(iFeatureType);25543}

Calls

Called by