CvGameReligions::GetReligion(ReligionTypes, PlayerTypes) const
- Defined in
- CvReligionClasses.cpp, line 1654
- Class
- CvGameReligions
- Hook name
CivHooks::CvGameReligions_GetReligion
Hooks
static bool BeforeCvGameReligions_GetReligion(const CvGameReligions* self, ReligionTypes eReligion, PlayerTypes ePlayer, const CvReligion*& result);static void AfterCvGameReligions_GetReligion(const CvGameReligions* self, ReligionTypes eReligion, PlayerTypes ePlayer, const CvReligion*& result);static const CvReligion* ReplaceCvGameReligions_GetReligion(const CvReligion* (*original)(const CvGameReligions*, ReligionTypes, PlayerTypes), const CvGameReligions* self, ReligionTypes eReligion, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvGameReligions_GetReligion>(host, &BeforeCvGameReligions_GetReligion);CivRegisterAfter<CivHooks::CvGameReligions_GetReligion>(host, &AfterCvGameReligions_GetReligion);CivRegisterReplace<CivHooks::CvGameReligions_GetReligion>(host, &ReplaceCvGameReligions_GetReligion);
Code
1653/// Return a pointer to a religion that has been founded1654const CvReligion* CvGameReligions::GetReligion(ReligionTypes eReligion, PlayerTypes ePlayer) const1655{1656 ReligionList::const_iterator it;1657 for(it = m_CurrentReligions.begin(); it != m_CurrentReligions.end(); it++)1658 {1659 // If talking about a pantheon, make sure to match the player1660 if(it->m_eReligion == eReligion && it->m_eReligion == RELIGION_PANTHEON)1661 {1662 if(it->m_eFounder == ePlayer)1663 {1664 return it;1665 }1666 }1667 else if(it->m_eReligion == eReligion)1668 {1669 return it;1670 }1671 }16721673 return NULL;1674}
Calls
BaseVector::beginBaseVector::end
Called by
87 functions in 18 files
- CvCityBuildings::GetYieldFromGreatWorks(YieldTypes) const
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvCity::GetJONSCultureThreshold() const
- CvCity::GetLocalHappiness() const
- CvCity::GetYieldPerTurnFromReligion(ReligionTypes, YieldTypes) const
- CvCity::GetYieldPerTurnFromUnimprovedFeatures(YieldTypes) const
- CvCity::HasBelief(BeliefTypes) const
- CvCity::IsCanPurchase(bool, bool, UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::UpdateReligion(ReligionTypes)
- CvCity::foodDifferenceTimes100(bool, CvString *) const
- CvCity::getBaseYieldRateModifier(YieldTypes, int, CvString *) const
- CvCity::getExtraSpecialistYield(YieldTypes, SpecialistTypes) const
- CvCity::getProductionModifier(BuildingTypes, CvString *) const
- CvCity::getStrengthValue(bool) const
- CvCityCitizens::DoSpecialists()
- CvCityCitizens::IsAIWantSpecialistRightNow()
- CvCityCulture::GetBaseTourismBeforeModifiers()
- CvCityCulture::GetTourismTooltip()
- CvGameCulture::GetGreatWorkTooltip(int, PlayerTypes) const
- CvHomelandAI::ExecuteAdmiralMoves()
- CvHomelandAI::ExecuteGeneralMoves()
- CvMinorCivQuest::DoFinishQuest()
- CvMinorCivQuest::DoStartQuest(int)
- CvNotifications::IsNotificationExpired(int)
- CvPlayer::DoCivilianReturnLogic(bool, PlayerTypes, int)
- CvPlayer::DoGreatPersonExpended(UnitTypes, CvUnit *)
- CvPlayer::DoYieldBonusFromKill(YieldTypes, CvUnit *, CvUnit *, UnitTypes, int, int, bool, int &)
- CvPlayer::GetCulturePerTurnFromReligion() const
- CvPlayer::GetFaithPerTurnFromReligion() const
- CvPlayer::GetHappinessFromReligion()
- CvPlayer::GetScoreFromReligion() const
- CvPlayer::GetYieldPerTurnFromReligion(YieldTypes) const
- CvPlayer::HasBelief(BeliefTypes) const
- CvPlayer::HasEnhancedReligion() const
- CvPlayerAI::CanFoundOrEnhanceReligion()
- CvPlayerAI::GetDirectiveProphet(CvUnit *)
- CvPlot::calculateImprovementYieldChange(ImprovementTypes, YieldTypes, PlayerTypes, bool, RouteTypes) const
- CvPlot::calculateNatureYield(YieldTypes, TeamTypes, bool) const
- CvCityReligions::AddProphetSpread(ReligionTypes, int, PlayerTypes)
- CvCityReligions::AddReligiousPressure(CvReligiousFollowChangeReason, ReligionTypes, int, PlayerTypes)
- CvCityReligions::CityConvertsReligion(ReligionTypes, ReligionTypes, PlayerTypes)
- CvCityReligions::GetSecondaryReligionPantheonBelief()
- CvCityReligions::RemoveOtherReligions(ReligionTypes, PlayerTypes)
- CvCityReligions::SimulateProphetSpread(ReligionTypes, int)
- CvCityReligions::SimulateReligiousPressure(ReligionTypes, int)
- CvCityReligions::UpdateNumTradeRouteConnections(CvCity *)
- CvCityReligions::WouldExertTradeRoutePressureToward(CvCity *, ReligionTypes &, int &)
- CvGameReligions::CanFoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, CvCity *)
- CvGameReligions::CheckSpawnGreatProphet(CvPlayer &)
- CvGameReligions::FoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, CvCity *)
- CvGameReligions::GetAdjacentCityReligiousPressure(ReligionTypes, CvCity *, CvCity *, int &, bool)
- CvGameReligions::GetBeliefYieldForKill(YieldTypes, int, int, PlayerTypes)
- CvGameReligions::HasAddedReformationBelief(PlayerTypes) const
- CvGameReligions::IsCityStateFriendOfReligionFounder(ReligionTypes, PlayerTypes)
- CvGameReligions::IsEligibleForFounderBenefits(ReligionTypes, PlayerTypes) const
- CvPlayerReligions::GetCityStateInfluenceModifier() const
- CvPlayerReligions::GetCityStateMinimumInfluence(ReligionTypes) const
- CvPlayerReligions::GetCostNextProphet(bool, bool, bool) const
- CvPlayerReligions::GetSpyPressure() const
- CvReligionAI::ChooseProphetConversionCity(bool) const
- CvReligionAI::DoFaithPurchases()
- CvReligionAI::FaithBuildingAvailable(ReligionTypes) const
- CvReligionAIHelpers::GetBestCityFaithBuildingPurchase(CvPlayer &, BuildingTypes, ReligionTypes)
- CvReligionAIHelpers::GetBestCityFaithUnitPurchase(CvPlayer &, UnitTypes, ReligionTypes)
- CvPlayerTrade::GetTradeConnectionPolicyValueTimes100(const TradeConnection &, YieldTypes)
- CvPlayerTraits::ChooseMayaBoost()
- CvUnit::CanEnhanceReligion(const CvPlot *) const
- CvUnit::DoSpreadReligion()
- CvUnit::GetConversionStrength(const CvCity *) const
- CvUnit::GetGenericMaxStrengthModifier(const CvUnit *, const CvPlot *, bool) const
- CvUnit::GetMaxRangedCombatStrength(const CvUnit *, const CvCity *, bool, bool) const
- CvUnit::healRate(const CvPlot *) const
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvLeague::GetCurrentEffectsSummary(PlayerTypes)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)
- LeagueHelpers::GetTextForChoice(ResolutionDecisionTypes, int)
- CvLuaCity::lGetFaithBuildingTourism(lua_State *)
- CvLuaCity::lGetReligionBuildingClassHappiness(lua_State *)
- CvLuaCity::lGetReligionBuildingClassYieldChange(lua_State *)
- CvLuaCity::lGetReligionCityRangeStrikeModifier(lua_State *)
- CvLuaGame::lGetBeliefsInReligion(lua_State *)
- CvLuaGame::lGetFounder(lua_State *)
- CvLuaGame::lGetHolyCityForReligion(lua_State *)
- CvLuaGame::lGetReligionName(lua_State *)
- CvLuaPlayer::lGetBeliefsInPantheon(lua_State *)
- CvLuaPlayer::lGetFoundedReligionEnemyCityCombatMod(lua_State *)
- CvLuaPlayer::lGetFoundedReligionFriendlyCityCombatMod(lua_State *)