diff options
author | rubidium <rubidium@openttd.org> | 2007-07-16 23:55:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-16 23:55:22 +0000 |
commit | 3dd6362bb8a07e36eaf621bdf5c256087fbbf8c8 (patch) | |
tree | 052fe05961ef6ef6913712ffee40515822018816 /src/station.h | |
parent | 0f8e7e79bed67ccaa578b5d25ba250aa2051381e (diff) | |
download | openttd-3dd6362bb8a07e36eaf621bdf5c256087fbbf8c8.tar.xz |
(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/station.h b/src/station.h index 25f77e7d2..c447f2ab7 100644 --- a/src/station.h +++ b/src/station.h @@ -185,6 +185,16 @@ protected: static Station *AllocateRaw(); }; +enum StationType { + STATION_RAIL, + STATION_AIRPORT, + STATION_TRUCK, + STATION_BUS, + STATION_OILRIG, + STATION_DOCK, + STATION_BUOY +}; + enum { FACIL_TRAIN = 0x01, FACIL_TRUCK_STOP = 0x02, @@ -263,8 +273,8 @@ void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad); -const DrawTileSprites *GetStationTileLayout(byte gfx); -void StationPickerDrawSprite(int x, int y, RailType railtype, RoadType roadtype, int image); +const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx); +void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image); RoadStop * GetRoadStopByTile(TileIndex tile, RoadStop::Type type); uint GetNumRoadStops(const Station* st, RoadStop::Type type); |