equal
deleted
inserted
replaced
|
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 #include "tile_cmd.h" |
|
9 |
|
10 /** |
|
11 * Clean up unneccesary RoadBits of a planed tile. |
|
12 * @param tile current tile |
|
13 * @param org_rb planed RoadBits |
|
14 * @return optimised RoadBits |
|
15 */ |
|
16 RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb); |
|
17 |
|
18 /** |
|
19 * Is it allowed to remove the given road bits from the given tile? |
|
20 * @param tile the tile to remove the road from |
|
21 * @param remove the roadbits that are going to be removed |
|
22 * @param owner the actual owner of the roadbits of the tile |
|
23 * @param edge_road are the removed bits from a town? |
|
24 * @param rt the road type to remove the bits from |
|
25 * @return true when it is allowed to remove the road bits |
|
26 */ |
|
27 bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *edge_road, RoadType rt); |
|
28 |
|
29 /** |
|
30 * Draw the catenary for tram road bits |
|
31 * @param ti information about the tile (position, slope) |
|
32 * @param tram the roadbits to draw the catenary for |
|
33 */ |
|
34 void DrawTramCatenary(TileInfo *ti, RoadBits tram); |
|
35 |
|
36 #endif /* ROAD_INTERNAL_H */ |