CvGlobals::getEraInfo(EraTypes)
- Defined in
- CvGlobals.cpp, line 3940
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getEraInfo_with_EraTypes
Hooks
static bool BeforeCvGlobals_getEraInfo_with_EraTypes(CvGlobals* self, EraTypes eEraNum, CvEraInfo*& result);static void AfterCvGlobals_getEraInfo_with_EraTypes(CvGlobals* self, EraTypes eEraNum, CvEraInfo*& result);static CvEraInfo* ReplaceCvGlobals_getEraInfo_with_EraTypes(CvEraInfo* (*original)(CvGlobals*, EraTypes), CvGlobals* self, EraTypes eEraNum);CivRegisterBefore<CivHooks::CvGlobals_getEraInfo_with_EraTypes>(host, &BeforeCvGlobals_getEraInfo_with_EraTypes);CivRegisterAfter<CivHooks::CvGlobals_getEraInfo_with_EraTypes>(host, &AfterCvGlobals_getEraInfo_with_EraTypes);CivRegisterReplace<CivHooks::CvGlobals_getEraInfo_with_EraTypes>(host, &ReplaceCvGlobals_getEraInfo_with_EraTypes);
Code
3940CvEraInfo* CvGlobals::getEraInfo(EraTypes eEraNum)3941{3942 CvAssert(eEraNum > -1);3943 CvAssert(eEraNum < GC.getNumEraInfos());3944 return m_aEraInfo[eEraNum];3945}
Calls
std::vector::operator[]
Called by
31 functions in 12 files
- CvCity::GetCityBombardEffectTag() const
- CvCity::GetCityBombardEffectTagHash() const
- CvCity::GetFaithPurchaseCost(BuildingTypes)
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvCityCulture::GetThemingTooltip(BuildingClassTypes) const
- CvGameCulture::GetGreatWorkEra(int) const
- CvGameCulture::GetGreatWorkEraAbbreviation(int) const
- CvGameCulture::GetGreatWorkEraShort(int) const
- CvGameCulture::GetGreatWorkTooltip(int, PlayerTypes) const
- CvDiplomacyAI::GetBrokenNoConvertPromiseScore(PlayerTypes)
- CvDiplomacyAI::GetDifferentLatePoliciesScore(PlayerTypes)
- CvDiplomacyAI::GetHasAdoptedHisReligionScore(PlayerTypes)
- CvDiplomacyAI::GetHasAdoptedMyReligionScore(PlayerTypes)
- CvDiplomacyAI::GetIgnoredNoConvertPromiseScore(PlayerTypes)
- CvDiplomacyAI::GetReligiousConversionPointsScore(PlayerTypes)
- CvDiplomacyAI::GetSameLatePoliciesScore(PlayerTypes)
- CvDllGameContext::GetEraInfo(EraTypes)
- CvGame::GetResearchAgreementCost(PlayerTypes, PlayerTypes)
- CvGame::getStartEraInfo() const
- CvGame::init(HandicapTypes)
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPreGame::setEra(const CvString &)
- CvTeam::SetCurrentEra(EraTypes)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvPlayerTrade::GetTradeConnectionValueTimes100(const TradeConnection &, YieldTypes, bool)
- CvUnit::GetEmbarkedUnitDefense() const
- CvUnit::kill(bool, PlayerTypes)
- CvGameLeagues::LogSpecialSession(LeagueSpecialSessionTypes)
- CvLeague::GetLeagueSplashDescription(LeagueSpecialSessionTypes, bool)
- CvWorldBuilderMapLoader::GetMapPreview(lua_State *)
- SetPlayerInitialItems(CvPlayer &, const CvWorldBuilderMap::Player &)