Files
@ r12587:a88a804565f4
Branch filter:
Location: cpp/openttd-patchpack/source/src/openttd.h - annotation
r12587:a88a804565f4
1.2 KiB
text/x-c
(svn r17040) -Fix [FS#3081]: inconsistency between signs of stations and waypoints
r5475:3f5cd13d1b63 r8989:ff553dd7e4c1 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r11847:235c011992a8 r11847:235c011992a8 r11222:f66b1fc27a15 r8121:d05602c69734 r8121:d05602c69734 r11222:f66b1fc27a15 r8121:d05602c69734 r8121:d05602c69734 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r11223:d5864a79dfb6 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r12502:8d1b2c0c955a r12502:8d1b2c0c955a r12502:8d1b2c0c955a r12502:8d1b2c0c955a r12502:8d1b2c0c955a r12502:8d1b2c0c955a r6427:94a91cd8da86 r6427:94a91cd8da86 r11222:f66b1fc27a15 r11223:d5864a79dfb6 r8121:d05602c69734 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r11847:235c011992a8 r8121:d05602c69734 r5475:3f5cd13d1b63 | /* $Id$ */
/** @file openttd.h Some generic types. */
#ifndef OPENTTD_H
#define OPENTTD_H
#include "core/enum_type.hpp"
enum GameMode {
GM_MENU,
GM_NORMAL,
GM_EDITOR,
};
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,
};
/* Display Options */
enum {
DO_SHOW_TOWN_NAMES = 0,
DO_SHOW_STATION_NAMES = 1,
DO_SHOW_SIGNS = 2,
DO_FULL_ANIMATION = 3,
DO_FULL_DETAIL = 5,
DO_SHOW_WAYPOINT_NAMES = 6,
};
extern GameMode _game_mode;
extern SwitchMode _switch_mode;
extern bool _exit_game;
/** Modes of pausing we've got */
enum PauseMode {
PM_UNPAUSED = 0, ///< A normal unpaused game
PM_PAUSED_NORMAL = 1 << 0, ///< A game normally paused
PM_PAUSED_SAVELOAD = 1 << 1, ///< A game paused for saving/loading
PM_PAUSED_JOIN = 1 << 2, ///< A game paused for 'pause on join'
PM_PAUSED_ERROR = 1 << 3, ///< A game paused because a (critical) error
};
DECLARE_ENUM_AS_BIT_SET(PauseMode);
typedef SimpleTinyEnumT<PauseMode, byte> PauseModeByte;
/** The current pause mode */
extern PauseModeByte _pause_mode;
#endif /* OPENTTD_H */
|