File diff r21031:52ba3c85974a → r21032:e58adc438144
src/vehiclelist.h
Show inline comments
 
@@ -38,25 +38,22 @@ struct VehicleListIdentifier {
 
	bool Unpack(uint32 data);
 

	
 
	/**
 
	 * Create a simple vehicle list.
 
	 * @param type    List type.
 
	 * @param vtype   Vehicle type associated with this list.
 
	 * @param company Company associated with this list.
 
	 * @param index   Optional type specific index.
 
	 */
 
	VehicleListIdentifier(VehicleListType type, VehicleType vtype, CompanyID company, uint index = 0) :
 
		type(type), vtype(vtype), company(company), index(index) {}
 

	
 
	VehicleListIdentifier(uint32 data);
 

	
 
	/** Simple empty constructor. In this case you must set everything! */
 
	VehicleListIdentifier() {}
 
	VehicleListIdentifier(uint32 data = 0);
 
};
 

	
 
/** A list of vehicles. */
 
typedef SmallVector<const Vehicle *, 32> VehicleList;
 

	
 
bool GenerateVehicleSortList(VehicleList *list, const VehicleListIdentifier &identifier);
 
void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine_list, VehicleList *wagon_list, bool individual_wagons = false);
 

	
 
#endif /* VEHICLELIST_H */