--- a/src/ai/api/ai_station.hpp Sun Jul 15 12:36:43 2007 +0000
+++ b/src/ai/api/ai_station.hpp Sun Jul 15 12:56:41 2007 +0000
@@ -25,6 +25,14 @@
static bool IsValidStation(StationID station_id);
/**
+ * Get the stationID of a tile, if there is a station.
+ * @param tile the tile to find the stationID of
+ * @return StationID of the station.
+ * @post use IsValidStation to see if the station is valid.
+ */
+ static StationID GetStationID(TileIndex tile);
+
+ /**
* Get the current location of a station.
* @param station_id the station to get the location of.
* @pre IsValidStation(station_id).