summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-11 15:00:11 +0000
committerrubidium <rubidium@openttd.org>2008-05-11 15:00:11 +0000
commitc47926311b5f90086f0c7a44c30f3455748d524c (patch)
tree3c0ce8e05ee0bdb41306b1ddf6722bc52de992f5 /src/vehicle_gui.h
parent75e3792aa34785a30e97b2aca97f527baef948dc (diff)
downloadopenttd-c47926311b5f90086f0c7a44c30f3455748d524c.tar.xz
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index 40c37a70b..1079bd22e 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -63,8 +63,6 @@ static inline bool ValidVLWFlags(uint16 flags)
return (flags == VLW_STANDARD || flags == VLW_SHARED_ORDERS || flags == VLW_STATION_LIST || flags == VLW_DEPOT_LIST || flags == VLW_GROUP_LIST);
}
-void PlayerVehWndProc(Window *w, struct WindowEvent *e);
-
int DrawVehiclePurchaseInfo(int x, int y, uint w, EngineID engine_number);
void DrawTrainImage(const Vehicle *v, int x, int y, VehicleID selection, int count, int skip);
@@ -134,7 +132,7 @@ Vehicle *CheckClickOnVehicle(const struct ViewPort *vp, int x, int y);
typedef GUIList<const Vehicle*> GUIVehicleList;
-struct vehiclelist_d {
+struct VehicleListBase {
GUIVehicleList vehicles; ///< The list of vehicles
Listing *sorting; ///< Pointer to the vehicle type related sorting.
VehicleType vehicle_type; ///< The vehicle type that is sorted
@@ -152,7 +150,7 @@ extern Sorting _sorting;
/* sorter stuff */
void RebuildVehicleLists();
void ResortVehicleLists();
-void SortVehicleList(vehiclelist_d *vl);
-void BuildVehicleList(vehiclelist_d *vl, PlayerID owner, uint16 index, uint16 window_type);
+void SortVehicleList(VehicleListBase *vl);
+void BuildVehicleList(VehicleListBase *vl, PlayerID owner, uint16 index, uint16 window_type);
#endif /* VEHICLE_GUI_H */