Bazaar developer reference

CvCity::HasAnyReligion() const

Defined in
CvCity.cpp, line 17401
Class
CvCity
Hook name
CivHooks::CvCity_HasAnyReligion

Hooks

static bool BeforeCvCity_HasAnyReligion(const CvCity* self, bool& result);static void AfterCvCity_HasAnyReligion(const CvCity* self, bool& result);static bool ReplaceCvCity_HasAnyReligion(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_HasAnyReligion>(host, &BeforeCvCity_HasAnyReligion);CivRegisterAfter<CivHooks::CvCity_HasAnyReligion>(host, &AfterCvCity_HasAnyReligion);CivRegisterReplace<CivHooks::CvCity_HasAnyReligion>(host, &ReplaceCvCity_HasAnyReligion);

Code

17401bool CvCity::HasAnyReligion() const17402{17403	return (GetCityReligions()->IsReligionInCity());17404}

Calls

Called by