Bazaar developer reference

CvCity::IsFeatureSurrounded() const

Defined in
CvCity.cpp, line 3117
Class
CvCity
Hook name
CivHooks::CvCity_IsFeatureSurrounded

Hooks

static bool BeforeCvCity_IsFeatureSurrounded(const CvCity* self, bool& result);static void AfterCvCity_IsFeatureSurrounded(const CvCity* self, bool& result);static bool ReplaceCvCity_IsFeatureSurrounded(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_IsFeatureSurrounded>(host, &BeforeCvCity_IsFeatureSurrounded);CivRegisterAfter<CivHooks::CvCity_IsFeatureSurrounded>(host, &AfterCvCity_IsFeatureSurrounded);CivRegisterReplace<CivHooks::CvCity_IsFeatureSurrounded>(host, &ReplaceCvCity_IsFeatureSurrounded);

Code

3116// Are there a lot of clearable features around this city?3117bool CvCity::IsFeatureSurrounded() const3118{3119	return m_bFeatureSurrounded;3120}

Calls

Called by