src/road_internal.h
changeset 8102 906a3d3b6df1
child 8138 dbfdc08fa6b9
equal deleted inserted replaced
8101:d5357bde8cab 8102:906a3d3b6df1
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file road_internal.h Functions used internally by the roads. */
       
     4 
       
     5 #ifndef ROAD_INTERNAL_H
       
     6 #define ROAD_INTERNAL_H
       
     7 
       
     8 /**
       
     9  * Clean up unneccesary RoadBits of a planed tile.
       
    10  * @param tile current tile
       
    11  * @param org_rb planed RoadBits
       
    12  * @return optimised RoadBits
       
    13  */
       
    14 RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb);
       
    15 
       
    16 /**
       
    17  * Is it allowed to remove the given road bits from the given tile?
       
    18  * @param tile      the tile to remove the road from
       
    19  * @param remove    the roadbits that are going to be removed
       
    20  * @param owner     the actual owner of the roadbits of the tile
       
    21  * @param edge_road are the removed bits from a town?
       
    22  * @param rt        the road type to remove the bits from
       
    23  * @return true when it is allowed to remove the road bits
       
    24  */
       
    25 bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *edge_road, RoadType rt);
       
    26 
       
    27 /**
       
    28  * Draw the catenary for tram road bits
       
    29  * @param ti   information about the tile (position, slope)
       
    30  * @param tram the roadbits to draw the catenary for
       
    31  */
       
    32 void DrawTramCatenary(TileInfo *ti, RoadBits tram);
       
    33 
       
    34 #endif /* ROAD_INTERNAL_H */