src/ai/api/ai_road.hpp
branchnoai
changeset 10094 e737405b06dd
parent 10091 e4feb2f9fedf
child 10096 780921b39016
--- a/src/ai/api/ai_road.hpp	Tue Apr 08 07:19:02 2008 +0000
+++ b/src/ai/api/ai_road.hpp	Tue Apr 08 07:24:23 2008 +0000
@@ -28,14 +28,6 @@
 		/** Drive through roads can't be build on town owned roads */
 		ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD,           // [STR_DRIVE_THROUGH_ERROR_ON_TOWN_ROAD]
 
-		/** There are too many stations in the game */
-		ERR_ROAD_TOO_MANY_STATIONS,                   // [STR_3008_TOO_MANY_STATIONS_LOADING, STR_TOO_MANY_TRUCK_STOPS, STR_TOO_MANY_BUS_STOPS]
-
-		/** There are too many stations in a town */
-		ERR_ROAD_TOO_MANY_STATIONS_IN_TOWN,           // [STR_3007_TOO_MANY_STATIONS_LOADING]
-
-		/** The station is too close to another station */
-		ERR_ROAD_TOO_CLOSE_TO_ANOTHER_STATION,        // [STR_3009_TOO_CLOSE_TO_ANOTHER_STATION]
 
 		/** One way roads can't have junctions */
 		ERR_ROAD_ONE_WAY_ROADS_CANNOT_HAVE_JUNCTIONS, // [STR_ERR_ONEWAY_ROADS_CAN_T_HAVE_JUNCTION]
@@ -138,7 +130,7 @@
 	 * @exception AIError::ERR_AREA_NOT_CLEAR
 	 * @exception AIRoad::ERR_ROAD_ONE_WAY_ROADS_CANNOT_HAVE_JUNCTIONS
 	 * @exception AIRoad::ERR_ROAD_WORKS_IN_PROGRESS
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIError::ERR_VEHICLE_IN_THE_WAY
 	 * @return Whether the road has been/can be build or not.
 	 */
 	static bool BuildRoad(TileIndex start, TileIndex end);
@@ -159,7 +151,7 @@
 	 * @exception AIError::ERR_AREA_NOT_CLEAR
 	 * @exception AIRoad::ERR_ROAD_ONE_WAY_ROADS_CANNOT_HAVE_JUNCTIONS
 	 * @exception AIRoad::ERR_ROAD_WORKS_IN_PROGRESS
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIError::ERR_VEHICLE_IN_THE_WAY
 	 * @return Whether the road has been/can be build or not.
 	 */
 	static bool BuildRoadFull(TileIndex start, TileIndex end);
@@ -192,10 +184,10 @@
 	 * @exception AIError::ERR_FLAT_LAND_REQUIRED
 	 * @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION
 	 * @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
-	 * @exception AIRoad::ERR_ROAD_TOO_CLOSE_TO_ANOTHER_STATION
-	 * @exception AIRoad::ERR_ROAD_TOO_MANY_STATIONS
-	 * @exception AIRoad::ERR_ROAD_TOO_MANY_STATIONS_IN_TOWN
+	 * @exception AIError:ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
+	 * @exception AIStation::ERR_STATION_TOO_MANY_STATIONS
+	 * @exception AIStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
 	 * @return Whether the station has been/can be build or not.
 	 */
 	static bool BuildRoadStation(TileIndex tile, TileIndex front, bool truck, bool drive_through);
@@ -210,7 +202,7 @@
 	 *  AIMap::GetTileX(start) == AIMap::GetTileX(end) or
 	 *  AIMap::GetTileY(start) == AIMap::GetTileY(end).
 	 * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIError::ERR_VEHICLE_IN_THE_WAY
 	 * @exception AIRoad::ERR_ROAD_WORKS_IN_PROGRESS
 	 * @return Whether the road has been/can be removed or not.
 	 */
@@ -227,7 +219,7 @@
 	 *  AIMap::GetTileX(start) == AIMap::GetTileX(end) or
 	 *  AIMap::GetTileY(start) == AIMap::GetTileY(end).
 	 * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIError::ERR_VEHICLE_IN_THE_WAY
 	 * @exception AIRoad::ERR_ROAD_WORKS_IN_PROGRESS
 	 * @return Whether the road has been/can be removed or not.
 	 */
@@ -239,7 +231,7 @@
 	 * @pre AIMap::IsValidTile(tile).
 	 * @pre Tile is a road depot.
 	 * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIError::ERR_VEHICLE_IN_THE_WAY
 	 * @return Whether the road depot has been/can be removed or not.
 	 */
 	static bool RemoveRoadDepot(TileIndex tile);
@@ -250,7 +242,7 @@
 	 * @pre AIMap::IsValidTile(tile).
 	 * @pre Tile is a road station.
 	 * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
-	 * @exception AIRoad::ERR_VEHICLE_IN_THE_WAY
+	 * @exception AIError::ERR_VEHICLE_IN_THE_WAY
 	 * @return Whether the station has been/can be removed or not.
 	 */
 	static bool RemoveRoadStation(TileIndex tile);