CvPlayer::GetFaith() const
- Defined in
- CvPlayer.cpp, line 11390
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_GetFaith
Hooks
static bool BeforeCvPlayer_GetFaith(const CvPlayer* self, int& result);static void AfterCvPlayer_GetFaith(const CvPlayer* self, int& result);static int ReplaceCvPlayer_GetFaith(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_GetFaith>(host, &BeforeCvPlayer_GetFaith);CivRegisterAfter<CivHooks::CvPlayer_GetFaith>(host, &AfterCvPlayer_GetFaith);CivRegisterReplace<CivHooks::CvPlayer_GetFaith>(host, &ReplaceCvPlayer_GetFaith);
Code
11390int CvPlayer::GetFaith() const11391{11392 return m_iFaith;11393}
Called by
- CvCity::IsCanPurchase(bool, bool, UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::Purchase(UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvEconomicAI::LogMonitor()
- CvPlayer::ChangeFaith(int)
- CvPlayer::SetFaith(int)
- CvGameReligions::CanCreatePantheon(PlayerTypes, bool)
- CvGameReligions::CheckSpawnGreatProphet(CvPlayer &)
- CvGameReligions::DoPlayerTurn(CvPlayer &)
- CvPlayerReligions::CanAffordFaithPurchase(int) const
- CvPlayerReligions::CanAffordNextPurchase()
- CvReligionAI::BuyFaithBuilding(ReligionTypes, BuildingClassTypes)
- CvReligionAI::BuyGreatPerson(UnitTypes)
- CvReligionAI::BuyInquisitor(ReligionTypes)
- CvReligionAI::BuyMissionary(ReligionTypes)
- CvReligionAI::DoFaithPurchases()
- CvLuaCity::lGetFaithPurchaseBuildingTooltip(lua_State *)
- CvLuaCity::lGetFaithPurchaseUnitTooltip(lua_State *)
- CvLuaPlayer::lGetFaith(lua_State *)