diff options
author | rubidium <rubidium@openttd.org> | 2008-01-13 13:36:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-13 13:36:01 +0000 |
commit | fafab82a312660ba3dc66b2e06d1a1dec6776103 (patch) | |
tree | ec37405dba3eeb85aaeaa7e2ed2433812d3061d6 /src/settings_type.h | |
parent | 86a6268f3ea3072afa30297cf6017885cbff31f7 (diff) | |
download | openttd-fafab82a312660ba3dc66b2e06d1a1dec6776103.tar.xz |
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
Diffstat (limited to 'src/settings_type.h')
-rw-r--r-- | src/settings_type.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/settings_type.h b/src/settings_type.h index 53cdb6387..8f693aea3 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -9,6 +9,31 @@ #include "date_type.h" #include "town_type.h" +#define GAME_DIFFICULTY_NUM 18 + +/** Specific type for Game Difficulty to ease changing the type */ +typedef uint16 GDType; +struct GameDifficulty { + GDType max_no_competitors; + GDType competitor_start_time; + GDType number_towns; + GDType number_industries; + GDType max_loan; + GDType initial_interest; + GDType vehicle_costs; + GDType competitor_speed; + GDType competitor_intelligence; // no longer in use + GDType vehicle_breakdowns; + GDType subsidy_multiplier; + GDType construction_cost; + GDType terrain_type; + GDType quantity_sea_lakes; + GDType economy; + GDType line_reverse_mode; + GDType disasters; + GDType town_council_tolerance; // minimum required town ratings to be allowed to demolish stuff +}; + struct GameOptions { GameDifficulty diff; byte diff_level; |