summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index 83e098dcd..c3b702fc8 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -18,6 +18,7 @@
#include "station_type.h"
#include "engine_type.h"
#include "company_type.h"
+#include <list>
void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order, Window *parent, bool auto_refit = false);
@@ -37,6 +38,22 @@ enum VehicleInvalidateWindowData {
VIWD_AUTOREPLACE = -4, ///< Autoreplace replaced the vehicle.
};
+/** List item for one destination. */
+struct CargoDestSummaryData {
+ SourceID dest; ///< Destination ID
+ SourceType type; ///< Destination type
+ uint count; ///< Cargo count
+
+ CargoDestSummaryData(SourceID dest, SourceType type, uint count)
+ : dest(dest), type(type), count(count)
+ { }
+};
+
+/** List of cargo amounts grouped by final destination. */
+typedef std::list<CargoDestSummaryData> CargoDestSummary;
+
+void AddVehicleCargoDestSummary(const Vehicle *v, CargoDestSummary *sum);
+
int DrawVehiclePurchaseInfo(int left, int right, int y, EngineID engine_number);
void DrawTrainImage(const Train *v, int left, int right, int y, VehicleID selection, EngineImageType image_type, int skip, VehicleID drag_dest = INVALID_VEHICLE);