(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:
15
src/vehiclelist.h
Normal file
15
src/vehiclelist.h
Normal 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 */
|
||||
Reference in New Issue
Block a user