--- a/src/ai/api/ai_airport.hpp Thu Apr 03 23:01:54 2008 +0000
+++ b/src/ai/api/ai_airport.hpp Fri Apr 04 10:43:13 2008 +0000
@@ -91,6 +91,12 @@
* @param tile The topleft corner of the airport.
* @param type The type of airport to build.
* @pre AIMap::IsValidTile(tile).
+ * @pre AirportAvailable(type).
+ * @exception AIError::ERR_AREA_NOT_CLEAR
+ * @exception AIError::ERR_FLAT_LAND_REQUIRED
+ * @exception AIError::ERR_LOCAL_AUTHORITY_REFUSES
+ * @exception AIStation::ERR_STATION_TOO_LARGE
+ * @exception AIStation::ERR_STATION_TOO_CLOSE_TO_OTHER_STATION
* @return Whether the airport has been/can be build or not.
*/
static bool BuildAirport(TileIndex tile, AirportType type);
@@ -99,6 +105,7 @@
* Removes a airport.
* @param tile Any tile of the airport.
* @pre AIMap::IsValidTile(tile).
+ * @exception AIError::ERR_AREA_IS_OWNED_BY_ANOTHER_COMPANY
* @return Whether the airport has been/can be removed or not.
*/
static bool RemoveAirport(TileIndex tile);