OpenTTD Source 20241224-master-gf74b0cf984
|
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 AIConfig * | ai_config [MAX_COMPANIES] |
settings per company | |
class GameConfig * | game_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 | |
All settings together for the game.
Definition at line 591 of file settings_type.h.
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().
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().
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().
DifficultySettings GameSettings::difficulty |
settings related to the difficulty
Definition at line 592 of file settings_type.h.
Referenced by AfterLoadGame(), Subsidy::AwardTo(), CheckCompanyHasMoney(), CheckforTownRating(), CheckIfAuthorityAllowsNewStation(), ClearTile_Town(), CmdBuildAirport(), CompanyCheckBankrupt(), DeliverGoods(), AIConfigWindow::DrawWidget(), StatusBarWindow::DrawWidget(), IndustryBuildData::EconomyMonthlyLoop(), AI::GameLoop(), GenerateIndustries(), GenerateLandscape(), GenerateTowns(), GetAirportNoiseLevelForDistance(), GetAvailableMoney(), GetIndustryGamePlayProbability(), GetNumberOfIndustries(), GetScaledIndustryGenerationProbability(), HeightMapNormalize(), Town::MaxTownNoise(), Vehicle::NeedsServicing(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), GenerateLandscapeWindow::OnInvalidateData(), OnTick_Companies(), RecomputePrices(), CompanyFinancesWindow::SetStringParameters(), GenerateLandscapeWindow::SetStringParameters(), SetupSubsidyDecodeParam(), TGPGetMaxHeight(), ValidateSettings(), and VehicleServiceInDepot().
EconomySettings GameSettings::economy |
settings to change the economy
Definition at line 602 of file settings_type.h.
Referenced by _GenerateWorld(), AfterLoadGame(), CanRoadContinueIntoNextTile(), ChangeIndustryProduction(), ChangeMinutesPerYear(), ChangeTimekeepingUnits(), CheckIfAuthorityAllowsNewStation(), CmdBuildAirport(), CmdConvertRoad(), CmdFoundTown(), CmdGiveMoney(), CmdPlantTree(), CompaniesGenStatistics(), DoCreateTown(), CompanyInfrastructureWindow::DrawCountLine(), CompanyInfrastructureWindow::DrawWidget(), TownViewWindow::DrawWidget(), FindTownForIndustry(), GenerateTowns(), TownViewWindow::GetDesiredInfoHeight(), TownAuthorityWindow::GetEnabledActions(), GetMaskOfTownActions(), GetNormalGrowthRate(), TownScopeResolver::GetVariable(), GrowTownInTile(), HighlightTownLocalAuthorityTiles(), InitializeGRFSpecial(), Town::MaxTownNoise(), MenuClickTown(), FoundTownWindow::OnClick(), LandInfoWindow::OnInit(), FoundTownWindow::OnInit(), BuildAirportWindow::OnPaint(), CompanyWindow::OnPaint(), CargoPayment::PayTransfer(), RemoveAirport(), ScaleByCargoScale(), ScaleByInverseCargoScale(), TileLoop_Town(), TownActionBuyRights(), TownActionFundBuildings(), TownActionRoadRebuild(), TownAllowedToBuildRoads(), TryFoundTownNearby(), UpdateTownGrowth(), CompanyInfrastructureWindow::UpdateWidgetSize(), IndustrySpec::UsesOriginalEconomy(), and TimerGameEconomy::UsingWallclockUnits().
class GameConfig* GameSettings::game_config |
settings for gamescript
Definition at line 598 of file settings_type.h.
Referenced by GameConfig::GetConfig(), and Game::Uninitialize().
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().
LinkGraphSettings GameSettings::linkgraph |
settings for link graph calculations
Definition at line 603 of file settings_type.h.
Referenced by AfterLoadGame(), DeleteStaleLinks(), StationViewWindow::DrawEntries(), FindSubsidyIndustryCargoRoute(), FindSubsidyTownCargoRoute(), LoadFromConfig(), OnTick_LinkGraph(), StationViewWindow::ShowCargo(), StateGameLoop_LinkGraphPauseControl(), and LinkGraphJob::~LinkGraphJob().
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().
OrderSettings GameSettings::order |
settings related to orders
Definition at line 600 of file settings_type.h.
Referenced by AircraftEventHandler_AtTerminal(), GetLoadAmount(), InitializeGRFSpecial(), LoadUnloadVehicle(), Vehicle::NeedsServicing(), and UpdateLoadUnloadTicks().
PathfinderSettings GameSettings::pf |
settings for all pathfinders
Definition at line 599 of file settings_type.h.
Referenced by AfterLoadGame(), CheckIfTrainNeedsService(), CheckNextTrainTile(), CheckTrainStayInDepot(), CmdBuildSingleSignal(), ExtendTrainReservation(), FollowTrainReservation(), CYapfCostRailT< Types >::PfCalcCost(), ReverseTrainDirection(), RoadFindPathToDest(), TrainController(), YapfRoadVehicleChooseTrack(), YapfRoadVehicleFindNearestDepot(), YapfTrainCheckReverse(), YapfTrainChooseTrack(), YapfTrainFindNearestDepot(), and YapfTrainFindNearestSafeTile().
ScriptSettings GameSettings::script |
settings for scripts
Definition at line 596 of file settings_type.h.
Referenced by ScriptInstance::GameLoop(), and ScriptInstance::Pause().
StationSettings GameSettings::station |
settings related to station management
Definition at line 604 of file settings_type.h.
Referenced by AfterLoadGame(), BuildRailClick_Remove(), CanExpandRailStation(), CmdBuildAirport(), CmdBuildDock(), CmdBuildRailStation(), CmdBuildRailWaypoint(), CmdBuildRoadStop(), CmdBuildRoadWaypoint(), FindStationsNearby(), ForAllStationsAroundTiles(), GetAcceptanceAroundTiles(), Station::GetCatchmentRadius(), GetProductionAroundTiles(), GetTileCatchmentRadius(), InitializeGRFSpecial(), AirportSpec::IsAvailable(), BuildAirportWindow::OnPaint(), BuildDocksStationWindow::OnPaint(), BuildRailStationWindow::OnPaint(), BuildRoadStationWindow::OnPaint(), PlaceRail_Station(), PlaceRail_Waypoint(), PlaceRoad_BusStation(), PlaceRoad_TruckStation(), PlaceRoad_Waypoint(), PopulateStationsNearby(), Station::RecomputeCatchment(), and StationJoinerNeeded().
VehicleSettings GameSettings::vehicle |
options for vehicles
Definition at line 601 of file settings_type.h.
Referenced by AffectSpeedByZChange(), AfterLoadGame(), AfterLoadVehiclesPhase2(), AircraftController(), CalcEngineReliability(), CanBuildVehicleInfrastructure(), CheckNewTrain(), CheckTakeoverVehicleLimit(), CheckTrainAttachment(), CmdBuildRoadVehicle(), CmdConvertRail(), CmdRefitVehicle(), CmdReverseTrainDirection(), Train::ConsistChanged(), DisplayVehicleSortDropDown(), LinkGraphOverlay::DrawContent(), DrawTrainDetails(), VehicleDetailsWindow::DrawWidget(), FreightWagonMult(), RoadVehicle::GetCurrentMaxSpeed(), Train::GetCurrentMaxSpeed(), Train::GetCurveSpeedLimit(), GetFreeUnitNumber(), GetGlobalVariable(), Engine::GetLifeLengthInDays(), GetNewEngine(), GetNewEngineID(), RoadVehicle::GetSlopeSteepness(), Train::GetSlopeSteepness(), HasRailCatenaryDrawn(), InitializeGRFSpecial(), IsVehicleTypeDisabled(), MaybeCrashAirplane(), BuildVehicleWindow::OnInvalidateData(), ParamSet(), ReplaceChain(), RoadVehAccelerationModelChanged(), Vehicle::ShowVisualEffect(), TrainController(), TrainDetailsCapacityTab(), TrainDetailsCargoTab(), UpdateAircraftSpeed(), RoadVehicle::UpdateSpeed(), and Train::UpdateSpeed().