From 440d723d842db2f246428de2e404091e074ed254 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 24 May 2007 22:41:50 +0000 Subject: (svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile. --- src/openttd.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/openttd.h') diff --git a/src/openttd.h b/src/openttd.h index 0c66d9275..69df7c271 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -364,7 +364,8 @@ typedef uint GetSlopeZProc(TileIndex tile, uint x, uint y); typedef int32 ClearTileProc(TileIndex tile, byte flags); typedef void GetAcceptedCargoProc(TileIndex tile, AcceptedCargo res); typedef void GetTileDescProc(TileIndex tile, TileDesc *td); -/* GetTileTrackStatusProcs return a value that contains the possible tracks +/** + * GetTileTrackStatusProcs return a value that contains the possible tracks * that can be taken on a given tile by a given transport. The return value is * composed as follows: 0xaabbccdd. ccdd and aabb are bitmasks of trackdirs, * where bit n corresponds to trackdir n. ccdd are the trackdirs that are @@ -382,8 +383,12 @@ typedef void GetTileDescProc(TileIndex tile, TileDesc *td); * are a track, the fourth bit is the direction. these give 12 (or 14) * possible options: 0-5 and 8-13, so we need 14 bits for a trackdir bitmask * above. + * @param tile the tile to get the track status from + * @param mode the mode of transportation + * @param sub_mode used to differentiate between different kinds within the mode + * @return the above mentions track status information */ -typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode); +typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode); typedef void GetProducedCargoProc(TileIndex tile, CargoID *b); typedef void ClickTileProc(TileIndex tile); typedef void AnimateTileProc(TileIndex tile); -- cgit v1.2.3-54-g00ecf