summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-05 19:34:45 +0000
committerfrosch <frosch@openttd.org>2012-12-05 19:34:45 +0000
commita499435351fcb7b25e1e49e1366ebeac91636c35 (patch)
tree0941b7701eb2e7c88add8330fecb78b4720c8061 /src/settings_type.h
parent5b2da98ca312f91c93012e7a92fb1120d2b9d1fa (diff)
downloadopenttd-a499435351fcb7b25e1e49e1366ebeac91636c35.tar.xz
(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles and highscore tables.
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index af71b2b97..00bb56654 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -20,6 +20,23 @@
#include "zoom_type.h"
#include "openttd.h"
+
+/** Settings profiles and highscore tables. */
+enum SettingsProfile {
+ SP_BEGIN = 0,
+ SP_EASY = SP_BEGIN, ///< Easy difficulty.
+ SP_MEDIUM, ///< Medium difficulty.
+ SP_HARD, ///< Hard difficulty.
+
+ SP_END, ///< End of setting profiles.
+
+ SP_CUSTOM = SP_END, ///< No profile, special "custom" highscore.
+ SP_SAVED_HIGHSCORE_END, ///< End of saved highscore tables.
+
+ SP_MULTIPLAYER = SP_SAVED_HIGHSCORE_END, ///< Special "multiplayer" highscore. Not saved, always specific to the current game.
+ SP_HIGHSCORE_END, ///< End of highscore tables.
+};
+
/** Available industry map generation densities. */
enum IndustryDensity {
ID_FUND_ONLY, ///< The game does not build industries.
@@ -50,7 +67,7 @@ struct DifficultySettings {
byte line_reverse_mode; ///< reversing at stations or not
byte disasters; ///< are disasters enabled
byte town_council_tolerance; ///< minimum required town ratings to be allowed to demolish stuff
- byte diff_level; ///< the difficulty level
+ byte diff_level; ///< the difficulty level. @see SettingsProfile
};
/** Settings related to the GUI and other stuff that is not saved in the savegame. */