src/vehicle.h
changeset 7982 539e32cc37ce
parent 7980 9b12784cc39c
child 7984 c539c9368e3c
equal deleted inserted replaced
7981:506461241c0e 7982:539e32cc37ce
   553 void VehicleEnteredDepotThisTick(Vehicle *v);
   553 void VehicleEnteredDepotThisTick(Vehicle *v);
   554 
   554 
   555 void BeginVehicleMove(Vehicle *v);
   555 void BeginVehicleMove(Vehicle *v);
   556 void EndVehicleMove(Vehicle *v);
   556 void EndVehicleMove(Vehicle *v);
   557 
   557 
   558 void ShowAircraftViewWindow(const Vehicle* v);
       
   559 
       
   560 UnitID GetFreeUnitNumber(VehicleType type);
   558 UnitID GetFreeUnitNumber(VehicleType type);
   561 
   559 
   562 void TrainConsistChanged(Vehicle *v);
   560 void TrainConsistChanged(Vehicle *v);
   563 void TrainPowerChanged(Vehicle *v);
   561 void TrainPowerChanged(Vehicle *v);
   564 Money GetTrainRunningCost(const Vehicle *v);
   562 Money GetTrainRunningCost(const Vehicle *v);
   569 
   567 
   570 uint GenerateVehicleSortList(const Vehicle*** sort_list, uint16 *length_of_array, VehicleType type, PlayerID owner, uint32 index, uint16 window_type);
   568 uint GenerateVehicleSortList(const Vehicle*** sort_list, uint16 *length_of_array, VehicleType type, PlayerID owner, uint32 index, uint16 window_type);
   571 void BuildDepotVehicleList(VehicleType type, TileIndex tile, Vehicle ***engine_list, uint16 *engine_list_length, uint16 *engine_count, Vehicle ***wagon_list, uint16 *wagon_list_length, uint16 *wagon_count);
   569 void BuildDepotVehicleList(VehicleType type, TileIndex tile, Vehicle ***engine_list, uint16 *engine_list_length, uint16 *engine_count, Vehicle ***wagon_list, uint16 *wagon_list_length, uint16 *wagon_count);
   572 CommandCost SendAllVehiclesToDepot(VehicleType type, uint32 flags, bool service, PlayerID owner, uint16 vlw_flag, uint32 id);
   570 CommandCost SendAllVehiclesToDepot(VehicleType type, uint32 flags, bool service, PlayerID owner, uint16 vlw_flag, uint32 id);
   573 bool IsVehicleInDepot(const Vehicle *v);
   571 bool IsVehicleInDepot(const Vehicle *v);
       
   572 bool IsVehicleInDepotStopped(const Vehicle *v);
   574 void VehicleEnterDepot(Vehicle *v);
   573 void VehicleEnterDepot(Vehicle *v);
   575 
   574 
   576 void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g);
   575 void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g);
   577 
   576 
   578 CommandCost MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs);
   577 CommandCost MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs);