49 type(type), vtype(vtype), company(company), index(index) {}
CompanyID company
The company associated with this list.
SmallVector< const Vehicle *, 32 > VehicleList
A list of vehicles.
The information about a vehicle list.
Simple vector class that allows allocating an item without the need to copy this->data needlessly...
bool UnpackIfValid(uint32 data)
Unpack a VehicleListIdentifier from a single uint32.
VehicleListIdentifier(VehicleListType type, VehicleType vtype, CompanyID company, uint index=0)
Create a simple vehicle list.
VehicleType
Available vehicle types.
uint32 index
A vehicle list type specific index.
void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine_list, VehicleList *wagon_list, bool individual_wagons=false)
Generate a list of vehicles inside a depot.
static VehicleListIdentifier UnPack(uint32 data)
Decode a packed vehicle list identifier into a new one.
bool GenerateVehicleSortList(VehicleList *list, const VehicleListIdentifier &identifier)
Generate a list of vehicles based on window type.
uint32 TileIndex
The index/ID of a Tile.
uint32 Pack() const
Pack a VehicleListIdentifier in a single uint32.
VehicleListType type
The type of vehicle list.
Types related to vehicles.
VehicleListType
Vehicle List type flags.
Types related to companies.
uint GetUnitNumberDigits(VehicleList &vehicles)
Get the number of digits the biggest unit number of a set of vehicles has.
Owner
Enum for all companies/owners.
VehicleType vtype
The vehicle type associated with this list.