diff -r 18b4de3c2074 -r 3234cb59de55 src/ai/api/ai_station.hpp --- a/src/ai/api/ai_station.hpp Fri Apr 25 15:34:04 2008 +0000 +++ b/src/ai/api/ai_station.hpp Fri Apr 25 15:51:12 2008 +0000 @@ -122,6 +122,14 @@ * @return The distance between station and tile. */ static int32 GetDistanceSquareToTile(StationID station_id, TileIndex tile); + + /** + * Find out if this station is within the rating influence of a town. + * @param station_id The station to check. + * @param town_id The town to check. + * @return True if the tile is within the rating influence of the town. + */ + static bool IsWithinTownRadius(StationID station_id, TownID town_id); }; DECLARE_ENUM_AS_BIT_SET(AIStation::StationType);