2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
2008-04-19 12:18:38 +02:00
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file openttd.h Some generic types. */
|
2005-07-24 16:12:37 +02:00
|
|
|
|
2005-07-15 23:28:26 +02:00
|
|
|
#ifndef OPENTTD_H
|
|
|
|
#define OPENTTD_H
|
2004-08-09 19:04:08 +02:00
|
|
|
|
2009-02-25 01:14:46 +01:00
|
|
|
enum GameMode {
|
2007-12-23 00:30:28 +01:00
|
|
|
GM_MENU,
|
|
|
|
GM_NORMAL,
|
2009-02-25 01:14:46 +01:00
|
|
|
GM_EDITOR,
|
2007-12-23 00:30:28 +01:00
|
|
|
};
|
|
|
|
|
2009-02-25 01:45:52 +01:00
|
|
|
enum SwitchMode {
|
|
|
|
SM_NONE,
|
|
|
|
SM_NEWGAME,
|
|
|
|
SM_EDITOR,
|
|
|
|
SM_LOAD,
|
|
|
|
SM_MENU,
|
|
|
|
SM_SAVE,
|
|
|
|
SM_GENRANDLAND,
|
|
|
|
SM_LOAD_SCENARIO,
|
|
|
|
SM_START_SCENARIO,
|
|
|
|
SM_START_HEIGHTMAP,
|
|
|
|
SM_LOAD_HEIGHTMAP,
|
2004-08-09 19:04:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Display Options */
|
|
|
|
enum {
|
2007-05-07 13:24:23 +02:00
|
|
|
DO_SHOW_TOWN_NAMES = 0,
|
|
|
|
DO_SHOW_STATION_NAMES = 1,
|
|
|
|
DO_SHOW_SIGNS = 2,
|
|
|
|
DO_FULL_ANIMATION = 3,
|
|
|
|
DO_FULL_DETAIL = 5,
|
|
|
|
DO_WAYPOINTS = 6,
|
2007-04-05 09:49:04 +02:00
|
|
|
};
|
|
|
|
|
2009-02-25 01:14:46 +01:00
|
|
|
extern GameMode _game_mode;
|
2009-02-25 01:45:52 +01:00
|
|
|
extern SwitchMode _switch_mode;
|
2007-12-23 00:30:28 +01:00
|
|
|
extern bool _exit_game;
|
2008-03-04 13:14:34 +01:00
|
|
|
extern int8 _pause_game;
|
2007-12-23 00:30:28 +01:00
|
|
|
|
2005-07-15 23:28:26 +02:00
|
|
|
#endif /* OPENTTD_H */
|