(svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h

This commit is contained in:
peter1138
2008-05-28 11:56:21 +00:00
parent f97403803b
commit f731b31eda
8 changed files with 164 additions and 136 deletions

15
src/vehiclelist.h Normal file
View File

@@ -0,0 +1,15 @@
/* $Id$ */
/** @file vehiclelist.h Functions and type for generating vehicle lists. */
#ifndef VEHICLELIST_H
#define VEHICLELIST_H
#include "misc/smallvec.h"
typedef SmallVector<const Vehicle *, 32> VehicleList;
void GenerateVehicleSortList(VehicleList *list, VehicleType type, PlayerID owner, uint32 index, uint16 window_type);
void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine_list, VehicleList *wagon_list);
#endif /* VEHICLELIST_H */