OpenTTD Source 20241224-master-gf74b0cf984
|
Settings related to the economy. More...
#include <settings_type.h>
Data Fields | |
bool | inflation |
disable inflation | |
bool | bribe |
enable bribing the local authority | |
EconomyType | type |
economy type (original/smooth/frozen) | |
uint8_t | feeder_payment_share |
percentage of leg payment to virtually pay in feeder systems | |
uint8_t | dist_local_authority |
distance for town local authority, default 20 | |
bool | exclusive_rights |
allow buying exclusive rights | |
bool | fund_buildings |
allow funding new buildings | |
bool | fund_roads |
allow funding local road reconstruction | |
bool | give_money |
allow giving other companies money | |
bool | mod_road_rebuild |
roadworks remove unnecessary RoadBits | |
bool | multiple_industry_per_town |
allow many industries of the same type per town | |
uint8_t | town_growth_rate |
town growth rate | |
uint8_t | larger_towns |
the number of cities to build. These start off larger and grow twice as fast | |
uint8_t | initial_city_size |
multiplier for the initial size of the cities compared to towns | |
TownLayout | town_layout |
select town layout, | |
TownCargoGenMode | town_cargogen_mode |
algorithm for generating cargo from houses, | |
bool | allow_town_roads |
towns are allowed to build roads (always allowed when generating world / in SE) | |
TownFounding | found_town |
town founding. | |
bool | station_noise_level |
build new airports when the town noise level is still within accepted limits | |
uint16_t | town_noise_population [4] |
population to base decision on noise evaluation ( | |
bool | allow_town_level_crossings |
towns are allowed to build level crossings | |
bool | infrastructure_maintenance |
enable monthly maintenance fee for owner infrastructure | |
TimekeepingUnits | timekeeping_units |
time units to use for the game economy, either calendar or wallclock | |
uint16_t | minutes_per_calendar_year |
minutes per calendar year. Special value 0 means that calendar time is frozen. | |
uint16_t | town_cargo_scale |
scale cargo production of towns by this percentage. | |
uint16_t | industry_cargo_scale |
scale cargo production of industries by this percentage. | |
Settings related to the economy.
Definition at line 513 of file settings_type.h.
bool EconomySettings::allow_town_level_crossings |
towns are allowed to build level crossings
Definition at line 534 of file settings_type.h.
Referenced by AfterLoadGame(), CanRoadContinueIntoNextTile(), and GrowTownInTile().
bool EconomySettings::allow_town_roads |
towns are allowed to build roads (always allowed when generating world / in SE)
Definition at line 530 of file settings_type.h.
Referenced by AfterLoadGame(), InitializeGRFSpecial(), and TownAllowedToBuildRoads().
bool EconomySettings::bribe |
enable bribing the local authority
Definition at line 515 of file settings_type.h.
Referenced by TownAuthorityWindow::GetEnabledActions(), and GetMaskOfTownActions().
uint8_t EconomySettings::dist_local_authority |
distance for town local authority, default 20
Definition at line 518 of file settings_type.h.
Referenced by CheckIfAuthorityAllowsNewStation(), CmdConvertRoad(), CmdPlantTree(), HighlightTownLocalAuthorityTiles(), and LandInfoWindow::OnInit().
bool EconomySettings::exclusive_rights |
allow buying exclusive rights
Definition at line 519 of file settings_type.h.
Referenced by TownAuthorityWindow::GetEnabledActions(), GetMaskOfTownActions(), and TownActionBuyRights().
uint8_t EconomySettings::feeder_payment_share |
percentage of leg payment to virtually pay in feeder systems
Definition at line 517 of file settings_type.h.
Referenced by AfterLoadGame(), and CargoPayment::PayTransfer().
TownFounding EconomySettings::found_town |
town founding.
Definition at line 531 of file settings_type.h.
Referenced by CmdFoundTown(), MenuClickTown(), and FoundTownWindow::OnInit().
bool EconomySettings::fund_buildings |
allow funding new buildings
Definition at line 520 of file settings_type.h.
Referenced by TownAuthorityWindow::GetEnabledActions(), GetMaskOfTownActions(), and TownActionFundBuildings().
bool EconomySettings::fund_roads |
allow funding local road reconstruction
Definition at line 521 of file settings_type.h.
Referenced by TownAuthorityWindow::GetEnabledActions(), GetMaskOfTownActions(), and TownActionRoadRebuild().
bool EconomySettings::give_money |
allow giving other companies money
Definition at line 522 of file settings_type.h.
Referenced by CmdGiveMoney(), and CompanyWindow::OnPaint().
uint16_t EconomySettings::industry_cargo_scale |
scale cargo production of industries by this percentage.
Definition at line 539 of file settings_type.h.
Referenced by ScaleByCargoScale(), and ScaleByInverseCargoScale().
bool EconomySettings::inflation |
disable inflation
Definition at line 514 of file settings_type.h.
Referenced by InitializeGRFSpecial().
bool EconomySettings::infrastructure_maintenance |
enable monthly maintenance fee for owner infrastructure
Definition at line 535 of file settings_type.h.
Referenced by AfterLoadGame(), CompaniesGenStatistics(), CompanyInfrastructureWindow::DrawCountLine(), CompanyInfrastructureWindow::DrawWidget(), BuildAirportWindow::OnPaint(), and CompanyInfrastructureWindow::UpdateWidgetSize().
uint8_t EconomySettings::initial_city_size |
multiplier for the initial size of the cities compared to towns
Definition at line 527 of file settings_type.h.
Referenced by DoCreateTown().
uint8_t EconomySettings::larger_towns |
the number of cities to build. These start off larger and grow twice as fast
Definition at line 526 of file settings_type.h.
Referenced by AfterLoadGame(), GenerateTowns(), and TownScopeResolver::GetVariable().
uint16_t EconomySettings::minutes_per_calendar_year |
minutes per calendar year. Special value 0 means that calendar time is frozen.
Definition at line 537 of file settings_type.h.
Referenced by ChangeMinutesPerYear(), and ChangeTimekeepingUnits().
bool EconomySettings::mod_road_rebuild |
roadworks remove unnecessary RoadBits
Definition at line 523 of file settings_type.h.
bool EconomySettings::multiple_industry_per_town |
allow many industries of the same type per town
Definition at line 524 of file settings_type.h.
Referenced by FindTownForIndustry().
bool EconomySettings::station_noise_level |
build new airports when the town noise level is still within accepted limits
Definition at line 532 of file settings_type.h.
Referenced by AfterLoadGame(), CmdBuildAirport(), TownViewWindow::DrawWidget(), TownViewWindow::GetDesiredInfoHeight(), InitializeGRFSpecial(), BuildAirportWindow::OnPaint(), and RemoveAirport().
TimekeepingUnits EconomySettings::timekeeping_units |
time units to use for the game economy, either calendar or wallclock
Definition at line 536 of file settings_type.h.
Referenced by AfterLoadGame(), ChangeMinutesPerYear(), and TimerGameEconomy::UsingWallclockUnits().
uint16_t EconomySettings::town_cargo_scale |
scale cargo production of towns by this percentage.
Definition at line 538 of file settings_type.h.
Referenced by ScaleByCargoScale(), and ScaleByInverseCargoScale().
TownCargoGenMode EconomySettings::town_cargogen_mode |
algorithm for generating cargo from houses,
Definition at line 529 of file settings_type.h.
Referenced by AfterLoadGame(), and TileLoop_Town().
uint8_t EconomySettings::town_growth_rate |
town growth rate
Definition at line 525 of file settings_type.h.
Referenced by GetNormalGrowthRate(), and UpdateTownGrowth().
TownLayout EconomySettings::town_layout |
select town layout,
Definition at line 528 of file settings_type.h.
Referenced by _GenerateWorld(), AfterLoadGame(), CmdFoundTown(), FoundTownWindow::OnClick(), and TryFoundTownNearby().
uint16_t EconomySettings::town_noise_population[4] |
population to base decision on noise evaluation (
Definition at line 533 of file settings_type.h.
Referenced by Town::MaxTownNoise().
EconomyType EconomySettings::type |
economy type (original/smooth/frozen)
Definition at line 516 of file settings_type.h.
Referenced by ChangeIndustryProduction(), and IndustrySpec::UsesOriginalEconomy().