34 uint32_t
Pack()
const;
38 bool Valid()
const {
return this->type < VLT_END; }
Types related to companies.
Owner
Enum for all companies/owners.
The information about a vehicle list.
VehicleListType type
The type of vehicle list.
CompanyID company
The company associated with this list.
uint32_t Pack() const
Pack a VehicleListIdentifier in a single uint32.
VehicleType vtype
The vehicle type associated with this list.
static VehicleListIdentifier UnPack(uint32_t data)
Decode a packed vehicle list identifier into a new one.
VehicleListIdentifier(VehicleListType type, VehicleType vtype, CompanyID company, uint index=0)
Create a simple vehicle list.
uint32_t index
A vehicle list type specific index.
bool UnpackIfValid(uint32_t data)
Unpack a VehicleListIdentifier from a single uint32.
Types related to vehicles.
VehicleType
Available vehicle types.
uint GetUnitNumberDigits(VehicleList &vehicles)
Get the number of digits the biggest unit number of a set of vehicles has.
std::vector< const Vehicle * > VehicleList
A list of vehicles.
void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine_list, VehicleList *wagon_list, bool individual_wagons=false)
Generate a list of vehicles inside a depot.
bool GenerateVehicleSortList(VehicleList *list, const VehicleListIdentifier &identifier)
Generate a list of vehicles based on window type.
VehicleListType
Vehicle List type flags.