mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r16865) -Doc [NoAI] [FS#3037]: replace old exception names with current ones and fix a type in the noai documentation (patch by Chruker)
This commit is contained in:
parent
3927fd6be7
commit
b0441f6c8c
@ -129,7 +129,7 @@ public:
|
|||||||
* @exception AIError::ERR_FLAT_LAND_REQUIRED
|
* @exception AIError::ERR_FLAT_LAND_REQUIRED
|
||||||
* @exception AIError::ERR_LOCAL_AUTHORITY_REFUSES
|
* @exception AIError::ERR_LOCAL_AUTHORITY_REFUSES
|
||||||
* @exception AIStation::ERR_STATION_TOO_LARGE
|
* @exception AIStation::ERR_STATION_TOO_LARGE
|
||||||
* @exception AIStation::ERR_STATION_TOO_CLOSE_TO_OTHER_STATION
|
* @exception AIStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @return Whether the airport has been/can be build or not.
|
* @return Whether the airport has been/can be build or not.
|
||||||
*/
|
*/
|
||||||
static bool BuildAirport(TileIndex tile, AirportType type, StationID station_id);
|
static bool BuildAirport(TileIndex tile, AirportType type, StationID station_id);
|
||||||
|
@ -328,7 +328,7 @@ public:
|
|||||||
* @pre AIVehicle::IsValidVehicle(vehicle_id).
|
* @pre AIVehicle::IsValidVehicle(vehicle_id).
|
||||||
* @pre AreOrderFlagsValid(destination, order_flags).
|
* @pre AreOrderFlagsValid(destination, order_flags).
|
||||||
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
||||||
* @exception AIOrder::ERR_ORDER_NO_MORE_SPACE
|
* @exception AIOrder::ERR_ORDER_TOO_MANY
|
||||||
* @exception AIOrder::ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION
|
* @exception AIOrder::ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION
|
||||||
* @return True if and only if the order was appended.
|
* @return True if and only if the order was appended.
|
||||||
*/
|
*/
|
||||||
@ -341,7 +341,7 @@ public:
|
|||||||
* @pre AIVehicle::IsValidVehicle(vehicle_id).
|
* @pre AIVehicle::IsValidVehicle(vehicle_id).
|
||||||
* @pre IsValidVehicleOrder(vehicle_id, jump_to).
|
* @pre IsValidVehicleOrder(vehicle_id, jump_to).
|
||||||
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
||||||
* @exception AIOrder::ERR_ORDER_NO_MORE_SPACE
|
* @exception AIOrder::ERR_ORDER_TOO_MANY
|
||||||
* @return True if and only if the order was appended.
|
* @return True if and only if the order was appended.
|
||||||
*/
|
*/
|
||||||
static bool AppendConditionalOrder(VehicleID vehicle_id, OrderPosition jump_to);
|
static bool AppendConditionalOrder(VehicleID vehicle_id, OrderPosition jump_to);
|
||||||
@ -355,7 +355,7 @@ public:
|
|||||||
* @pre IsValidVehicleOrder(vehicle_id, order_position).
|
* @pre IsValidVehicleOrder(vehicle_id, order_position).
|
||||||
* @pre AreOrderFlagsValid(destination, order_flags).
|
* @pre AreOrderFlagsValid(destination, order_flags).
|
||||||
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
||||||
* @exception AIOrder::ERR_ORDER_NO_MORE_SPACE
|
* @exception AIOrder::ERR_ORDER_TOO_MANY
|
||||||
* @exception AIOrder::ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION
|
* @exception AIOrder::ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION
|
||||||
* @return True if and only if the order was inserted.
|
* @return True if and only if the order was inserted.
|
||||||
*/
|
*/
|
||||||
@ -369,7 +369,7 @@ public:
|
|||||||
* @pre IsValidVehicleOrder(vehicle_id, order_position).
|
* @pre IsValidVehicleOrder(vehicle_id, order_position).
|
||||||
* @pre IsValidVehicleOrder(vehicle_id, jump_to).
|
* @pre IsValidVehicleOrder(vehicle_id, jump_to).
|
||||||
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
||||||
* @exception AIOrder::ERR_ORDER_NO_MORE_SPACE
|
* @exception AIOrder::ERR_ORDER_TOO_MANY
|
||||||
* @return True if and only if the order was inserted.
|
* @return True if and only if the order was inserted.
|
||||||
*/
|
*/
|
||||||
static bool InsertConditionalOrder(VehicleID vehicle_id, OrderPosition order_position, OrderPosition jump_to);
|
static bool InsertConditionalOrder(VehicleID vehicle_id, OrderPosition order_position, OrderPosition jump_to);
|
||||||
@ -442,7 +442,7 @@ public:
|
|||||||
* @pre AIVehicle::IsValidVehicle(vehicle_id).
|
* @pre AIVehicle::IsValidVehicle(vehicle_id).
|
||||||
* @pre AIVehicle::IsValidVehicle(main_vehicle_id).
|
* @pre AIVehicle::IsValidVehicle(main_vehicle_id).
|
||||||
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
* @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY
|
||||||
* @exception AIOrder::ERR_ORDER_NO_MORE_SPACE
|
* @exception AIOrder::ERR_ORDER_TOO_MANY
|
||||||
* @return True if and only if the copying succeeded.
|
* @return True if and only if the copying succeeded.
|
||||||
*/
|
*/
|
||||||
static bool CopyOrders(VehicleID vehicle_id, VehicleID main_vehicle_id);
|
static bool CopyOrders(VehicleID vehicle_id, VehicleID main_vehicle_id);
|
||||||
|
@ -349,7 +349,7 @@ public:
|
|||||||
* @exception AIError::ERR_FLAT_LAND_REQUIRED
|
* @exception AIError::ERR_FLAT_LAND_REQUIRED
|
||||||
* @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION
|
* @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION
|
||||||
* @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD
|
* @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD
|
||||||
* @exception AIError:ERR_VEHICLE_IN_THE_WAY
|
* @exception AIError::ERR_VEHICLE_IN_THE_WAY
|
||||||
* @exception AIStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
* @exception AIStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
||||||
@ -372,7 +372,7 @@ public:
|
|||||||
* @exception AIError::ERR_FLAT_LAND_REQUIRED
|
* @exception AIError::ERR_FLAT_LAND_REQUIRED
|
||||||
* @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION
|
* @exception AIRoad::ERR_ROAD_DRIVE_THROUGH_WRONG_DIRECTION
|
||||||
* @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD
|
* @exception AIRoad::ERR_ROAD_CANNOT_BUILD_ON_TOWN_ROAD
|
||||||
* @exception AIError:ERR_VEHICLE_IN_THE_WAY
|
* @exception AIError::ERR_VEHICLE_IN_THE_WAY
|
||||||
* @exception AIStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
* @exception AIStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION
|
||||||
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS
|
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS
|
||||||
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
* @exception AIStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
ERR_VEHICLE_IN_FLIGHT, // [STR_ERROR_AIRCRAFT_IS_IN_FLIGHT]
|
ERR_VEHICLE_IN_FLIGHT, // [STR_ERROR_AIRCRAFT_IS_IN_FLIGHT]
|
||||||
|
|
||||||
/** Vehicle is without power */
|
/** Vehicle is without power */
|
||||||
ERR_VEHCILE_NO_POWER, // [STR_TRAIN_START_NO_CATENARY]
|
ERR_VEHICLE_NO_POWER, // [STR_TRAIN_START_NO_CATENARY]
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user