OpenTTD Source 20241224-master-gf74b0cf984
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
 
class AIConfigai_config [MAX_COMPANIES]
 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 591 of file settings_type.h.

Field Documentation

◆ ai

AISettings GameSettings::ai

what may the AI do?

Definition at line 595 of file settings_type.h.

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

◆ ai_config

class AIConfig* GameSettings::ai_config[MAX_COMPANIES]

settings per company

Definition at line 597 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 594 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(), FlatEmptyWorld(), GenerateLandscape(), GenerateTerrainPerlin(), GenerateWorld(), GetClosestWaterDistance(), IndustrySpec::GetConstructionCost(), GetGlobalVariable(), GetMapHeightLimit(), GetOtherAqueductEnd(), GlobalVarChangeInfo(), GrayscaleToMapHeights(), GrowTownInTile(), GUIPlaceProcDragXY(), HeightMapNormalize(), InitializeGRFSpecial(), InitLoading(), InverseRemapCoords2(), IsCommandAllowedWhilePaused(), IsInnerTile(), IsRoadAllowedHere(), IsValidTileForWaypoint(), BuildIndustryWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), BuildObjectWindow::OnPlaceMouseUp(), TerraformToolbarWindow::OnPlaceMouseUp(), SmallMapWindow::RebuildColourIndexIfNecessary(), RemoveRoad(), BuildIndustryWindow::SetStringParameters(), SetupScreenshotViewport(), TerraformTileHeight(), TestAutoslopeOnRailTile(), TGPGetMaxHeight(), TileAddWrap(), UpdateLandscapingLimits(), and ViewportAddLandscape().

◆ difficulty

◆ economy

◆ game_config

class GameConfig* GameSettings::game_config

settings for gamescript

Definition at line 598 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 593 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(), GfxLoadSprites(), GrayscaleToMapHeights(), Vehicle::HandleBreakdown(), HeightMapCoastLines(), HeightMapNormalize(), HeightMapSineTransform(), HighestSnowLine(), IndustryCargoesWindow::HousesCanAccept(), 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(), HousePickerCallbacks::SetClimateMask(), SetNewLandscapeType(), SetStartingYear(), GenerateLandscapeWindow::SetStringParameters(), CreateScenarioWindow::SetStringParameters(), ScenarioEditorToolbarWindow::SetStringParameters(), 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 605 of file settings_type.h.

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

◆ order

◆ pf

◆ script

ScriptSettings GameSettings::script

settings for scripts

Definition at line 596 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: