src/road_map.h
branchgamebalance
changeset 9908 0fa543611bbe
parent 9907 3b068c3a1c74
child 9911 0b8b245a2391
equal deleted inserted replaced
9907:3b068c3a1c74 9908:0fa543611bbe
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file road_map.h */
     2 
     4 
     3 #ifndef ROAD_MAP_H
     5 #ifndef ROAD_MAP_H
     4 #define ROAD_MAP_H
     6 #define ROAD_MAP_H
     5 
     7 
     6 #include "macros.h"
     8 #include "macros.h"
   169  * Special behaviour:
   171  * Special behaviour:
   170  * - road depots: entrance is treated as road piece
   172  * - road depots: entrance is treated as road piece
   171  * - road tunnels: entrance is treated as road piece
   173  * - road tunnels: entrance is treated as road piece
   172  * - bridge ramps: start of the ramp is treated as road piece
   174  * - bridge ramps: start of the ramp is treated as road piece
   173  * - bridge middle parts: bridge itself is ignored
   175  * - bridge middle parts: bridge itself is ignored
       
   176  * @param tile the tile to get the road bits for
       
   177  * @return the road bits of the given tile
   174  */
   178  */
   175 RoadBits GetAnyRoadBits(TileIndex);
   179 RoadBits GetAnyRoadBits(TileIndex tile);
   176 
   180 
   177 
   181 /**
       
   182  * Get the accessible track bits for the given tile.
       
   183  * Special behaviour:
       
   184  *  - road depots: no track bits
       
   185  *  - non-drive-through stations: no track bits
       
   186  * @param tile the tile to get the track bits for
       
   187  * @return the track bits for the given tile
       
   188  */
   178 TrackBits GetAnyRoadTrackBits(TileIndex tile);
   189 TrackBits GetAnyRoadTrackBits(TileIndex tile);
   179 
   190 
   180 
   191 
   181 static inline void MakeRoadNormal(TileIndex t, Owner owner, RoadBits bits, TownID town)
   192 static inline void MakeRoadNormal(TileIndex t, Owner owner, RoadBits bits, TownID town)
   182 {
   193 {