CvUnitEntry::IsFoundReligion() const
- Defined in
- CvUnitClasses.cpp, line 687
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_IsFoundReligion
Hooks
static bool BeforeCvUnitEntry_IsFoundReligion(const CvUnitEntry* self, bool& result);static void AfterCvUnitEntry_IsFoundReligion(const CvUnitEntry* self, bool& result);static bool ReplaceCvUnitEntry_IsFoundReligion(bool (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_IsFoundReligion>(host, &BeforeCvUnitEntry_IsFoundReligion);CivRegisterAfter<CivHooks::CvUnitEntry_IsFoundReligion>(host, &AfterCvUnitEntry_IsFoundReligion);CivRegisterReplace<CivHooks::CvUnitEntry_IsFoundReligion>(host, &ReplaceCvUnitEntry_IsFoundReligion);
Code
686/// Can this Unit Found a Religion?687bool CvUnitEntry::IsFoundReligion() const688{689 return m_bFoundReligion;690}
Called by
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvCity::Purchase(UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCityCitizens::DoSpawnGreatPerson(UnitTypes, bool, bool, bool)
- CvMinorCivAI::GetBestGreatPersonForQuest(PlayerTypes)
- CvPlayer::DoSpawnGreatPerson(PlayerTypes, bool)
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvPlayer::processPolicies(PolicyTypes, int)
- CvGameReligions::FoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, CvCity *)
- CvUnit::CanEnhanceReligion(const CvPlot *) const
- CvUnit::CanFoundReligion(const CvPlot *) const