CvUnitEntry::IsRemoveHeresy() const
- Defined in
- CvUnitClasses.cpp, line 669
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_IsRemoveHeresy
Hooks
static bool BeforeCvUnitEntry_IsRemoveHeresy(const CvUnitEntry* self, bool& result);static void AfterCvUnitEntry_IsRemoveHeresy(const CvUnitEntry* self, bool& result);static bool ReplaceCvUnitEntry_IsRemoveHeresy(bool (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_IsRemoveHeresy>(host, &BeforeCvUnitEntry_IsRemoveHeresy);CivRegisterAfter<CivHooks::CvUnitEntry_IsRemoveHeresy>(host, &AfterCvUnitEntry_IsRemoveHeresy);CivRegisterReplace<CivHooks::CvUnitEntry_IsRemoveHeresy>(host, &ReplaceCvUnitEntry_IsRemoveHeresy);
Code
668/// Can this Unit Remove Heresy in a City?669bool CvUnitEntry::IsRemoveHeresy() const670{671 return m_bRemoveHeresy;672}
Called by
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvPlayer::addFreeUnit(UnitTypes, UnitAITypes)
- CvPlayer::canTrain(UnitTypes, bool, bool, bool, bool, CvString *) const
- CvReligionAI::HaveEnoughInquisitors(ReligionTypes) const
- CvReligionAIHelpers::DoesUnitPassFaithPurchaseCheck(CvPlayer &, UnitTypes)
- CvReligionAIHelpers::GetBestCityFaithUnitPurchase(CvPlayer &, UnitTypes, ReligionTypes)
- CvUnit::CanRemoveHeresy(const CvPlot *) const
- CvUnit::canGift(bool, bool) const
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)