diff options
author | rubidium <rubidium@openttd.org> | 2008-05-11 15:00:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-11 15:00:11 +0000 |
commit | c47926311b5f90086f0c7a44c30f3455748d524c (patch) | |
tree | 3c0ce8e05ee0bdb41306b1ddf6722bc52de992f5 /src/vehicle_gui.h | |
parent | 75e3792aa34785a30e97b2aca97f527baef948dc (diff) | |
download | openttd-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.h | 8 |
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 */ |