40 bool Valid()
const {
return this->type < VLT_END; }
48 constexpr void SetIndex(uint32_t
index) { this->index =
index; }
Types related to companies.
A type is considered 'convertible through base()' when it has a 'base()' function that returns someth...
Types related to stations.
The information about a vehicle list.
VehicleListType type
The type of vehicle list.
CompanyID company
The company associated with this list.
WindowNumber ToWindowNumber() const
Pack a VehicleListIdentifier in 32 bits so it can be used as unique WindowNumber.
VehicleType vtype
The vehicle type associated with this list.
VehicleListIdentifier(VehicleListType type, VehicleType vtype, CompanyID company, uint index=0)
Create a simple vehicle list.
uint32_t index
A vehicle list type specific index.
Number to differentiate different windows of the same class.
Types related to vehicles.
PoolID< uint32_t, struct VehicleIDTag, 0xFF000, 0xFFFFF > VehicleID
The type all our vehicle IDs have.
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.
@ VL_GROUP_LIST
Index is the group.
@ VL_STANDARD
Index is the company.
@ VL_STATION_LIST
Index is the station.
@ VL_DEPOT_LIST
Index is the destination (station for hangar of aircraft, depot for others)
@ VL_SHARED_ORDERS
Index is the first vehicle of the shared orders.
Types related to windows.