Bazaar developer reference

CvCityReligions::IsHolyCityAnyReligion()

Defined in
CvReligionClasses.cpp, line 3492
Class
CvCityReligions
Hook name
CivHooks::CvCityReligions_IsHolyCityAnyReligion

Hooks

static bool BeforeCvCityReligions_IsHolyCityAnyReligion(CvCityReligions* self, bool& result);static void AfterCvCityReligions_IsHolyCityAnyReligion(CvCityReligions* self, bool& result);static bool ReplaceCvCityReligions_IsHolyCityAnyReligion(bool (*original)(CvCityReligions*), CvCityReligions* self);CivRegisterBefore<CivHooks::CvCityReligions_IsHolyCityAnyReligion>(host, &BeforeCvCityReligions_IsHolyCityAnyReligion);CivRegisterAfter<CivHooks::CvCityReligions_IsHolyCityAnyReligion>(host, &AfterCvCityReligions_IsHolyCityAnyReligion);CivRegisterReplace<CivHooks::CvCityReligions_IsHolyCityAnyReligion>(host, &ReplaceCvCityReligions_IsHolyCityAnyReligion);

Code

3491/// Is this the holy city for any religion?3492bool CvCityReligions::IsHolyCityAnyReligion()3493{3494	ReligionInCityList::iterator religionIt;3495	for(religionIt = m_ReligionStatus.begin(); religionIt != m_ReligionStatus.end(); ++religionIt)3496	{3497		if(religionIt->m_bFoundedHere)3498		{3499			return true;3500		}3501	}35023503	return false;3504}

Calls

Called by