Types related to global configuration settings. More...
#include "date_type.h"
#include "town_type.h"
#include "transport_type.h"
#include "network/core/config.h"
#include "company_type.h"
#include "openttd.h"
#include "cargotype.h"
#include "linkgraph/linkgraph_type.h"
Go to the source code of this file.
Data Structures | |
struct | DifficultySettings |
Settings related to the difficulty of the game. More... | |
struct | GUISettings |
Settings related to the GUI and other stuff that is not saved in the savegame. More... | |
struct | LocaleSettings |
Settings related to currency/unit systems. More... | |
struct | NetworkSettings |
All settings related to the network. More... | |
struct | GameCreationSettings |
Settings related to the creation of games. More... | |
struct | ConstructionSettings |
Settings related to construction in-game. More... | |
struct | AISettings |
Settings related to the AI. More... | |
struct | OPFSettings |
Settings related to the old pathfinder. More... | |
struct | NPFSettings |
Settings related to the new pathfinder. More... | |
struct | YAPFSettings |
Settings related to the yet another pathfinder. More... | |
struct | PathfinderSettings |
Settings related to all pathfinders. More... | |
struct | OrderSettings |
Settings related to orders. More... | |
struct | VehicleSettings |
Settings related to vehicles. More... | |
struct | EconomySettings |
Settings related to the economy. More... | |
struct | LinkGraphSettings |
struct | StationSettings |
Settings related to stations. More... | |
struct | VehicleDefaultSettings |
Default settings for vehicles. More... | |
struct | CompanySettings |
Settings that can be set per company. More... | |
struct | GameSettings |
All settings together for the game. More... | |
struct | ClientSettings |
All settings that are only important for the local client. More... | |
Enumerations | |
enum | IndustryDensity { ID_FUND_ONLY, ID_MINIMAL, ID_VERY_LOW, ID_LOW, ID_NORMAL, ID_HIGH, ID_END } |
Available industry map generation densities. More... | |
Functions | |
static GameSettings & | GetGameSettings () |
Get the settings-object applicable for the current situation: the newgame settings when we're in the main menu and otherwise the settings of the current game. | |
Variables | |
ClientSettings | _settings_client |
The current settings for this game. | |
GameSettings | _settings_game |
The current settings for this game. | |
GameSettings | _settings_newgame |
The settings values that are used for new games and/or modified in config file. |
Types related to global configuration settings.
Definition in file settings_type.h.
enum IndustryDensity |
Available industry map generation densities.
Definition at line 25 of file settings_type.h.
The current settings for this game.
Definition at line 75 of file settings.cpp.
Referenced by AddNewsItem(), AfterLoadGame(), AIDebugWindow::AIDebugWindow(), ServerNetworkGameSocketHandler::AllowConnection(), ServerNetworkAdminSocketHandler::AllowConnection(), GameOptionsWindow::BuildDropDownList(), BuildLandLegend(), BuildOwnerLegend(), BuildRailClick_Remove(), CalcRaildirsDrawstyle(), CanBuildVehicleInfrastructure(), CcBuildRailTunnel(), CcBuildRoadTunnel(), CcRoadStop(), CheckMinActiveClients(), CheckOrders(), CheckPauseOnJoin(), BuildRailStationWindow::CheckSelectedSize(), CheckSoftLimit(), ClearPathReservation(), CmdCompanyCtrl(), CompaniesYearlyLoop(), Order::ConvertFromOldSavegame(), DispatchRightClickEvent(), DistributeQueue(), DoAutosave(), ClientNetworkContentSocketHandler::DownloadSelectedContent(), DrawBridgeMiddle(), DrawCategories(), DeparturesWindow< Twaypoint >::DrawDeparturesListItems(), DrawTile_Road(), DrawTile_TunnelBridge(), DrawTrackBits(), VehicleViewWindow::DrawWidget(), TimetableWindow::DrawWidget(), DrawYearColumn(), FormatString(), GenerateDefaultSaveName(), GenericPlaceSignals(), GetLogPrefix(), GetSmallMapContoursPixels(), GetSmallMapIndustriesPixels(), GetSmallMapOwnerPixels(), GetSmallMapRoutesPixels(), GetSmallMapStuckRoutesPixels(), GetSmallMapVehiclesPixels(), HandleAutoscroll(), HandleAutoSignalPlacement(), HandleMouseEvents(), Vehicle::HandlePathfindingResult(), HandleViewportScroll(), HandleWindowDragging(), IConsoleDebug(), IConsoleWarning(), InitializeRailGUI(), Town::Label(), LoadUnloadVehicle(), MakeDepartureList(), MaybeStartNewCompany(), NetworkAutoCleanCompanies(), NetworkCheckRestartMap(), NetworkClientPreferTeamChat(), NetworkDisconnect(), NetworkInitChatMessage(), NetworkMaxCompaniesReached(), NetworkMaxSpectatorsReached(), NetworkServer_Tick(), NetworkServerSendChat(), NetworkServerSetCompanyPassword(), NetworkStartUp(), NetworkUDPAdvertise(), NetworkUDPAdvertiseThread(), NetworkUDPInitialize(), NetworkUDPRemoveAdvertiseThread(), NetworkUpdateClientName(), TimetableWindow::OnClick(), BuildRoadStationWindow::OnClick(), BuildSignalWindow::OnClick(), BuildRailStationWindow::OnClick(), BuildRailToolbarWindow::OnClick(), NetworkLobbyWindow::OnClick(), BuildDocksStationWindow::OnClick(), DeparturesWindow< Twaypoint >::OnClick(), SetMinutesWindow::OnClick(), BuildAirportWindow::OnClick(), GameOptionsWindow::OnDropdownSelect(), BuildSignalWindow::OnInvalidateData(), SaveLoadWindow::OnInvalidateData(), SelectCompanyLiveryWindow::OnInvalidateData(), MainWindow::OnKeyPress(), ExtraViewportWindow::OnMouseWheel(), SmallMapWindow::OnMouseWheel(), MainWindow::OnMouseWheel(), OnNewDay(), OnNewMonth(), OnNewYear(), BuildRoadStationWindow::OnPaint(), BuildRailStationWindow::OnPaint(), BuildDocksStationWindow::OnPaint(), DeparturesWindow< Twaypoint >::OnPaint(), CompanyFinancesWindow::OnPaint(), BuildRoadToolbarWindow::OnPlaceMouseUp(), BuildRailToolbarWindow::OnPlaceMouseUp(), OrdersWindow::OnPlaceObject(), BuildIndustryWindow::OnPlaceObject(), TimetableWindow::OnQueryTextFinished(), StatusBarWindow::OnTick(), DeparturesWindow< Twaypoint >::OnTick(), OrdersWindow::OrderClick_NearestDepot(), CopyPaste::PasteArea(), PlaceRail_Station(), PositionMainToolbar(), PositionNetworkChatWindow(), PositionNewsMessage(), PositionStatusbar(), ServerNetworkGameSocketHandler::Receive_CLIENT_COMMAND(), ServerNetworkUDPSocketHandler::Receive_CLIENT_FIND_SERVER(), MasterNetworkUDPSocketHandler::Receive_MASTER_ACK_REGISTER(), ResetSignalVariant(), SaveOrLoad(), ServerNetworkGameSocketHandler::SendConfigUpdate(), ClientNetworkGameSocketHandler::SendJoin(), ServerNetworkGameSocketHandler::SendNeedCompanyPassword(), ServerNetworkGameSocketHandler::SendWelcome(), ServerNetworkAdminSocketHandler::SendWelcome(), ServerNetworkGameSocketHandler::ServerNetworkGameSocketHandler(), SetDefaultRailGui(), GameOptionsWindow::SetStringParameters(), BuildSignalWindow::SetStringParameters(), GRFConfig::SetSuitablePalette(), SetTimetableParams(), NWidgetLeaf::SetupSmallestSize(), ShowErrorMessage(), ShowMeasurementTooltips(), ShowNetworkLobbyWindow(), ShowSelectBaseStationIfNeeded(), ShowSetDateWindow(), Town::SmallLabel(), IConsoleLine::Truncate(), TryPathReserve(), TryReserveRailTrack(), UnreserveRailTrack(), UpdateAircraftSpeed(), TimetableWindow::UpdateSelectionStates(), UpdateViewportPosition(), TimetableWindow::UpdateWidgetSize(), CompanyFinancesWindow::UpdateWidgetSize(), VehicleEnterDepot(), and VpSelectTilesWithMethod().
The current settings for this game.
Definition at line 76 of file settings.cpp.
Referenced by _GenerateWorld(), AddInflation(), AffectSpeedByZChange(), AfterLoadGame(), AfterLoadVehicles(), AircraftController(), AircraftEventHandler_AtTerminal(), AITileList_IndustryAccepting::AITileList_IndustryAccepting(), AITileList_IndustryProducing::AITileList_IndustryProducing(), AllowMoreHeightlevels(), AlwaysDrawUnpavedRoads(), AnimateTile_Road(), AutoslopeEnabled(), Subsidy::AwardTo(), BuildRailClick_Remove(), BuildTownHouse(), CalcEngineReliability(), AIRoad::CanBuildConnectedRoadParts(), AIIndustryType::CanBuildIndustry(), CanBuildVehicleInfrastructure(), CanExpandRailStation(), AIIndustryType::CanProspectIndustry(), AI::CanStartNew(), ChangeIndustryProduction(), ChangeOwnershipOfCompanyItems(), CheckAllowRemoveRoad(), CheckAllowRemoveTunnelBridge(), CheckBridgeAvailability(), CheckBuildableTile(), CheckCanTerraformSurroundingTiles(), AISettingsWindow::CheckDifficultyLevel(), CheckFlatLandRoadStop(), CheckforTownRating(), CheckIfAuthorityAllowsNewStation(), CheckIfCanLevelIndustryPlatform(), CheckIfIndustryTilesAreFree(), CheckIndustryCloseDownProtection(), CheckInfraUsageAllowed(), CheckNewIndustry_Farm(), CheckNewIndustry_Forest(), CheckNewIndustry_OilRefinery(), CheckNewIndustry_OilRig(), CheckNewTrain(), CheckNextTrainTile(), CheckRailSlope(), CheckRoadSlope(), CheckSharingChangePossible(), CheckSwitchToEuro(), CheckTLCSize(), CheckTrainAttachment(), CheckTrainStayInWormHole(), CheckVehicleBreakdown(), ChooseShipTrack(), ClickChangeClimateCheat(), CmdAutofillTimetable(), CmdAutomateTimetable(), CmdBuildAirport(), CmdBuildBridge(), CmdBuildDock(), CmdBuildIndustry(), CmdBuildRailStation(), CmdBuildRailWaypoint(), CmdBuildRoad(), CmdBuildRoadDepot(), CmdBuildRoadStop(), CmdBuildRoadVehicle(), CmdBuildShip(), CmdBuildSingleSignal(), CmdBuildTrafficLights(), CmdBuildTrainDepot(), CmdBuildTunnel(), CmdBuyShareInCompany(), CmdChangeTimetable(), CmdCloneOrder(), CmdConvertRail(), CmdFoundTown(), CmdGiveMoney(), CmdInsertOrder(), CmdPlantTree(), CmdRefitVehicle(), CmdRemoveTrafficLights(), CmdReverseTrainDirection(), CmdSellShareInCompany(), CmdSetTimetableStart(), CmdSetVehicleOnTime(), CmdSkipToOrder(), CmdStartStopVehicle(), CompaniesGenStatistics(), CompaniesMonthlyLoop(), Company::Company(), Train::ConsistChanged(), ConvertDisplaySpeedToSpeed(), ConvertSpeedToDisplaySpeed(), Vehicle::Crash(), CreateNewIndustryHelper(), DeliverGoods(), DetermineBreakdownType(), DistanceFromEdgeDir(), DoCreateTown(), DoTrainPathfind(), DrawRoadBits(), SmallMapWindow::DrawSmallMapColumn(), DrawTrafficLights(), DrawTrainDetails(), DrawTunnelBridgeRampSignal(), VehicleViewWindow::DrawWidget(), VehicleDetailsWindow::DrawWidget(), TownViewWindow::DrawWidget(), ScenarioEditorToolbarWindow::DrawWidget(), CompanyInfrastructureWindow::DrawWidget(), ExtendTrainReservation(), FinaliseHouseArray(), FindClosestTrainDepot(), FindJoiningBaseStation(), FindSafePosition(), FindStationsAroundTiles(), FindStationsNearby(), FindTownForIndustry(), FixAllReservations(), FlatEmptyWorld(), FollowTrainReservation(), FormatBytes(), FormatNumber(), FormatString(), FreightWagonMult(), GamelogMode(), GamelogTestMode(), AIInstance::GameLoop(), AI::GameLoop(), GenerateIndustries(), GenerateLandscape(), GenerateTerrainPerlin(), GenerateTownName(), GenerateTowns(), GenerateTrees(), GroundVehicle< T, Type >::GetAcceleration(), AIAirport::GetAirportCoverageRadius(), GetAirportNoiseLevelForTown(), AITown::GetAllowedNoise(), AITile::GetCargoAcceptance(), AITile::GetCargoProduction(), Station::GetCatchmentRadius(), GetClosestWaterDistance(), GetCompanyRailtypes(), GetCompanyRoadtypes(), AIConfig::GetConfig(), IndustrySpec::GetConstructionCost(), AIIndustryType::GetConstructionCost(), AIStation::GetCoverageRadius(), RoadVehicle::GetCurrentMaxSpeed(), Train::GetCurveSpeedLimit(), TownViewWindow::GetDesiredInfoHeight(), GetDriveableTrackdirBits(), GetFreeUnitNumber(), GetGlobalVariable(), GetIndustryGamePlayProbability(), Engine::GetLifeLengthInDays(), GetMaskOfTownActions(), AIBridge::GetMaxLength(), AIEventEnginePreview::GetMaxSpeed(), AIEngine::GetMaxSpeed(), GetNewEngine(), AIAirport::GetNoiseLevelIncrease(), GetNumberOfIndustries(), GetOtherAqueductEnd(), GetRailTypeDropDownList(), GetRandomTreeType(), GetScaledIndustryGenerationProbability(), Train::GetSlopeSteepness(), RoadVehicle::GetSlopeSteepness(), GetSmallMapVegetationPixels(), GetSnowLine(), GetTerrainType(), GetTileSlope(), GetTLState(), GetTrafficLightConsist(), AIGameSettings::GetValue(), GfxLoadSprites(), GrayscaleToMapHeights(), GrowTown(), GrowTownInTile(), GUIPlaceProcDragXY(), Vehicle::HandleBreakdown(), Vehicle::HandleLoading(), HasCatenaryDrawn(), HeightMapCoastLines(), HeightMapGenerate(), HeightMapNormalize(), HeightMapSineTransform(), HeightMapSmoothCoastInDirection(), HighestSnowLine(), IndustryCargoesWindow::HousesCanAccept(), LinkGraphComponent::Init(), InitLoading(), int_noise(), ObjectSpec::IsAvailable(), AirportSpec::IsAvailable(), IsCommandAllowedWhilePaused(), AIGameSettings::IsDisabledVehicleType(), IsInfraUsageAllowed(), IsOneSignalBlock(), IsRoadAllowedHere(), IsValidTileForWaypoint(), LoadSpriteTables(), LoadUnloadVehicle(), LowestSnowLine(), Town::MaxTownNoise(), MaybeCrashAirplane(), MaybeStartNewCompany(), MayCompanyTakeOver(), IndustryBuildData::MonthlyLoop(), Vehicle::NeedsAutomaticServicing(), Vehicle::NeedsServicing(), NetworkServerSetCompanyPassword(), NPFFindSafeTile(), NPFSaveTargetData(), TownViewWindow::OnClick(), BuildIndustryWindow::OnClick(), BuildVehicleWindow::OnClick(), LandInfoWindow::OnInit(), BuildTreesWindow::OnInvalidateData(), BuildIndustryWindow::OnInvalidateData(), BuildVehicleWindow::OnInvalidateData(), ScenarioEditorToolbarWindow::OnPaint(), TimetableWindow::OnPaint(), BuildRoadStationWindow::OnPaint(), BuildRailStationWindow::OnPaint(), BuildDocksStationWindow::OnPaint(), CompanyWindow::OnPaint(), BuildAirportWindow::OnPaint(), BuildTreesWindow::OnPlaceObject(), ScenarioEditorToolbarWindow::OnQueryTextFinished(), OnTick_LinkGraph(), PayDailyTrackSharingFee(), PaySharingFee(), PayStationSharingFee(), CargoPayment::PayTransfer(), CYapfCostRailT< Types >::PfCalcCost(), PlaceRail_Station(), PlaceRoad_BusStation(), PlaceRoad_TrafficLights(), PlaceRoad_TruckStation(), PlaceTreesRandomly(), AIIndustryType::ProductionCanIncrease(), ServerNetworkUDPSocketHandler::Receive_CLIENT_FIND_SERVER(), RecomputePrices(), RemoveAirport(), RemoveAndSellVehicle(), Vehicle::RemoveFromShared(), RemoveRoad(), ReplaceChain(), ReserveConsist(), AI::ResetConfig(), ResetIndustries(), ResetNewGRFData(), RoadFindPathToDest(), Station::RunAverages(), SaveHighScoreValue(), ServerNetworkGameSocketHandler::SendNeedCompanyPassword(), Vehicle::SendToDepot(), ServerNetworkGameSocketHandler::SendWelcome(), ServerNetworkAdminSocketHandler::SendWelcome(), BuildIndustryWindow::SetStringParameters(), SetTileType(), SetYearEngineAgingStops(), Vehicle::ShowVisualEffect(), StartupOneEngine(), StateGameLoop(), StationJoinerNeeded(), AIInstance::Suspend(), TerraformTileHeight(), TestAutoslopeOnRailTile(), TgenSetTileHeight(), TGPGetMaxAllowedHeight(), TileAddWrap(), ToolbarScenDatePanel(), TownGenerateCargo(), TownGetVariable(), TownHouseChangeInfo(), TownLayoutAllows2x2HouseHere(), TownLayoutAllowsHouseHere(), TrainCheckIfLineEnds(), TrainDetailsCapacityTab(), TrainDetailsCargoTab(), TrainDetailsInfoTab(), TranslateXYToTileCoord(), TryPathReserve(), TryReserveSafeTrack(), AI::Uninitialize(), UpdateAircraftSpeed(), UpdateLandscapingLimits(), UpdateSignalsAroundSegment(), UpdateSignalsInBuffer(), Train::UpdateSpeed(), RoadVehicle::UpdateSpeed(), UpdateTownDemands(), UpdateTownGrowRate(), UpdateVehicleTimetable(), CompanyInfrastructureWindow::UpdateWidgetSize(), IndustrySpec::UsesSmoothEconomy(), VehicleEnterDepot(), YapfRoadVehicleChooseTrack(), YapfRoadVehicleFindNearestDepot(), YapfShipChooseTrack(), YapfTrainCheckReverse(), YapfTrainChooseTrack(), YapfTrainFindNearestDepot(), and YapfTrainFindNearestSafeTile().
The settings values that are used for new games and/or modified in config file.
Definition at line 77 of file settings.cpp.
Referenced by _GenerateWorld(), CanPlantTreesOnTile(), AISettingsWindow::CheckDifficultyLevel(), CheckMapSize(), AIConfig::GetConfig(), CreateScenarioWindow::OnClick(), CreateScenarioWindow::OnDropdownSelect(), SelectGameWindow::OnInvalidateData(), GenerateLandscapeWindow::OnInvalidateData(), CreateScenarioWindow::OnPaint(), CreateScenarioWindow::OnQueryTextFinished(), AI::ResetConfig(), SetNewLandscapeType(), SelectGameWindow::SetStringParameters(), CreateScenarioWindow::SetStringParameters(), StartNewGameWithoutGUI(), and AI::Uninitialize().