equal
deleted
inserted
replaced
20 * direction. For drive-through roadstops this works about |
20 * direction. For drive-through roadstops this works about |
21 * the same, though they have to be built on straight roads. |
21 * the same, though they have to be built on straight roads. |
22 */ |
22 */ |
23 class AIRoad : public AIObject { |
23 class AIRoad : public AIObject { |
24 public: |
24 public: |
|
25 /** |
|
26 * The name of the class, needed by several sub-processes. |
|
27 */ |
|
28 static const char *GetClassName() { return "AIRoad"; } |
|
29 |
25 /** |
30 /** |
26 * Checks whether the given tile is actually a tile with road. |
31 * Checks whether the given tile is actually a tile with road. |
27 * @param tile the tile to check. |
32 * @param tile the tile to check. |
28 * @pre tile is always positive and smaller than AIMap::GetMapSize(). |
33 * @pre tile is always positive and smaller than AIMap::GetMapSize(). |
29 * @return true if and only if the tile has road. |
34 * @return true if and only if the tile has road. |