Bazaar developer reference

CvCity::SetFeatureSurrounded(bool)

Defined in
CvCity.cpp, line 3124
Class
CvCity
Hook name
CivHooks::CvCity_SetFeatureSurrounded

Hooks

static bool BeforeCvCity_SetFeatureSurrounded(CvCity* self, bool bValue);static void AfterCvCity_SetFeatureSurrounded(CvCity* self, bool bValue);static void ReplaceCvCity_SetFeatureSurrounded(void (*original)(CvCity*, bool), CvCity* self, bool bValue);CivRegisterBefore<CivHooks::CvCity_SetFeatureSurrounded>(host, &BeforeCvCity_SetFeatureSurrounded);CivRegisterAfter<CivHooks::CvCity_SetFeatureSurrounded>(host, &AfterCvCity_SetFeatureSurrounded);CivRegisterReplace<CivHooks::CvCity_SetFeatureSurrounded>(host, &ReplaceCvCity_SetFeatureSurrounded);

Code

3123// Are there a lot of clearable features around this city?3124void CvCity::SetFeatureSurrounded(bool bValue)3125{3126	if(IsFeatureSurrounded() != bValue)3127		m_bFeatureSurrounded = bValue;3128}

Calls

Called by