src/settings_type.h
changeset 9334 28ac6c8e0795
parent 9126 5648d696456b
child 9346 bfd803297888
equal deleted inserted replaced
9333:2da01b3b71d8 9334:28ac6c8e0795
     8 #include "yapf/yapf_settings.h"
     8 #include "yapf/yapf_settings.h"
     9 #include "date_type.h"
     9 #include "date_type.h"
    10 #include "town_type.h"
    10 #include "town_type.h"
    11 #include "transport_type.h"
    11 #include "transport_type.h"
    12 
    12 
    13 #define GAME_DIFFICULTY_NUM 18
    13 enum {
       
    14 	GAME_DIFFICULTY_AI_NUMBER,
       
    15 	GAME_DIFFICULTY_AI_STARTTIME,
       
    16 	GAME_DIFFICULTY_TOWN_NUMBER,
       
    17 	GAME_DIFFICULTY_INDUSTRIE_NUMBER,
       
    18 	GAME_DIFFICULTY_MAX_LOAN,
       
    19 	GAME_DIFFICULTY_INITIAL_INTEREST,
       
    20 	GAME_DIFFICULTY_VEHICLE_COST,
       
    21 	GAME_DIFFICULTY_AI_SPEED,
       
    22 	GAME_DIFFICULTY_AI_INTELLIGENCE, ///< no longer in use
       
    23 	GAME_DIFFICULTY_VEHICLES_BREAKDOWN,
       
    24 	GAME_DIFFICULTY_SUBSIDY_MULTIPLIER,
       
    25 	GAME_DIFFICULTY_CONSTRUCTION_COST,
       
    26 	GAME_DIFFICULTY_TYPE_TERRAIN,
       
    27 	GAME_DIFFICULTY_SEALAKE_NUMBER,
       
    28 	GAME_DIFFICULTY_ECONOMY,
       
    29 	GAME_DIFFICULTY_LINE_REVERSEMODE,
       
    30 	GAME_DIFFICULTY_DISASTERS,
       
    31 	GAME_DIFFICULTY_TOWNCOUNCIL_TOLERANCE, ///< minimum required town ratings to be allowed to demolish stuff
       
    32 	GAME_DIFFICULTY_NUM,
       
    33 };
    14 
    34 
    15 /** Specific type for Game Difficulty to ease changing the type */
    35 /** Specific type for Game Difficulty to ease changing the type */
    16 typedef uint16 GDType;
    36 typedef uint16 GDType;
    17 struct GameDifficulty {
    37 struct GameDifficulty {
    18 	GDType max_no_competitors;
    38 	GDType max_no_competitors;
   219 	uint8 initial_city_size;     ///< Multiplier for the initial size of the cities compared to towns
   239 	uint8 initial_city_size;     ///< Multiplier for the initial size of the cities compared to towns
   220 
   240 
   221 	bool pause_on_newgame;       ///< Whether to start new games paused or not.
   241 	bool pause_on_newgame;       ///< Whether to start new games paused or not.
   222 
   242 
   223 	TownLayoutByte town_layout;  ///< Select town layout
   243 	TownLayoutByte town_layout;  ///< Select town layout
       
   244 	bool station_noise_level;        ///< build new airports when the town noise level is still within accepted limits
       
   245 	uint16 town_noise_population[3];  ///< Population to base decision on noise evaluation (@see town_council_tolerance)
   224 
   246 
   225 	bool timetabling;            ///< Whether to allow timetabling.
   247 	bool timetabling;            ///< Whether to allow timetabling.
   226 	bool timetable_in_ticks;     ///< Whether to show the timetable in ticks rather than days.
   248 	bool timetable_in_ticks;     ///< Whether to show the timetable in ticks rather than days.
   227 
   249 
   228 	bool autoslope;              ///< Allow terraforming under things.
   250 	bool autoslope;              ///< Allow terraforming under things.