src/ai/api/ai_station.hpp
branchnoai
changeset 9648 760b7b504e37
parent 9638 f6d169a5a45a
child 9666 5765eb70736d
--- a/src/ai/api/ai_station.hpp	Fri Jul 13 11:04:00 2007 +0000
+++ b/src/ai/api/ai_station.hpp	Fri Jul 13 13:49:39 2007 +0000
@@ -41,6 +41,16 @@
 	 * @return the amount of units waiting at the station.
 	 */
 	static int32 GetCargoWaiting(StationID station_id, CargoID cargo_id);
+
+	/**
+	 * See how high the rating is of a cargo on a station.
+	 * @param station_id the station to get the cargo-rating of.
+	 * @param cargo_id the cargo to get the cargo-rating of.
+	 * @pre IsValidStation(station_id).
+	 * @pre IsValidCargo(cargo_id).
+	 * @return the rating in percent of the cargo on the station.
+	 */
+	static int32 GetCargoRating(StationID station_id, CargoID cargo_id);
 };
 
 #endif /* AI_STATION_HPP */