--- a/src/ai/api/ai_tile.hpp Tue Apr 08 07:19:02 2008 +0000
+++ b/src/ai/api/ai_tile.hpp Tue Apr 08 07:24:23 2008 +0000
@@ -24,13 +24,10 @@
ERR_TILE_BASE = AIError::ERR_CAT_TILE << AIError::ERR_CAT_BIT_SIZE,
/** Tile can't be raised any higher */
- ERR_TILE_TOO_HIGH, //< [STR_1003_ALREADY_AT_SEA_LEVEL]
+ ERR_TILE_TOO_HIGH, // [STR_1003_ALREADY_AT_SEA_LEVEL]
/** Tile can't be lowered any lower */
- ERR_TILE_TOO_LOW, //< [STR_1003_ALREADY_AT_SEA_LEVEL]
-
- /** Tile can't be raised or lowered because it is to close to the map */
- ERR_TILE_TOO_CLOSE_TO_EDGE, //< [STR_0002_TOO_CLOSE_TO_EDGE_OF_MAP]
+ ERR_TILE_TOO_LOW, // [STR_1003_ALREADY_AT_SEA_LEVEL]
};
/**
@@ -161,9 +158,9 @@
* @param tile The tile to raise.
* @param slope Corners to raise (SLOPE_xxx).
* @pre AIMap::IsValidTile(tile).
- * @exception AIERROR::ERR_AREA_NOT_CLEAR
- * @exception AITILE::ERR_TILE_TOO_HIGH
- * @exception AITILE::ERR_TILE_CLOSE_TO_EDGE
+ * @exception AIError::ERR_AREA_NOT_CLEAR
+ * @exception AIError::ERR_TOO_CLOSE_TO_EDGE
+ * @exception AITile::ERR_TILE_TOO_HIGH
* @return 0 means failed, 1 means success.
*/
static bool RaiseTile(TileIndex tile, int32 slope);
@@ -174,9 +171,9 @@
* @param tile The tile to lower.
* @param slope Corners to lower (SLOPE_xxx).
* @pre AIMap::IsValidTile(tile).
- * @exception AIERROR::ERR_AREA_NOT_CLEAR
- * @exception AITILE::ERR_TILE_TOO_LOW
- * @exception AITILE::ERR_TILE_CLOSE_TO_EDGE
+ * @exception AIError::ERR_AREA_NOT_CLEAR
+ * @exception AIError::ERR_TOO_CLOSE_TO_EDGE
+ * @exception AITile::ERR_TILE_TOO_LOW
* @return 0 means failed, 1 means success.
*/
static bool LowerTile(TileIndex tile, int32 slope);
@@ -185,7 +182,7 @@
* Destroy everything on the given tile.
* @param tile The tile to demolish.
* @pre AIMap::IsValidTile(tile).
- * @exception AIERROR::ERR_AREA_NOT_CLEAR
+ * @exception AIError::ERR_AREA_NOT_CLEAR
* @return True if and only if the tile was demolished.
*/
static bool DemolishTile(TileIndex tile);