Bazaar developer reference

CvCity::HasBelief(BeliefTypes) const

Defined in
CvCity.cpp, line 17173
Class
CvCity
Hook name
CivHooks::CvCity_HasBelief

Hooks

static bool BeforeCvCity_HasBelief(const CvCity* self, BeliefTypes iBeliefType, bool& result);static void AfterCvCity_HasBelief(const CvCity* self, BeliefTypes iBeliefType, bool& result);static bool ReplaceCvCity_HasBelief(bool (*original)(const CvCity*, BeliefTypes), const CvCity* self, BeliefTypes iBeliefType);CivRegisterBefore<CivHooks::CvCity_HasBelief>(host, &BeforeCvCity_HasBelief);CivRegisterAfter<CivHooks::CvCity_HasBelief>(host, &AfterCvCity_HasBelief);CivRegisterReplace<CivHooks::CvCity_HasBelief>(host, &ReplaceCvCity_HasBelief);

Code

17173bool CvCity::HasBelief(BeliefTypes iBeliefType) const17174{17175	const ReligionTypes iReligion = GetCityReligions()->GetReligiousMajority();17176	const CvReligion* pReligion = GC.getGame().GetGameReligions()->GetReligion(iReligion, getOwner());1717717178	return (pReligion && pReligion->m_Beliefs.HasBelief(iBeliefType));17179}

Calls

Called by