author | truebrain |
Mon, 16 Jun 2008 14:43:19 +0000 | |
branch | noai |
changeset 10978 | 13fd0364b2c6 |
parent 10715 | 6bdf79ffb022 |
permissions | -rw-r--r-- |
9723 | 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 rt the road type to remove the bits from |
|
10715
6bdf79ffb022
(svn r13265) [NoAI] -Sync with trunk r13185:13264.
rubidium
parents:
9869
diff
changeset
|
24 |
* @param flags command flags |
6bdf79ffb022
(svn r13265) [NoAI] -Sync with trunk r13185:13264.
rubidium
parents:
9869
diff
changeset
|
25 |
* @param town_check Shall the town rating checked/affected |
9723 | 26 |
* @return true when it is allowed to remove the road bits |
27 |
*/ |
|
10715
6bdf79ffb022
(svn r13265) [NoAI] -Sync with trunk r13185:13264.
rubidium
parents:
9869
diff
changeset
|
28 |
bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadType rt, uint32 flags, bool town_check = true); |
9723 | 29 |
|
30 |
/** |
|
31 |
* Draw the catenary for tram road bits |
|
32 |
* @param ti information about the tile (position, slope) |
|
33 |
* @param tram the roadbits to draw the catenary for |
|
34 |
*/ |
|
9869
6404afe43575
(svn r12597) [NoAI] -Sync: with trunk r12501:12596.
rubidium
parents:
9723
diff
changeset
|
35 |
void DrawTramCatenary(const TileInfo *ti, RoadBits tram); |
9723 | 36 |
|
37 |
#endif /* ROAD_INTERNAL_H */ |