OpenTTD Source 20241224-master-gee860a5c8e
|
Settings related to the creation of games. More...
#include <settings_type.h>
Data Fields | |
uint32_t | generation_seed |
noise seed for world generation | |
TimerGameCalendar::Year | starting_year |
starting date | |
TimerGameCalendar::Year | ending_year |
scoring end date | |
uint8_t | map_x |
X size of map. | |
uint8_t | map_y |
Y size of map. | |
uint8_t | land_generator |
the landscape generator | |
uint8_t | oil_refinery_limit |
distance oil refineries allowed from map edge | |
uint8_t | snow_line_height |
the configured snow line height (deduced from "snow_coverage") | |
uint8_t | snow_coverage |
the amount of snow coverage on the map | |
uint8_t | desert_coverage |
the amount of desert coverage on the map | |
uint8_t | heightmap_height |
highest mountain for heightmap (towards what it scales) | |
uint8_t | tgen_smoothness |
how rough is the terrain from 0-3 | |
uint8_t | tree_placer |
the tree placer algorithm | |
uint8_t | heightmap_rotation |
rotation director for the heightmap | |
uint8_t | se_flat_world_height |
land height a flat world gets in SE | |
uint8_t | town_name |
the town name generator used for town names | |
uint8_t | landscape |
the landscape we're currently in | |
uint8_t | water_borders |
bitset of the borders that are water | |
uint16_t | custom_town_number |
manually entered number of towns | |
uint16_t | custom_industry_number |
manually entered number of industries | |
uint8_t | variety |
variety level applied to TGP | |
uint8_t | custom_terrain_type |
manually entered height for TGP to aim for | |
uint8_t | custom_sea_level |
manually entered percentage of water in the map | |
uint8_t | min_river_length |
the minimum river length | |
uint8_t | river_route_random |
the amount of randomicity for the route finding | |
uint8_t | amount_of_rivers |
the amount of rivers | |
Settings related to the creation of games.
Definition at line 351 of file settings_type.h.
uint8_t GameCreationSettings::amount_of_rivers |
the amount of rivers
Definition at line 377 of file settings_type.h.
Referenced by CreateRivers(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), and GenerateLandscapeWindow::SetStringParameters().
uint16_t GameCreationSettings::custom_industry_number |
manually entered number of industries
Definition at line 371 of file settings_type.h.
Referenced by GetNumberOfIndustries(), GenerateLandscapeWindow::OnDropdownSelect(), GenerateLandscapeWindow::OnQueryTextFinished(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::custom_sea_level |
manually entered percentage of water in the map
Definition at line 374 of file settings_type.h.
Referenced by HeightMapNormalize(), GenerateLandscapeWindow::OnDropdownSelect(), GenerateLandscapeWindow::OnQueryTextFinished(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::custom_terrain_type |
manually entered height for TGP to aim for
Definition at line 373 of file settings_type.h.
Referenced by GenerateLandscapeWindow::OnDropdownSelect(), GenerateLandscapeWindow::OnQueryTextFinished(), GenerateLandscapeWindow::SetStringParameters(), and TGPGetMaxHeight().
uint16_t GameCreationSettings::custom_town_number |
manually entered number of towns
Definition at line 370 of file settings_type.h.
Referenced by GenerateTowns(), GenerateLandscapeWindow::OnDropdownSelect(), GenerateLandscapeWindow::OnQueryTextFinished(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::desert_coverage |
the amount of desert coverage on the map
Definition at line 361 of file settings_type.h.
Referenced by CalculateDesertLine(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), GenerateLandscapeWindow::OnQueryTextFinished(), and GenerateLandscapeWindow::SetStringParameters().
TimerGameCalendar::Year GameCreationSettings::ending_year |
uint32_t GameCreationSettings::generation_seed |
noise seed for world generation
Definition at line 352 of file settings_type.h.
Referenced by _GenerateWorld(), AfterNewGRFScan::AfterNewGRFScan(), GenerateWorld(), int_noise(), NetworkRestartMap(), AfterNewGRFScan::OnNewGRFsScanned(), ServerNetworkAdminSocketHandler::SendWelcome(), StartNewGameWithoutGUI(), StartupOneEngine(), and StateGameLoop().
uint8_t GameCreationSettings::heightmap_height |
highest mountain for heightmap (towards what it scales)
Definition at line 362 of file settings_type.h.
Referenced by GenerateWorld(), GrayscaleToMapHeights(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), GenerateLandscapeWindow::OnQueryTextFinished(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::heightmap_rotation |
rotation director for the heightmap
Definition at line 365 of file settings_type.h.
Referenced by GrayscaleToMapHeights(), LoadTownData(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::land_generator |
the landscape generator
Definition at line 357 of file settings_type.h.
Referenced by CheckIfIndustryTileSlopes(), CreateNewIndustryHelper(), GenerateLandscape(), GenerateWorld(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), and ValidateSettings().
uint8_t GameCreationSettings::landscape |
the landscape we're currently in
Definition at line 368 of file settings_type.h.
Referenced by AddAcceptedCargoOfHouse(), AfterLoadGame(), CalculateRefitMasks(), ChangeIndustryProduction(), CheckIndustryCloseDownProtection(), CheckNewIndustry_Farm(), CheckNewIndustry_Forest(), CmdPlantTree(), DoCreateTown(), DrawRoadAsSnowDesert(), FinaliseEngineArray(), FinaliseHouseArray(), FindSpring(), FlowRiver(), GenerateLandscape(), GenerateStationName(), GenerateTrees(), GetCompanyRailTypes(), GetCompanyRoadTypes(), GetGlobalVariable(), GetIndustryGamePlayProbability(), GetMaxTreeSpriteSize(), GetRailTypes(), GetRandomTreeType(), GetRoadTypes(), GetScaledIndustryGenerationProbability(), GetSmallMapVegetationPixels(), GetTerrainType(), GfxLoadSprites(), Vehicle::HandleBreakdown(), HeightMapSineTransform(), IndustryCargoesWindow::HousesCanAccept(), IndustriesChangeInfo(), Engine::IsEnabled(), ObjectSpec::IsEverAvailable(), LoadSpriteTables(), MakeLake(), MakeTreeTypeButtons(), Gamelog::Mode(), CreateScenarioWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), SelectGameWindow::OnInvalidateData(), CreateScenarioWindow::OnPaint(), PlaceTreesRandomly(), ResetIndustries(), ResetNewGRFData(), ServerNetworkAdminSocketHandler::SendWelcome(), HousePickerCallbacks::SetClimateMask(), SetNewLandscapeType(), SetYearEngineAgingStops(), SplitGroundSpriteForOverlay(), StartupOneEngine(), Gamelog::TestMode(), TownHouseChangeInfo(), and TryBuildTownHouse().
uint8_t GameCreationSettings::map_x |
X size of map.
Definition at line 355 of file settings_type.h.
Referenced by HeightMapCoastLines(), GenerateLandscapeWindow::OnClick(), CreateScenarioWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), CreateScenarioWindow::OnDropdownSelect(), GenerateLandscapeWindow::SetStringParameters(), and CreateScenarioWindow::SetStringParameters().
uint8_t GameCreationSettings::map_y |
Y size of map.
Definition at line 356 of file settings_type.h.
Referenced by HeightMapCoastLines(), GenerateLandscapeWindow::OnClick(), CreateScenarioWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), CreateScenarioWindow::OnDropdownSelect(), GenerateLandscapeWindow::SetStringParameters(), and CreateScenarioWindow::SetStringParameters().
uint8_t GameCreationSettings::min_river_length |
the minimum river length
Definition at line 375 of file settings_type.h.
Referenced by CreateRivers().
uint8_t GameCreationSettings::oil_refinery_limit |
distance oil refineries allowed from map edge
Definition at line 358 of file settings_type.h.
Referenced by CheckNewIndustry_OilRefinery(), and CheckNewIndustry_OilRig().
uint8_t GameCreationSettings::river_route_random |
the amount of randomicity for the route finding
Definition at line 376 of file settings_type.h.
uint8_t GameCreationSettings::se_flat_world_height |
land height a flat world gets in SE
Definition at line 366 of file settings_type.h.
Referenced by _GenerateWorld(), GenerateWorld(), CreateScenarioWindow::OnClick(), CreateScenarioWindow::OnPaint(), CreateScenarioWindow::OnQueryTextFinished(), and CreateScenarioWindow::SetStringParameters().
uint8_t GameCreationSettings::snow_coverage |
the amount of snow coverage on the map
Definition at line 360 of file settings_type.h.
Referenced by CalculateSnowLine(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), GenerateLandscapeWindow::OnQueryTextFinished(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::snow_line_height |
the configured snow line height (deduced from "snow_coverage")
Definition at line 359 of file settings_type.h.
Referenced by _GenerateWorld(), AfterLoadGame(), CalculateSnowLine(), GetSnowLine(), HighestSnowLine(), and LowestSnowLine().
TimerGameCalendar::Year GameCreationSettings::starting_year |
starting date
Definition at line 353 of file settings_type.h.
Referenced by AfterLoadGame(), LoadNewGRF(), GenerateLandscapeWindow::OnClick(), CreateScenarioWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), CreateScenarioWindow::OnPaint(), ScenarioEditorToolbarWindow::OnPaint(), GenerateLandscapeWindow::OnQueryTextFinished(), CreateScenarioWindow::OnQueryTextFinished(), ServerNetworkAdminSocketHandler::SendWelcome(), SetStartingYear(), GenerateLandscapeWindow::SetStringParameters(), CreateScenarioWindow::SetStringParameters(), ScenarioEditorToolbarWindow::SetStringParameters(), StartupOneEngine(), and ToolbarScenDatePanel().
uint8_t GameCreationSettings::tgen_smoothness |
how rough is the terrain from 0-3
Definition at line 363 of file settings_type.h.
Referenced by GetAmplitude(), HeightMapNormalize(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::town_name |
the town name generator used for town names
Definition at line 367 of file settings_type.h.
Referenced by AfterLoadGame(), CmdFoundTown(), DoCreateTown(), GenerateTownName(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::tree_placer |
the tree placer algorithm
Definition at line 364 of file settings_type.h.
Referenced by GenerateTrees(), and PlaceTreesRandomly().
uint8_t GameCreationSettings::variety |
variety level applied to TGP
Definition at line 372 of file settings_type.h.
Referenced by HeightMapNormalize(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnDropdownSelect(), and GenerateLandscapeWindow::SetStringParameters().
uint8_t GameCreationSettings::water_borders |
bitset of the borders that are water
Definition at line 369 of file settings_type.h.
Referenced by HeightMapNormalize(), GenerateLandscapeWindow::OnClick(), GenerateLandscapeWindow::OnInvalidateData(), and GenerateLandscapeWindow::SetStringParameters().