diff options
author | maedhros <maedhros@openttd.org> | 2007-02-28 17:06:22 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-02-28 17:06:22 +0000 |
commit | f865f0a44550f0433495e494c66928d4e9a82aad (patch) | |
tree | b0213d0f3e5e9163fa7e9265112b64df649060ff /src/engine.h | |
parent | 8108cbbe3c5e9fe49750f195ad242dd6b222adba (diff) | |
download | openttd-f865f0a44550f0433495e494c66928d4e9a82aad.tar.xz |
(svn r8944) -Codechange: Move the enum describing the bitmask of Engine.flags to engine.h and give the enum values better names.
Diffstat (limited to 'src/engine.h')
-rw-r--r-- | src/engine.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine.h b/src/engine.h index fe77d2c52..d1b06e678 100644 --- a/src/engine.h +++ b/src/engine.h @@ -124,6 +124,15 @@ enum { EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU) }; +/** + * Engine.flags is a bitmask, with the following values. + */ +enum { + ENGINE_AVAILABLE = 1, ///< This vehicle is available to everyone. + ENGINE_EXCLUSIVE_PREVIEW = 2, ///< This vehicle is in the exclusive preview stage, either being used or being offered to a player. + ENGINE_OFFER_WINDOW_OPEN = 4, ///< The exclusive offer window is currently open for a player. +}; + enum { NUM_VEHICLE_TYPES = 6 }; |