src/ai/api/ai_error.hpp
branchnoai
changeset 10094 e737405b06dd
parent 10093 b3849a19d137
equal deleted inserted replaced
10093:b3849a19d137 10094:e737405b06dd
    38 		ERR_CAT_TUNNEL,   //!< Error messages related to building / removing tunnels.
    38 		ERR_CAT_TUNNEL,   //!< Error messages related to building / removing tunnels.
    39 		ERR_CAT_TILE,     //!< Error messages related to raising / lowering and demolishing tiles.
    39 		ERR_CAT_TILE,     //!< Error messages related to raising / lowering and demolishing tiles.
    40 		ERR_CAT_SIGN,     //!< Error messages related to building / removing signs.
    40 		ERR_CAT_SIGN,     //!< Error messages related to building / removing signs.
    41 		ERR_CAT_ROAD,     //!< Error messages related to building / maintaining roads.
    41 		ERR_CAT_ROAD,     //!< Error messages related to building / maintaining roads.
    42 		ERR_CAT_ORDER,    //!< Error messages related to managing orders.
    42 		ERR_CAT_ORDER,    //!< Error messages related to managing orders.
       
    43 		ERR_CAT_MARINE,   //!< Error messages related to building / removing ships, docks and channels.
    43 
    44 
    44 		/**
    45 		/**
    45 		 * DO NOT USE! The error bitsize determines how many errors can be stored in
    46 		 * DO NOT USE! The error bitsize determines how many errors can be stored in
    46 		 *  a category and what the offsets are of all categories.
    47 		 *  a category and what the offsets are of all categories.
    47 		 */
    48 		 */
    87 
    88 
    88 		/** Land is sloped in the wrong direction for this build action */
    89 		/** Land is sloped in the wrong direction for this build action */
    89 		ERR_LAND_SLOPED_WRONG,                        // [STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION]
    90 		ERR_LAND_SLOPED_WRONG,                        // [STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION]
    90 
    91 
    91 		/** A vehicle is in the way */
    92 		/** A vehicle is in the way */
    92 		ERR_VEHICLE_IN_THE_WAY,                  // [STR_8803_TRAIN_IN_THE_WAY, STR_9000_ROAD_VEHICLE_IN_THE_WAY, STR_980E_SHIP_IN_THE_WAY, STR_A015_AIRCRAFT_IN_THE_WAY]
    93 		ERR_VEHICLE_IN_THE_WAY,                       // [STR_8803_TRAIN_IN_THE_WAY, STR_9000_ROAD_VEHICLE_IN_THE_WAY, STR_980E_SHIP_IN_THE_WAY, STR_A015_AIRCRAFT_IN_THE_WAY]
       
    94 
       
    95 		/** Site is unsuitable */
       
    96 		ERR_SITE_UNSUITABLE,                          // [STR_0239_SITE_UNSUITABLE, STR_304B_SITE_UNSUITABLE]
       
    97 
       
    98 		/** Too close to the edge of the map */
       
    99 		ERR_TOO_CLOSE_TO_EDGE,                        // [STR_0002_TOO_CLOSE_TO_EDGE_OF_MAP]
    93 	};
   100 	};
    94 
   101 
    95 	/**
   102 	/**
    96 	 * Check the membership of the last thrown error.
   103 	 * Check the membership of the last thrown error.
    97 	 * @return The category the error belongs to.
   104 	 * @return The category the error belongs to.