Go to the documentation of this file.
55 extern bool _exit_game;
56 extern bool _save_config;
78 void AskExitToGameMenu();
81 void HandleExitGameRequest();
@ DO_SHOW_COMPETITOR_SIGNS
Display signs, station names and waypoint names of opponent companies. Buoys and oilrig-stations are ...
SwitchMode
Mode which defines what mode we're switching to.
@ SM_START_HEIGHTMAP
Load a heightmap and start a new game from it.
@ SM_LOAD_GAME
Load game, Play Scenario.
@ SM_EDITOR
Switch to scenario editor.
DisplayOptions
Display Options.
@ PMB_PAUSED_NETWORK
Pause mode bits when paused for network reasons.
@ SM_LOAD_SCENARIO
Load scenario from scenario editor.
@ PM_UNPAUSED
A normal unpaused game.
@ DO_FULL_ANIMATION
Perform palette animation.
@ PM_PAUSED_SAVELOAD
A game paused for saving/loading.
@ SM_NEWGAME
New Game --> 'Random game'.
@ SM_SAVE_HEIGHTMAP
Save heightmap.
bool RequestNewGRFScan(struct NewGRFScanCallback *callback=nullptr)
Request a new NewGRF scan.
@ DO_SHOW_STATION_NAMES
Display station names.
PauseMode
Modes of pausing we've got.
GameMode
Mode which defines the state of the game.
@ SM_GENRANDLAND
Generate random land within scenario editor.
@ DO_FULL_DETAIL
Also draw details of track and roads.
@ PM_PAUSED_GAME_SCRIPT
A game paused by a game script.
int openttd_main(int argc, char *argv[])
Main entry point for this lovely game.
@ SM_LOAD_HEIGHTMAP
Load heightmap from scenario editor.
@ PM_PAUSED_ACTIVE_CLIENTS
A game paused for 'min_active_clients'.
SwitchMode _switch_mode
The next mainloop command.
@ PM_PAUSED_NORMAL
A game normally paused.
@ SM_RESTART_HEIGHTMAP
Load a heightmap and start a new game from it with current settings.
@ DO_SHOW_SIGNS
Display signs.
@ DO_SHOW_TOWN_NAMES
Display town names.
@ SM_RELOADGAME
Reload the savegame / scenario / heightmap you started the game with.
@ SM_MENU
Switch to game intro menu.
@ PM_PAUSED_LINK_GRAPH
A game paused due to the link graph schedule lagging.
@ PM_PAUSED_JOIN
A game paused for 'pause_on_join'.
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
Callback for NewGRF scanning.
@ PM_PAUSED_ERROR
A game paused because a (critical) error.
@ SM_JOIN_GAME
Join a network game.
@ DO_SHOW_WAYPOINT_NAMES
Display waypoint names.
PauseMode _pause_mode
The current pause mode.
@ SM_RESTARTGAME
Restart --> 'Random game' with current settings.