src/engine.h
branchcpp_gui
changeset 6285 187e3ef04cc9
parent 6268 4b5241e5dd10
child 6298 c30fe89622df
equal deleted inserted replaced
6284:45d0233e7d79 6285:187e3ef04cc9
    66 	byte base_cost;
    66 	byte base_cost;
    67 	byte running_cost;
    67 	byte running_cost;
    68 	byte subtype;
    68 	byte subtype;
    69 	SoundFxByte sfx;
    69 	SoundFxByte sfx;
    70 	byte acceleration;
    70 	byte acceleration;
    71 	byte max_speed;
    71 	uint16 max_speed;
    72 	byte mail_capacity;
    72 	byte mail_capacity;
    73 	uint16 passenger_capacity;
    73 	uint16 passenger_capacity;
    74 } AircraftVehicleInfo;
    74 } AircraftVehicleInfo;
    75 
    75 
    76 typedef struct RoadVehicleInfo {
    76 typedef struct RoadVehicleInfo {
   122 	EF_ROAD_TRAM  = 0, ///< Road vehicle is a tram/light rail vehicle (unsup)
   122 	EF_ROAD_TRAM  = 0, ///< Road vehicle is a tram/light rail vehicle (unsup)
   123 	EF_USES_2CC   = 1, ///< Vehicle uses two company colours
   123 	EF_USES_2CC   = 1, ///< Vehicle uses two company colours
   124 	EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU)
   124 	EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU)
   125 };
   125 };
   126 
   126 
       
   127 /**
       
   128  * Engine.flags is a bitmask, with the following values.
       
   129  */
       
   130 enum {
       
   131 	ENGINE_AVAILABLE         = 1, ///< This vehicle is available to everyone.
       
   132 	ENGINE_EXCLUSIVE_PREVIEW = 2, ///< This vehicle is in the exclusive preview stage, either being used or being offered to a player.
       
   133 	ENGINE_OFFER_WINDOW_OPEN = 4, ///< The exclusive offer window is currently open for a player.
       
   134 };
       
   135 
   127 enum {
   136 enum {
   128 	NUM_VEHICLE_TYPES = 6
   137 	NUM_VEHICLE_TYPES = 6
   129 };
   138 };
   130 
   139 
   131 static const EngineID INVALID_ENGINE = 0xFFFF;
   140 static const EngineID INVALID_ENGINE = 0xFFFF;