src/road_map.h
changeset 9212 3503ffa351b6
parent 9094 58d1cddf1af6
child 9230 1c0a7c2ee6e5
equal deleted inserted replaced
9211:6ee04ee57ab5 9212:3503ffa351b6
   326  * Special behaviour:
   326  * Special behaviour:
   327  * - road depots: entrance is treated as road piece
   327  * - road depots: entrance is treated as road piece
   328  * - road tunnels: entrance is treated as road piece
   328  * - road tunnels: entrance is treated as road piece
   329  * - bridge ramps: start of the ramp is treated as road piece
   329  * - bridge ramps: start of the ramp is treated as road piece
   330  * - bridge middle parts: bridge itself is ignored
   330  * - bridge middle parts: bridge itself is ignored
       
   331  *
       
   332  * If straight_tunnel_bridge_entrance is set a ROAD_X or ROAD_Y
       
   333  * for bridge ramps and tunnel entrances is returned depending
       
   334  * on the orientation of the tunnel or bridge.
   331  * @param tile the tile to get the road bits for
   335  * @param tile the tile to get the road bits for
   332  * @param rt   the road type to get the road bits form
   336  * @param rt   the road type to get the road bits form
       
   337  * @param stbe whether to return straight road bits for tunnels/bridges.
   333  * @return the road bits of the given tile
   338  * @return the road bits of the given tile
   334  */
   339  */
   335 RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt);
   340 RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt, bool straight_tunnel_bridge_entrance = false);
   336 
   341 
   337 /**
   342 /**
   338  * Get the accessible track bits for the given tile.
   343  * Get the accessible track bits for the given tile.
   339  * Special behaviour:
   344  * Special behaviour:
   340  *  - road depots: no track bits
   345  *  - road depots: no track bits