CvGame::getStartEraInfo() const
- Defined in
- CvGame.cpp, line 7090
- Class
- CvGame
- Hook name
CivHooks::CvGame_getStartEraInfo
Hooks
static bool BeforeCvGame_getStartEraInfo(const CvGame* self, CvEraInfo*& result);static void AfterCvGame_getStartEraInfo(const CvGame* self, CvEraInfo*& result);static CvEraInfo& ReplaceCvGame_getStartEraInfo(CvEraInfo& (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getStartEraInfo>(host, &BeforeCvGame_getStartEraInfo);CivRegisterAfter<CivHooks::CvGame_getStartEraInfo>(host, &AfterCvGame_getStartEraInfo);CivRegisterReplace<CivHooks::CvGame_getStartEraInfo>(host, &ReplaceCvGame_getStartEraInfo);
Code
7090CvEraInfo& CvGame::getStartEraInfo() const7091{7092 CvEraInfo* pkStartEraInfo = GC.getEraInfo(getStartEra());7093 if(pkStartEraInfo == NULL)7094 {7095 const char* szError = "ERROR: Game does not contain valid start era!!";7096 GC.LogMessage(szError);7097 CvAssertMsg(false, szError);7098 }70997100#pragma warning ( push )7101#pragma warning ( disable : 6011 ) // Dereferencing NULL pointer7102 return *pkStartEraInfo;7103#pragma warning ( pop )7104}
Calls
Called by
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCityCitizens::GetSpecialistUpgradeThreshold(UnitClassTypes)
- CvGame::getImprovementUpgradeTime(ImprovementTypes, const CvPlot *) const
- CvGame::init(HandicapTypes)
- CvGame::initScoreCalculation()
- CvPlayer::getAdvancedStartPopCost(bool, CvCity *)
- CvPlayer::getGrowthThreshold(int) const
- CvPlayer::getNewCityProductionValue() const
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPlayer::getProductionNeeded(ProjectTypes) const
- CvPlayer::getProductionNeeded(SpecialistTypes) const
- CvPlayer::getProductionNeeded(UnitTypes) const
- CvPlayer::greatAdmiralThreshold() const
- CvPlayer::greatGeneralThreshold() const
- CvPlayer::initFreeState(CvGameInitialItemsOverrides &)
- CvPlayer::initFreeUnits(CvGameInitialItemsOverrides &)
- CvPlot::getBuildTime(BuildTypes, PlayerTypes) const
- CvTeamTechs::GetResearchCost(TechTypes) const
- CvTreasury::GetBuildingGoldMaintenance() const
- CvLeague::GetProjectCostPerPlayer(LeagueProjectTypes) const