equal
deleted
inserted
replaced
202 * Builds a road depot. |
202 * Builds a road depot. |
203 * @param tile Place to build the depot. |
203 * @param tile Place to build the depot. |
204 * @param front The tile exactly in front of the depot. |
204 * @param front The tile exactly in front of the depot. |
205 * @pre AIMap::IsValidTile(tile). |
205 * @pre AIMap::IsValidTile(tile). |
206 * @pre AIMap::IsValidTile(front). |
206 * @pre AIMap::IsValidTile(front). |
207 * @pre Tile is not equal to front. |
207 * @pre 'tile' is not equal to 'front', but in a straight line of it. |
208 * @exception AIError::ERR_FLAT_LAND_REQUIRED |
208 * @exception AIError::ERR_FLAT_LAND_REQUIRED |
209 * @exception AIError::ERR_AREA_NOT_CLEAR |
209 * @exception AIError::ERR_AREA_NOT_CLEAR |
210 * @return Whether the road depot has been/can be build or not. |
210 * @return Whether the road depot has been/can be build or not. |
211 */ |
211 */ |
212 static bool BuildRoadDepot(TileIndex tile, TileIndex front); |
212 static bool BuildRoadDepot(TileIndex tile, TileIndex front); |
218 * For drive-through stations either entrance side can be used. |
218 * For drive-through stations either entrance side can be used. |
219 * @param truck Whether to build a truck (true) or bus (false) station. |
219 * @param truck Whether to build a truck (true) or bus (false) station. |
220 * @param drive_through Whether to make the station drive through or not. |
220 * @param drive_through Whether to make the station drive through or not. |
221 * @pre AIMap::IsValidTile(tile). |
221 * @pre AIMap::IsValidTile(tile). |
222 * @pre AIMap::IsValidTile(front). |
222 * @pre AIMap::IsValidTile(front). |
223 * @pre 'tile' is not equal to 'front'. |
223 * @pre 'tile' is not equal to 'front', but in a straight line of it. |
224 * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY |
224 * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY |
225 * @exception AIError::ERR_AREA_NOT_CLEAR |
225 * @exception AIError::ERR_AREA_NOT_CLEAR |
226 * @exception AIError::ERR_FLAT_LAND_REQUIRED |
226 * @exception AIError::ERR_FLAT_LAND_REQUIRED |
227 * @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION |
227 * @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION |
228 * @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD |
228 * @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD |