src/road_map.h
changeset 8716 360342cfd3fe
parent 8598 ddd1f342b0da
child 8734 cf2c240d2e1b
equal deleted inserted replaced
8715:26eb4dd8f515 8716:360342cfd3fe
   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