OpenTTD Source 20250312-master-gcdcc6b491d
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
 
ReferenceThroughBaseContainer< std::array< class AIConfig *, MAX_COMPANIES > > ai_config
 settings per company
 
class GameConfiggame_config
 settings for gamescript
 
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 599 of file settings_type.h.

Field Documentation

◆ ai

AISettings GameSettings::ai

what may the AI do?

Definition at line 603 of file settings_type.h.

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

◆ ai_config

ReferenceThroughBaseContainer<std::array<class AIConfig *, MAX_COMPANIES> > GameSettings::ai_config

settings per company

Definition at line 605 of file settings_type.h.

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

◆ construction

ConstructionSettings GameSettings::construction

construction of things in-game

Definition at line 602 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(), InitializeGRFSpecial(), 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_config

class GameConfig* GameSettings::game_config

settings for gamescript

Definition at line 606 of file settings_type.h.

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

◆ game_creation

GameCreationSettings GameSettings::game_creation

settings used during the creation of a game (map)

Definition at line 601 of file settings_type.h.

Referenced by _GenerateWorld(), AddAcceptedCargoOfHouse(), AfterLoadGame(), AfterNewGRFScan::AfterNewGRFScan(), CalculateDesertLine(), CalculateRefitMasks(), CalculateSnowLine(), ChangeIndustryProduction(), CheckIfIndustryTileSlopes(), CheckIndustryCloseDownProtection(), CheckNewIndustry_Farm(), CheckNewIndustry_Forest(), CheckNewIndustry_OilRefinery(), CheckNewIndustry_OilRig(), CmdFoundTown(), CmdPlantTree(), CreateNewIndustryHelper(), CreateRivers(), DoCreateTown(), DrawRoadAsSnowDesert(), FinaliseEngineArray(), FinaliseHouseArray(), FindSpring(), FlowRiver(), GenerateLandscape(), GenerateStationName(), GenerateTownName(), GenerateTowns(), GenerateTrees(), GenerateWorld(), GetAmplitude(), 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(), IndustryCargoesWindow::HousesCanAccept(), IndustriesChangeInfo(), int_noise(), Engine::IsEnabled(), ObjectSpec::IsEverAvailable(), LoadNewGRF(), 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(), HousePickerCallbacks::SetClimateMask(), 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 613 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 604 of file settings_type.h.

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

◆ station

◆ vehicle


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