src/engine.h
changeset 7077 a76fe9c65fcb
parent 7001 d5f19455d650
child 7081 279d45234afe
equal deleted inserted replaced
7076:3bc104d72eef 7077:a76fe9c65fcb
    12 
    12 
    13 enum RailVehicleTypes {
    13 enum RailVehicleTypes {
    14 	RAILVEH_SINGLEHEAD,  ///< indicates a "standalone" locomotive
    14 	RAILVEH_SINGLEHEAD,  ///< indicates a "standalone" locomotive
    15 	RAILVEH_MULTIHEAD,   ///< indicates a combination of two locomotives
    15 	RAILVEH_MULTIHEAD,   ///< indicates a combination of two locomotives
    16 	RAILVEH_WAGON,       ///< simple wagon, not motorized
    16 	RAILVEH_WAGON,       ///< simple wagon, not motorized
       
    17 };
       
    18 
       
    19 enum EngineClass {
       
    20 	EC_STEAM,
       
    21 	EC_DIESEL,
       
    22 	EC_ELECTRIC,
    17 };
    23 };
    18 
    24 
    19 struct RailVehicleInfo {
    25 struct RailVehicleInfo {
    20 	byte image_index;
    26 	byte image_index;
    21 	RailVehicleTypes railveh_type;
    27 	RailVehicleTypes railveh_type;
    24 	uint16 max_speed;
    30 	uint16 max_speed;
    25 	uint16 power;
    31 	uint16 power;
    26 	uint16 weight;
    32 	uint16 weight;
    27 	byte running_cost_base;
    33 	byte running_cost_base;
    28 	byte running_cost_class;
    34 	byte running_cost_class;
    29 	byte engclass;         ///< 0: steam, 1: diesel, 2: electric
    35 	EngineClass engclass;           ///< Class of engine for this vehicle
    30 	byte capacity;
    36 	byte capacity;
    31 	CargoID cargo_type;
    37 	CargoID cargo_type;
    32 	byte ai_rank;
    38 	byte ai_rank;
    33 	uint16 pow_wag_power;
    39 	uint16 pow_wag_power;
    34 	byte pow_wag_weight;
    40 	byte pow_wag_weight;