63 * @param tile The tile to check. |
63 * @param tile The tile to check. |
64 * @pre AIMap::IsValidTile(tile). |
64 * @pre AIMap::IsValidTile(tile). |
65 * @return True if and only if the tile has a canal. |
65 * @return True if and only if the tile has a canal. |
66 */ |
66 */ |
67 static bool IsCanalTile(TileIndex tile); |
67 static bool IsCanalTile(TileIndex tile); |
|
68 |
|
69 /** |
|
70 * Checks whether the given tiles are directly connected, i.e. whether |
|
71 * a ship vehicle can travel from the center of the first tile to the |
|
72 * center of the second tile. |
|
73 * @param tile_from The source tile. |
|
74 * @param tile_to The destination tile. |
|
75 * @pre AIMap::IsValidTile(tile_from). |
|
76 * @pre AIMap::IsValidTile(tile_to). |
|
77 * @pre 'tile_from' and 'tile_to' are directly neighbouring tiles. |
|
78 * @return True if and only if a ship can go from tile_from to tile_to. |
|
79 */ |
|
80 static bool AreWaterTilesConnected(TileIndex tile_from, TileIndex tile_to); |
68 |
81 |
69 /** |
82 /** |
70 * Builds a water depot on tile. |
83 * Builds a water depot on tile. |
71 * @param tile The tile where the water depot will be build. |
84 * @param tile The tile where the water depot will be build. |
72 * @param vertical If true, depot will be vertical, else horizontal. |
85 * @param vertical If true, depot will be vertical, else horizontal. |