OpenTTD Source 20250502-master-ge0a9c7d818
GameSettings Struct Reference

All settings together for the game. More...

#include <settings_type.h>

Data Fields

DifficultySettings difficulty
 settings related to the difficulty
 
GameCreationSettings game_creation
 settings used during the creation of a game (map)
 
ConstructionSettings construction
 construction of things in-game
 
AISettings ai
 what may the AI do?
 
ScriptSettings script
 settings for scripts
 
ScriptConfigSettings script_config
 AI and Gamescript configuration.
 
PathfinderSettings pf
 settings for all pathfinders
 
OrderSettings order
 settings related to orders
 
VehicleSettings vehicle
 options for vehicles
 
EconomySettings economy
 settings to change the economy
 
LinkGraphSettings linkgraph
 settings for link graph calculations
 
StationSettings station
 settings related to station management
 
LocaleSettings locale
 settings related to used currency/unit system in the current game
 

Detailed Description

All settings together for the game.

Definition at line 612 of file settings_type.h.

Field Documentation

◆ ai

AISettings GameSettings::ai

what may the AI do?

Definition at line 616 of file settings_type.h.

Referenced by AI::CanStartNew(), AI::GameLoop(), IsVehicleTypeDisabled(), and AIConfigWindow::OnClick().

◆ construction

ConstructionSettings GameSettings::construction

construction of things in-game

Definition at line 615 of file settings_type.h.

Referenced by _GenerateWorld(), AfterLoadGame(), AutoslopeEnabled(), BuildLandLegend(), CheckAllowRemoveRoad(), CheckAllowRemoveTunnelBridge(), CheckBridgeAvailability(), CheckBuildableTile(), CheckFlatLandRoadStop(), CheckIfCanLevelIndustryPlatform(), CheckRailSlope(), CheckRoadSlope(), ClickChangeMaxHlCheat(), CmdBuildBridge(), CmdBuildIndustry(), CmdBuildRoad(), CmdBuildRoadDepot(), CmdBuildSingleRail(), CmdBuildTrainDepot(), CmdBuildTunnel(), CmdLevelLand(), CmdTerraformLand(), Company::Company(), DistanceFromEdgeDir(), SmallMapWindow::DrawSmallMapColumn(), FixSlopes(), FlatEmptyWorld(), GenerateLandscape(), GenerateTerrainPerlin(), GenerateWorld(), GetClosestWaterDistance(), IndustrySpec::GetConstructionCost(), GetGlobalVariable(), GetMapHeightLimit(), GetOtherAqueductEnd(), BuildIndustryWindow::GetWidgetString(), GlobalVarChangeInfo(), GrayscaleToMapHeights(), GrowTownInTile(), GUIPlaceProcDragXY(), HeightMapNormalize(), InitializePatchFlags(), InverseRemapCoords2(), IsCommandAllowedWhilePaused(), IsInnerTile(), IsRoadAllowedHere(), IsValidTileForWaypoint(), BuildIndustryWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), BuildObjectWindow::OnPlaceMouseUp(), TerraformToolbarWindow::OnPlaceMouseUp(), PlaceTreesRandomly(), SmallMapWindow::RebuildColourIndexIfNecessary(), RemoveRoad(), SetupScreenshotViewport(), TerraformTileHeight(), TestAutoslopeOnRailTile(), TGPGetMaxHeight(), TileAddWrap(), UpdateLandscapingLimits(), and ViewportAddLandscape().

◆ difficulty

◆ economy

◆ game_creation

GameCreationSettings GameSettings::game_creation

settings used during the creation of a game (map)

Definition at line 614 of file settings_type.h.

Referenced by _GenerateWorld(), AddAcceptedCargoOfHouse(), AfterLoadGame(), AfterNewGRFScan::AfterNewGRFScan(), CalculateDesertLine(), RiverBuilder::CalculateG(), CalculateRefitMasks(), CalculateSnowLine(), ChangeIndustryProduction(), CheckIfIndustryTileSlopes(), CheckIndustryCloseDownProtection(), CheckNewIndustry_Farm(), CheckNewIndustry_Forest(), CheckNewIndustry_OilRefinery(), CheckNewIndustry_OilRig(), CmdFoundTown(), CmdPlantTree(), CreateNewIndustryHelper(), CreateRivers(), DoCreateTown(), DrawRoadAsSnowOrDesert(), FinaliseEngineArray(), FindSpring(), FlowRiver(), RiverBuilder::FoundEndNode(), GenerateLandscape(), GenerateStationName(), GenerateTownName(), GenerateTowns(), GenerateTrees(), GenerateWorld(), GetAmplitude(), GetClimateMaskForLandscape(), GetCompanyRailTypes(), GetCompanyRoadTypes(), GetGlobalVariable(), GetIndustryGamePlayProbability(), GetMaxTreeSpriteSize(), GetNumberOfIndustries(), GetRailTypes(), GetRandomTreeType(), GetRoadTypes(), GetScaledIndustryGenerationProbability(), GetSmallMapVegetationPixels(), GetSnowLine(), GetTerrainType(), GenerateLandscapeWindow::GetWidgetString(), CreateScenarioWindow::GetWidgetString(), ScenarioEditorToolbarWindow::GetWidgetString(), GfxLoadSprites(), GrayscaleToMapHeights(), Vehicle::HandleBreakdown(), HeightMapCoastLines(), HeightMapNormalize(), HeightMapSineTransform(), HighestSnowLine(), IndustriesChangeInfo(), int_noise(), Engine::IsEnabled(), ObjectSpec::IsEverAvailable(), LoadNewGRF(), LoadSpriteTables(), LoadTownData(), LowestSnowLine(), MakeLake(), MakeTreeTypeButtons(), Gamelog::Mode(), NetworkRestartMap(), GenerateLandscapeWindow::OnClick(), CreateScenarioWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), CreateScenarioWindow::OnDropdownSelect(), GenerateLandscapeWindow::OnInvalidateData(), SelectGameWindow::OnInvalidateData(), AfterNewGRFScan::OnNewGRFsScanned(), CreateScenarioWindow::OnPaint(), ScenarioEditorToolbarWindow::OnPaint(), GenerateLandscapeWindow::OnQueryTextFinished(), CreateScenarioWindow::OnQueryTextFinished(), PlaceTreesRandomly(), ResetIndustries(), ResetNewGRFData(), ServerNetworkAdminSocketHandler::SendWelcome(), SetNewLandscapeType(), SetStartingYear(), SetYearEngineAgingStops(), SplitGroundSpriteForOverlay(), StartNewGameWithoutGUI(), StartupOneEngine(), StateGameLoop(), Gamelog::TestMode(), TGPGetMaxHeight(), ToolbarScenDatePanel(), TownHouseChangeInfo(), TryBuildTownHouse(), and ValidateSettings().

◆ linkgraph

◆ locale

LocaleSettings GameSettings::locale

settings related to used currency/unit system in the current game

Definition at line 625 of file settings_type.h.

Referenced by AfterLoadGame(), GameOptionsWindow::BuildDropDownList(), FormatString(), GetCurrency(), GetVelocityUnits(), GameOptionsWindow::GetWidgetString(), and GameOptionsWindow::OnDropdownSelect().

◆ order

◆ pf

◆ script

ScriptSettings GameSettings::script

settings for scripts

Definition at line 617 of file settings_type.h.

Referenced by ScriptInstance::GameLoop(), and ScriptInstance::Pause().

◆ script_config

ScriptConfigSettings GameSettings::script_config

AI and Gamescript configuration.

Definition at line 618 of file settings_type.h.

Referenced by AIConfig::GetConfig(), GameConfig::GetConfig(), AI::ResetConfig(), AI::Uninitialize(), and Game::Uninitialize().

◆ station

◆ vehicle


The documentation for this struct was generated from the following file: