CvTechEntry::GetEra() const
- Defined in
- CvTechClasses.cpp, line 244
- Class
- CvTechEntry
- Hook name
CivHooks::CvTechEntry_GetEra
Hooks
static bool BeforeCvTechEntry_GetEra(const CvTechEntry* self, int& result);static void AfterCvTechEntry_GetEra(const CvTechEntry* self, int& result);static int ReplaceCvTechEntry_GetEra(int (*original)(const CvTechEntry*), const CvTechEntry* self);CivRegisterBefore<CivHooks::CvTechEntry_GetEra>(host, &BeforeCvTechEntry_GetEra);CivRegisterAfter<CivHooks::CvTechEntry_GetEra>(host, &AfterCvTechEntry_GetEra);CivRegisterReplace<CivHooks::CvTechEntry_GetEra>(host, &ReplaceCvTechEntry_GetEra);
Code
243/// Historical era within tech tree244int CvTechEntry::GetEra() const245{246 return m_iEra;247}
Called by
- CvCity::GetLocalResourceWonderProductionMod(BuildingTypes, CvString *) const
- CvCity::IsCanPurchase(bool, bool, UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::getProductionModifier(BuildingTypes, CvString *) const
- CvDllTechInfo::GetEra() const
- CvEconomicAI::DisbandLongObsoleteUnits()
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvGame::initFreeState(CvGameInitialItemsOverrides &)
- CvGame::initScoreCalculation()
- getTechScore(TechTypes)
- CvPlayer::canBuild(const CvPlot *, BuildTypes, bool, bool, bool, bool) const
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvUnit::upgradePrice(UnitTypes) const
- SetPlayerInitialItems(CvPlayer &, const CvWorldBuilderMap::Player &)