CvUnitEntry::GetReligiousStrength() const
- Defined in
- CvUnitClasses.cpp, line 681
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_GetReligiousStrength
Hooks
static bool BeforeCvUnitEntry_GetReligiousStrength(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetReligiousStrength(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetReligiousStrength(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetReligiousStrength>(host, &BeforeCvUnitEntry_GetReligiousStrength);CivRegisterAfter<CivHooks::CvUnitEntry_GetReligiousStrength>(host, &AfterCvUnitEntry_GetReligiousStrength);CivRegisterReplace<CivHooks::CvUnitEntry_GetReligiousStrength>(host, &ReplaceCvUnitEntry_GetReligiousStrength);
Code
680/// How strong is this religious unit?681int CvUnitEntry::GetReligiousStrength() const682{683 return m_iReligiousStrength;684}
Called by
- CvCity::Purchase(UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCityCitizens::DoSpawnGreatPerson(UnitTypes, bool, bool, bool)
- CvPlayer::processPolicies(PolicyTypes, int)
- CvGameReligions::FoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, CvCity *)
- CvUnit::DoAttrition()
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)