src/newgrf_cargo.h
changeset 8517 80ef931323f5
parent 8213 fc7a2b3164dd
child 8615 6b91ca653bad
equal deleted inserted replaced
8516:e7ce655f85ef 8517:80ef931323f5
     6 #define NEWGRF_CARGO_H
     6 #define NEWGRF_CARGO_H
     7 
     7 
     8 #include "newgrf_callbacks.h"
     8 #include "newgrf_callbacks.h"
     9 
     9 
    10 enum {
    10 enum {
    11 	CC_NOAVAILABLE  = 0,
    11 	CC_NOAVAILABLE  = 0,       ///< No cargo class has been specified
    12 	CC_PASSENGERS   = 1 << 0,
    12 	CC_PASSENGERS   = 1 <<  0, ///< Passengers
    13 	CC_MAIL         = 1 << 1,
    13 	CC_MAIL         = 1 <<  1, ///< Mail
    14 	CC_EXPRESS      = 1 << 2,
    14 	CC_EXPRESS      = 1 <<  2, ///< Express cargo (Goods, Food, Candy, but also possible for passengers)
    15 	CC_ARMOURED     = 1 << 3,
    15 	CC_ARMOURED     = 1 <<  3, ///< Armoured cargo (Valuables, Gold, Diamonds)
    16 	CC_BULK         = 1 << 4,
    16 	CC_BULK         = 1 <<  4, ///< Bulk cargo (Coal, Grain etc., Ores, Fruit)
    17 	CC_PIECE_GOODS  = 1 << 5,
    17 	CC_PIECE_GOODS  = 1 <<  5, ///< Piece goods (Livestock, Wood, Steel, Paper)
    18 	CC_LIQUID       = 1 << 6,
    18 	CC_LIQUID       = 1 <<  6, ///< Liquids (Oil, Water, Rubber)
    19 	CC_REFRIGERATED = 1 << 7,
    19 	CC_REFRIGERATED = 1 <<  7, ///< Refrigerated cargo (Food, Fruit)
       
    20 	CC_HAZARDOUS    = 1 <<  8, ///< Hazardous cargo (Nucleair Fuel, Explosives, etc.)
       
    21 	CC_COVERED      = 1 <<  9, ///< Covered/Sheltered Freight (Transporation in Box Vans, Silo Wagons, etc.)
       
    22 	CC_SPECIAL      = 1 << 15  ///< Special bit used for livery refit tricks instead of normal cargoes.
    20 };
    23 };
    21 
    24 
    22 static const CargoID CT_DEFAULT      = NUM_CARGO + 0;
    25 static const CargoID CT_DEFAULT      = NUM_CARGO + 0;
    23 static const CargoID CT_PURCHASE     = NUM_CARGO + 1;
    26 static const CargoID CT_PURCHASE     = NUM_CARGO + 1;
    24 static const CargoID CT_DEFAULT_NA   = NUM_CARGO + 2;
    27 static const CargoID CT_DEFAULT_NA   = NUM_CARGO + 2;