# settings_type.h File Reference

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"`

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 | StationSettings
| Settings related to stations. More...
struct | SharingSettings
| Settings related to infrastructure sharing. 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...

## 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.

## Detailed Description

Types related to global configuration settings.

Definition in file settings_type.h.

## Variable Documentation

ClientSettings _settings_client

The current settings for this game.

Definition at line 72 of file settings.cpp.

Referenced by _GenerateWorld(), AddNewsItem(), BuildRailClick_AutoSignals(), BuildRailClick_Remove(), CalcRaildirsDrawstyle(), CanBuildVehicleInfrastructure(), CcBuildRailTunnel(), CheckOrders(), CheckSoftLimit(), ClearPathReservation(), CmdCompanyCtrl(), DoAutosave(), DrawCategories(), DrawTile_Road(), DrawTile_TunnelBridge(), DrawTrackBits(), VehicleViewWindow::DrawWidget(), DrawYearColumn(), GenerateDefaultSaveName(), GenericPlaceSignals(), GetEngineLivery(), GetLogPrefix(), HandleAutoscroll(), HandleAutoSignalPlacement(), InitializeRailGUI(), LoadUnloadVehicle(), OnNewMonth(), OnNewYear(), CompanyFinancesWindow::OnPaint(), BuildRailToolbarWindow::OnPlaceMouseUp(), OrdersWindow::OnPlaceObject(), BuildIndustryWindow::OnPlaceObject(), OrdersWindow::OrderClick_NearestDepot(), PositionMainToolbar(), ResetSignalVariant(), SaveOrLoad(), SetDefaultRailGui(), SetTimetableParams(), ShowErrorMessage(), ShowMeasurementTooltips(), ShowSelectBaseStationIfNeeded(), StartScenario(), IConsoleLine::Truncate(), TryPathReserve(), TryReserveRailTrack(), UnreserveRailTrack(), UpdateAircraftSpeed(), UpdateViewportPosition(), CompanyFinancesWindow::UpdateWidgetSize(), and VpSelectTilesWithMethod().

GameSettings _settings_game

The current settings for this game.

Definition at line 73 of file settings.cpp.

Referenced by _GenerateWorld(), AddInflation(), AffectSpeedByZChange(), AircraftController(), AircraftEventHandler_AtTerminal(), AITileList_IndustryAccepting::AITileList_IndustryAccepting(), AITileList_IndustryProducing::AITileList_IndustryProducing(), AlwaysDrawUnpavedRoads(), AutoslopeEnabled(), Subsidy::AwardTo(), BuildRailClick_Remove(), BuildTownHouse(), AIRoad::CanBuildConnectedRoadParts(), AIIndustryType::CanBuildIndustry(), CanBuildVehicleInfrastructure(), CanExpandRailStation(), AIIndustryType::CanProspectIndustry(), ChangeIndustryProduction(), CheckAllowRemoveRoad(), CheckFlatLandBelow(), CheckIfAuthorityAllowsNewStation(), CheckIndustryCloseDownProtection(), CheckNewTrain(), CheckNextTrainTile(), CheckRailSlope(), CheckRoadSlope(), CheckSwitchToEuro(), CheckTrainAttachment(), ChooseShipTrack(), ClickChangeClimateCheat(), CmdAutofillTimetable(), CmdBuildAircraft(), CmdBuildAirport(), CmdBuildBridge(), CmdBuildDock(), CmdBuildIndustry(), CmdBuildRailStation(), CmdBuildRailVehicle(), CmdBuildRailWaypoint(), CmdBuildRoad(), CmdBuildRoadDepot(), CmdBuildRoadStop(), CmdBuildRoadVeh(), CmdBuildShip(), CmdBuildSingleSignal(), CmdBuildTrainDepot(), CmdBuyShareInCompany(), CmdChangeTimetable(), CmdConvertRail(), CmdFoundTown(), CmdGiveMoney(), CmdInsertOrder(), CmdPlantTree(), CmdReverseTrainDirection(), CmdSellShareInCompany(), CmdSetTimetableStart(), CmdSetVehicleOnTime(), ConvertDisplaySpeedToSpeed(), ConvertSpeedToDisplaySpeed(), CreateNewIndustryHelper(), DeliverGoods(), DoCreateTown(), DoTrainPathfind(), SmallMapWindow::DrawSmallMapStuff(), DrawTrainDetails(), VehicleDetailsWindow::DrawWidget(), ExpandTown(), ExtendTrainReservation(), FindClosestTrainDepot(), FindJoiningBaseStation(), FindSafePosition(), FindStationsAroundTiles(), FindStationsNearby(), FixAllReservations(), FlatEmptyWorld(), FloodVehicles(), FollowTrainReservation(), FormatBytes(), FreightWagonMult(), GamelogMode(), GamelogTestMode(), GenerateIndustries(), GenerateTerrainPerlin(), GenerateTownName(), GenerateTowns(), GenerateTrees(), GenerateWorld(), AIAirport::GetAirportCoverageRadius(), GetAirportNoiseLevelForTown(), AITown::GetAllowedNoise(), AITile::GetCargoAcceptance(), AITile::GetCargoProduction(), Station::GetCatchmentRadius(), GetClosestWaterDistance(), GetCompanyRailtypes(), GetCompanyRoadtypes(), IndustrySpec::GetConstructionCost(), AIIndustryType::GetConstructionCost(), AIStation::GetCoverageRadius(), GetDriveableTrackdirBits(), GetGlobalVariable(), GetMaskOfTownActions(), AIBridge::GetMaxLength(), AIEventEnginePreview::GetMaxSpeed(), AIEngine::GetMaxSpeed(), GetNewEngine(), AIAirport::GetNoiseLevelIncrease(), GetRandomTreeType(), GetSharingSetting(), GetSnowLine(), GetTerrainType(), GetTileSlope(), GetTrainCurveSpeedLimit(), AIGameSettings::GetValue(), GrayscaleToMapHeights(), GrowTown(), GrowTownInTile(), GUIPlaceProcDragXY(), HasCatenaryDrawn(), HeightMapCoastLines(), HeightMapGenerate(), HeightMapNormalize(), HeightMapSineTransform(), HighestSnowLine(), InitLoading(), int_noise(), AirportFTAClass::IsAvailable(), AIGameSettings::IsDisabledVehicleType(), IsOneSignalBlock(), IsRoadAllowedHere(), IsValidTileForWaypoint(), LoadUnloadVehicle(), LowestSnowLine(), MaybeNewIndustry(), NPFFindSafeTile(), NPFSaveTargetData(), BuildIndustryWindow::OnClick(), BuildTreesWindow::OnInvalidateData(), BuildIndustryWindow::OnInvalidateData(), OnNewMonth(), CompanyWindow::OnPaint(), PayDailyTrackSharingFee(), PaySharingFee(), PayStationSharingFee(), PlaceInitialIndustry(), PlaceTreesRandomly(), AIIndustryType::ProductionCanIncrease(), RecomputePrices(), RemoveAirport(), RemoveAndSellVehicle(), RemoveFromRailBaseStation(), RemoveRailStation(), RemoveRailWaypoint(), RemoveRoad(), ResetIndustries(), ResetNewGRFData(), RestoreVehicleOrders(), RoadFindPathToDest(), SaveHighScoreValue(), BuildIndustryWindow::SetStringParameters(), SetTileType(), StartScenario(), StationJoinerNeeded(), TerraformTileHeight(), TestAutoslopeOnRailTile(), TgenSetTileHeight(), TownGetVariable(), TownHouseChangeInfo(), TownLayoutAllows2x2HouseHere(), TownLayoutAllowsHouseHere(), TrainCheckIfLineEnds(), TrainConsistChanged(), TrainDetailsCapacityTab(), TrainDetailsCargoTab(), TranslateXYToTileCoord(), TryPathReserve(), TryReserveSafeTrack(), UpdateAircraftSpeed(), UpdateTownGrowRate(), UpdateTrainSpeed(), OrdersWindow::UpdateWidgetSize(), YapfRoadVehicleChooseTrack(), YapfRoadVehicleFindNearestDepot(), YapfShipChooseTrack(), YapfTrainCheckReverse(), YapfTrainChooseTrack(), YapfTrainFindNearestDepot(), and YapfTrainFindNearestSafeTile().

GameSettings _settings_newgame

The settings values that are used for new games and/or modified in config file.

Definition at line 74 of file settings.cpp.

Referenced by _GenerateWorld(), AIConfigWindow::DrawWidget(), AIConfigWindow::OnClick(), AISettingsWindow::OnClick(), AIConfigWindow::OnInvalidateData(), AIConfigWindow::SetStringParameters(), and StartScenario().