CvGame::getGameSpeedInfo() const
- Defined in
- CvGame.cpp, line 7067
- Class
- CvGame
- Hook name
CivHooks::CvGame_getGameSpeedInfo
Hooks
static bool BeforeCvGame_getGameSpeedInfo(const CvGame* self, CvGameSpeedInfo*& result);static void AfterCvGame_getGameSpeedInfo(const CvGame* self, CvGameSpeedInfo*& result);static CvGameSpeedInfo& ReplaceCvGame_getGameSpeedInfo(CvGameSpeedInfo& (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getGameSpeedInfo>(host, &BeforeCvGame_getGameSpeedInfo);CivRegisterAfter<CivHooks::CvGame_getGameSpeedInfo>(host, &AfterCvGame_getGameSpeedInfo);CivRegisterReplace<CivHooks::CvGame_getGameSpeedInfo>(host, &ReplaceCvGame_getGameSpeedInfo);
Code
7067CvGameSpeedInfo& CvGame::getGameSpeedInfo() const7068{7069 CvGameSpeedInfo* pkGameSpeedInfo = GC.getGameSpeedInfo(getGameSpeedType());7070 if(pkGameSpeedInfo == NULL)7071 {7072 const char* szError = "ERROR: Game does not contain valid game speed!!";7073 GC.LogMessage(szError);7074 CvAssertMsg(false, szError);7075 }70767077#pragma warning ( push )7078#pragma warning ( disable : 6011 ) // Dereferencing NULL pointer7079 return *pkGameSpeedInfo;7080#pragma warning ( pop )7081}
Calls
Called by
95 functions in 18 files
- CvCity::GetBuyPlotCost(int, int) const
- CvCity::GetFaithPurchaseCost(BuildingTypes)
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CvCity::GetJONSCultureThreshold() const
- CvCity::GetPurchaseCostFromProduction(int)
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCityCitizens::GetSpecialistUpgradeThreshold(UnitClassTypes)
- CityStrategyAIHelpers::IsTestCityStrategy_CapitalNeedSettler(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedTileImprovers(AICityStrategyTypes, CvCity *)
- CvPlayerCulture::ChangeInfluenceOn(PlayerTypes, int, bool, bool)
- CvPlayerCulture::DoArchaeologyChoice(ArchaeologyChoiceType)
- CvPlayerCulture::GetTourismBlastStrength(int)
- CvPlayerCulture::GetWrittenArtifactCulture() const
- CvDealAI::DoAddPlayersAlliesToTreaty(PlayerTypes, CvDeal *)
- CvDealAI::DoTradeScreenOpened()
- CvDealAI::GetEmbassyValue(bool, PlayerTypes, bool)
- CvDealAI::IsOfferPeace(PlayerTypes, CvDeal *, bool)
- CvDiplomacyAI::DoCounters()
- CvDiplomacyAI::DoExpansionWarningStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoFromUIDiploEvent(PlayerTypes, FromUIDiploEventTypes, int, int)
- CvDiplomacyAI::DoPlayerDeclaredWarOnSomeone(PlayerTypes, TeamTypes)
- CvDiplomacyAI::DoPlotBuyingWarningStatement(PlayerTypes, DiploStatementTypes &)
- CvDiplomacyAI::DoTestPromises()
- CvDiplomacyAI::GetBrokenBorderPromiseScore(PlayerTypes)
- CvDiplomacyAI::GetBrokenExpansionPromiseScore(PlayerTypes)
- CvDiplomacyAI::GetIgnoredBorderPromiseScore(PlayerTypes)
- CvDiplomacyAI::GetIgnoredExpansionPromiseScore(PlayerTypes)
- CvDiplomacyAI::GetWeDeclaredWarOnFriendScore(PlayerTypes)
- CvDiplomacyAI::IsPlayerMadeBorderPromise(PlayerTypes, int)
- CvDiplomacyAI::IsPlayerMadeExpansionPromise(PlayerTypes, int)
- CvPlayerEspionage::CalcPerTurn(int, CvCity *, int)
- CvPlayerEspionage::CalcRequired(int, CvCity *, int)
- CvGame::GetDealDuration()
- CvGame::GetFaithCost(CvUnitEntry *) const
- CvGame::GetPeaceDuration()
- CvGame::GetResearchAgreementCost(PlayerTypes, PlayerTypes)
- CvGame::GetTurnsBetweenMinorCivElections()
- CvGame::doTurn()
- CvGame::getImprovementUpgradeTime(ImprovementTypes, const CvPlot *) const
- CvGame::goldenAgeLength() const
- CvGame::init(HandicapTypes)
- CvGame::victoryDelay(VictoryTypes) const
- CvMinorCivAI::DoTestSeedGlobalQuestCountdown(bool)
- CvMinorCivAI::DoTestSeedQuestCountdownForPlayer(PlayerTypes, bool)
- CvMinorCivAI::GetBullyGoldAmount(PlayerTypes)
- CvMinorCivAI::GetBuyoutCost(PlayerTypes)
- CvMinorCivAI::GetFriendshipChangePerTurnTimes100(PlayerTypes)
- CvMinorCivAI::GetFriendshipFromGoldGift(PlayerTypes, int)
- CvMinorCivAI::GetSpawnBaseTurns(PlayerTypes)
- CvMinorCivQuest::GetEndTurn() const
- CvPlayer::DoGreatPersonExpended(UnitTypes, CvUnit *)
- CvPlayer::DoResetCityRevoltCounter()
- CvPlayer::DoResetUprisingCounter(bool)
- CvPlayer::DoSeedGreatPeopleSpawnCounter()
- CvPlayer::GetGoldenAgeProgressThreshold() const
- CvPlayer::getAdvancedStartImprovementCost(ImprovementTypes, bool, CvPlot *)
- CvPlayer::getAdvancedStartRouteCost(RouteTypes, bool, CvPlot *)
- CvPlayer::getBuildCost(const CvPlot *, BuildTypes) const
- CvPlayer::getGrowthThreshold(int) const
- CvPlayer::getMaxStockpile() 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::processPolicies(PolicyTypes, int)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::getBuildTime(BuildTypes, PlayerTypes) const
- CvPlot::getFeatureProduction(BuildTypes, PlayerTypes, CvCity **) const
- CvPlayerPolicies::GetNextPolicyCost()
- CvCityReligions::AddHolyCityPressure()
- CvCityReligions::AddSpyPressure(ReligionTypes, int)
- CvCityReligions::CityConvertsReligion(ReligionTypes, ReligionTypes, PlayerTypes)
- CvCityReligions::GetPressurePerTurn(ReligionTypes, int &)
- CvGameReligions::FoundPantheon(PlayerTypes, BeliefTypes)
- CvGameReligions::GetAdjacentCityReligiousPressure(ReligionTypes, CvCity *, CvCity *, int &, bool)
- CvGameReligions::Init()
- CvPlayerReligions::GetCostNextProphet(bool, bool, bool) const
- CvTeamTechs::GetResearchCost(TechTypes) const
- CvGameTrade::CreateTradeRoute(CvCity *, CvCity *, DomainTypes, TradeConnectionType, int &)
- CvPlayerTrade::UpdateTradeConnectionWasPlundered()
- CvTreasury::CalculateInflationRate()
- CvUnit::DoUpgradeTo(UnitTypes, bool)
- CvUnit::GetGoldenAgeTurns() const
- CvUnit::GetScrapGold() const
- CvUnit::getBlastTourism()
- CvUnit::getDiscoverAmount()
- CvUnit::getGivePoliciesCulture()
- CvUnit::getMaxHurryProduction(CvCity *) const
- CvUnit::getTradeGold(const CvPlot *) const
- CvLeague::GetProjectCostPerPlayer(LeagueProjectTypes) const
- CvLeague::GetSessionTurnInterval()