src/ai/api/ai_error.hpp
branchnoai
changeset 9867 b7d9ffe24f81
parent 9866 efc38e1f559a
child 9868 3998f2e73dda
equal deleted inserted replaced
9866:efc38e1f559a 9867:b7d9ffe24f81
    21 	enum ErrorCategories {
    21 	enum ErrorCategories {
    22 		ERR_CAT_NONE = 0, //!< Error messages not related to any category.
    22 		ERR_CAT_NONE = 0, //!< Error messages not related to any category.
    23 		ERR_CAT_GENERAL,  //!< Error messages related to general things.
    23 		ERR_CAT_GENERAL,  //!< Error messages related to general things.
    24 		ERR_CAT_VEHICLE,  //!< Error messages related to building / maintaining vehicles.
    24 		ERR_CAT_VEHICLE,  //!< Error messages related to building / maintaining vehicles.
    25 		ERR_CAT_STATION,  //!< Error messages related to building / maintaining stations.
    25 		ERR_CAT_STATION,  //!< Error messages related to building / maintaining stations.
       
    26 		ERR_CAT_BRIDGE,   //!< Error messages related to building / removing bridges.
    26 
    27 
    27 		/**
    28 		/**
    28 		 * DO NOT USE! The error bitsize determines how many errors can be stored in
    29 		 * DO NOT USE! The error bitsize determines how many errors can be stored in
    29 		 *  a category and what the offsets are of all categories.
    30 		 *  a category and what the offsets are of all categories.
    30 		 */
    31 		 */
    50 
    51 
    51 		/** Local authority won't allow the previous action */
    52 		/** Local authority won't allow the previous action */
    52 		ERR_LOCAL_AUTHORITY_REFUSES,                  // [STR_2009_LOCAL_AUTHORITY_REFUSES]
    53 		ERR_LOCAL_AUTHORITY_REFUSES,                  // [STR_2009_LOCAL_AUTHORITY_REFUSES]
    53 
    54 
    54 		/** The piece of infrastructure you tried to build is already in place */
    55 		/** The piece of infrastructure you tried to build is already in place */
    55 		ERR_ALREADY_BUILT,                            // [STR_1007_ALREADY_BUILT]
    56 		ERR_ALREADY_BUILT,                            // [STR_1007_ALREADY_BUILT, STR_5007_MUST_DEMOLISH_BRIDGE_FIRST]
    56 
    57 
    57 		/** Area isn't clear, try to demolish the building on it */
    58 		/** Area isn't clear, try to demolish the building on it */
    58 		ERR_AREA_NOT_CLEAR,                           // [STR_2004_BUILDING_MUST_BE_DEMOLISHED, STR_5007_MUST_DEMOLISH_BRIDGE_FIRST, STR_300B_MUST_DEMOLISH_RAILROAD, STR_300E_MUST_DEMOLISH_AIRPORT_FIRST, STR_MUST_DEMOLISH_CARGO_TRAM_STATION, STR_3047_MUST_DEMOLISH_TRUCK_STATION, STR_MUST_DEMOLISH_PASSENGER_TRAM_STATION, STR_3046_MUST_DEMOLISH_BUS_STATION, STR_306A_BUOY_IN_THE_WAY, STR_304D_MUST_DEMOLISH_DOCK_FIRST, STR_4800_IN_THE_WAY, STR_5804_COMPANY_HEADQUARTERS_IN, STR_5800_OBJECT_IN_THE_WAY, STR_1801_MUST_REMOVE_ROAD_FIRST, STR_1008_MUST_REMOVE_RAILROAD_TRACK, STR_5007_MUST_DEMOLISH_BRIDGE_FIRST, STR_5006_MUST_DEMOLISH_TUNNEL_FIRST]
    59 		ERR_AREA_NOT_CLEAR,                           // [STR_2004_BUILDING_MUST_BE_DEMOLISHED, STR_5007_MUST_DEMOLISH_BRIDGE_FIRST, STR_300B_MUST_DEMOLISH_RAILROAD, STR_300E_MUST_DEMOLISH_AIRPORT_FIRST, STR_MUST_DEMOLISH_CARGO_TRAM_STATION, STR_3047_MUST_DEMOLISH_TRUCK_STATION, STR_MUST_DEMOLISH_PASSENGER_TRAM_STATION, STR_3046_MUST_DEMOLISH_BUS_STATION, STR_306A_BUOY_IN_THE_WAY, STR_304D_MUST_DEMOLISH_DOCK_FIRST, STR_4800_IN_THE_WAY, STR_5804_COMPANY_HEADQUARTERS_IN, STR_5800_OBJECT_IN_THE_WAY, STR_1801_MUST_REMOVE_ROAD_FIRST, STR_1008_MUST_REMOVE_RAILROAD_TRACK, STR_5007_MUST_DEMOLISH_BRIDGE_FIRST, STR_5006_MUST_DEMOLISH_TUNNEL_FIRST]
    59 
    60 
    60 		/** Area is owned by another company */
    61 		/** Area is owned by another company */