summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-02 17:42:12 +0000
committerrubidium <rubidium@openttd.org>2011-05-02 17:42:12 +0000
commitfb5ecb94992e7febf4bc059cb6ec4a51f50c66b0 (patch)
tree87956636c318baa8d5d8d62f13263c4f64dbe881 /src/genworld_gui.cpp
parent4d5dbf51707c42c24eeafdb65016b079c54adcf2 (diff)
downloadopenttd-fb5ecb94992e7febf4bc059cb6ec4a51f50c66b0.tar.xz
(svn r22411) -Document: another bunch of bits
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index f1a58679b..f51d1fdfe 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -875,21 +875,28 @@ static void _ShowGenerateLandscape(GenenerateLandscapeWindowMode mode)
SetWindowDirty(WC_GENERATE_LANDSCAPE, mode);
}
+/** Start with a normal game. */
void ShowGenerateLandscape()
{
_ShowGenerateLandscape(GLWM_GENERATE);
}
+/** Start with loading a heightmap. */
void ShowHeightmapLoad()
{
_ShowGenerateLandscape(GLWM_HEIGHTMAP);
}
+/** Start with a scenario editor. */
void StartScenarioEditor()
{
StartGeneratingLandscape(GLWM_SCENARIO);
}
+/**
+ * Start a normal game without the GUI.
+ * @param seed The seed of the new game.
+ */
void StartNewGameWithoutGUI(uint seed)
{
/* GenerateWorld takes care of the possible GENERATE_NEW_SEED value in 'seed' */
@@ -1155,6 +1162,7 @@ static const WindowDesc _create_scenario_desc(
_nested_create_scenario_widgets, lengthof(_nested_create_scenario_widgets)
);
+/** Show the window to create a scenario. */
void ShowCreateScenario()
{
DeleteWindowByClass(WC_GENERATE_LANDSCAPE);