src/vehicle_type.h
branchnoai
changeset 10776 07203fc29812
parent 10715 6bdf79ffb022
equal deleted inserted replaced
10774:2c882f0468f2 10776:07203fc29812
     4 
     4 
     5 #ifndef VEHICLE_TYPE_H
     5 #ifndef VEHICLE_TYPE_H
     6 #define VEHICLE_TYPE_H
     6 #define VEHICLE_TYPE_H
     7 
     7 
     8 #include "core/enum_type.hpp"
     8 #include "core/enum_type.hpp"
     9 #include "misc/smallvec.h"
       
    10 
     9 
    11 typedef uint16 VehicleID;
    10 typedef uint16 VehicleID;
    12 
    11 
    13 enum VehicleType {
    12 enum VehicleType {
    14 	VEH_TRAIN,
    13 	VEH_TRAIN,
    55 	DEPOT_DONT_CANCEL   = (1 << 2), ///< Don't cancel current goto depot command if any
    54 	DEPOT_DONT_CANCEL   = (1 << 2), ///< Don't cancel current goto depot command if any
    56 	DEPOT_LOCATE_HANGAR = (1 << 3), ///< Find another airport if the target one lacks a hangar
    55 	DEPOT_LOCATE_HANGAR = (1 << 3), ///< Find another airport if the target one lacks a hangar
    57 	DEPOT_COMMAND_MASK  = 0xF,
    56 	DEPOT_COMMAND_MASK  = 0xF,
    58 };
    57 };
    59 
    58 
    60 typedef SmallVector<const Vehicle*, 32> VehicleList;
       
    61 
       
    62 #endif /* VEHICLE_TYPE_H */
    59 #endif /* VEHICLE_TYPE_H */