CvPlayer::isGoldenAge() const
- Defined in
- CvPlayer.cpp, line 13758
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_isGoldenAge
Hooks
static bool BeforeCvPlayer_isGoldenAge(const CvPlayer* self, bool& result);static void AfterCvPlayer_isGoldenAge(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_isGoldenAge(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_isGoldenAge>(host, &BeforeCvPlayer_isGoldenAge);CivRegisterAfter<CivHooks::CvPlayer_isGoldenAge>(host, &AfterCvPlayer_isGoldenAge);CivRegisterReplace<CivHooks::CvPlayer_isGoldenAge>(host, &ReplaceCvPlayer_isGoldenAge);
Code
13758bool CvPlayer::isGoldenAge() const13759{13760 return (getGoldenAgeTurns() > 0);13761}
Calls
Called by
- CvCity::getBaseYieldRateModifier(YieldTypes, int, CvString *) const
- CvCity::getTotalGreatPeopleRateModifier() const
- CvCityCitizens::DoSpecialists()
- CvCityCulture::GetBaseTourism()
- CvCityCulture::GetTourismTooltip()
- CvPlayerCulture::GetTourismModifierWith(PlayerTypes) const
- CvPlayerCulture::GetTourismModifierWithTooltip(PlayerTypes) const
- CvPlayer::GetTotalJONSCulturePerTurn() const
- CvPlayer::changeGoldenAgeTurns(int)
- CvPlayerAI::GetDirectiveArtist(CvUnit *)
- CvPlot::calculateYield(YieldTypes, bool)
- CvPlot::getYieldWithBuild(BuildTypes, YieldTypes, bool, PlayerTypes) const
- CvUnit::GetGenericMaxStrengthModifier(const CvUnit *, const CvPlot *, bool) const
- CvUnit::GetMaxRangedCombatStrength(const CvUnit *, const CvCity *, bool, bool) const
- CvUnit::baseMoves(DomainTypes) const
- CvLuaPlayer::lIsGoldenAge(lua_State *)