src/cargotype.h
changeset 8762 bbe195577e21
parent 8298 681e3c5f50ad
child 8959 636d242edd89
equal deleted inserted replaced
8761:40d9db82a895 8762:bbe195577e21
    57 
    57 
    58 /* Set up the default cargo types for the given landscape type */
    58 /* Set up the default cargo types for the given landscape type */
    59 void SetupCargoForClimate(LandscapeID l);
    59 void SetupCargoForClimate(LandscapeID l);
    60 /* Retrieve cargo details for the given cargo ID */
    60 /* Retrieve cargo details for the given cargo ID */
    61 const CargoSpec *GetCargo(CargoID c);
    61 const CargoSpec *GetCargo(CargoID c);
       
    62 /* Get the cargo icon for a given cargo ID */
       
    63 SpriteID GetCargoSprite(CargoID i);
    62 /* Get the cargo ID with the cargo label */
    64 /* Get the cargo ID with the cargo label */
    63 CargoID GetCargoIDByLabel(CargoLabel cl);
    65 CargoID GetCargoIDByLabel(CargoLabel cl);
    64 CargoID GetCargoIDByBitnum(uint8 bitnum);
    66 CargoID GetCargoIDByBitnum(uint8 bitnum);
    65 
    67 
    66 static inline bool IsCargoInClass(CargoID c, uint16 cc)
    68 static inline bool IsCargoInClass(CargoID c, uint16 cc)