summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-05-07 07:01:48 +0000
committertron <tron@openttd.org>2006-05-07 07:01:48 +0000
commit4f092c8de8e30ce4d29165a7d46dd2203c887722 (patch)
tree5aff3f089bba3937bf63a4dd89a43b2e5a5b161d /rail.h
parentec1edb127a3480e4ae6f6227487fbf50e0206805 (diff)
downloadopenttd-4f092c8de8e30ce4d29165a7d46dd2203c887722.tar.xz
(svn r4764) Move some functions from rail.h to rail_map.h
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/rail.h b/rail.h
index 9a7240b4f..db25c0528 100644
--- a/rail.h
+++ b/rail.h
@@ -178,49 +178,6 @@ static inline byte SignalOnTrack(Track track) {
return _signal_on_track[track];
}
-/*
- * Some functions to query rail tiles
- */
-
-
-/**
- * Checks if a rail tile has signals.
- */
-static inline bool HasSignals(TileIndex tile)
-{
- return GetRailTileType(tile) == RAIL_TYPE_SIGNALS;
-}
-
-/**
- * Returns the RailTileSubtype of a given rail tile with type
- * RAIL_TYPE_DEPOT_WAYPOINT
- */
-static inline RailTileSubtype GetRailTileSubtype(TileIndex tile)
-{
- assert(GetRailTileType(tile) == RAIL_TYPE_DEPOT_WAYPOINT);
- return (RailTileSubtype)(_m[tile].m5 & RAIL_SUBTYPE_MASK);
-}
-
-/**
- * Returns whether this is plain rails, with or without signals. Iow, if this
- * tiles RailTileType is RAIL_TYPE_NORMAL or RAIL_TYPE_SIGNALS.
- */
-static inline bool IsPlainRailTile(TileIndex tile)
-{
- RailTileType rtt = GetRailTileType(tile);
- return rtt == RAIL_TYPE_NORMAL || rtt == RAIL_TYPE_SIGNALS;
-}
-
-
-/**
- * Returns whether the given track is present on the given tile. Tile must be
- * a plain rail tile (IsPlainRailTile()).
- */
-static inline bool HasTrack(TileIndex tile, Track track)
-{
- assert(IsValidTrack(track));
- return HASBIT(GetTrackBits(tile), track);
-}
/*
* Functions describing logical relations between Tracks, TrackBits, Trackdirs