From bce1bcb0f27affa6678c3f657c06955afbf4b47b Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 14 Feb 2009 21:15:23 +0000 Subject: (svn r15488) -Change [API CHANGE]: Add support for distant-join stations. --- src/ai/api/ai_road.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ai/api/ai_road.hpp') diff --git a/src/ai/api/ai_road.hpp b/src/ai/api/ai_road.hpp index 875f935ad..4b828dde8 100644 --- a/src/ai/api/ai_road.hpp +++ b/src/ai/api/ai_road.hpp @@ -325,10 +325,11 @@ public: * For drive-through stations either entrance side can be used. * @param truck Whether to build a truck (true) or bus (false) station. * @param drive_through Whether to make the station drive through or not. - * @param join_adjacent When building next to an other station, don't create a new station when this flag is true. + * @param station_id The station to join, AIStation::STATION_NEW or AIStation::STATION_JOIN_ADJACENT. * @pre AIMap::IsValidTile(tile). * @pre AIMap::IsValidTile(front). * @pre 'tile' is not equal to 'front', but in a straight line of it. + * @pre station_id == AIStation::STATION_NEW || station_id == AIStation::STATION_JOIN_ADJACENT || AIStation::IsValidStation(station_id). * @exception AIError::ERR_OWNED_BY_ANOTHER_COMPANY * @exception AIError::ERR_AREA_NOT_CLEAR * @exception AIError::ERR_FLAT_LAND_REQUIRED @@ -340,7 +341,7 @@ public: * @exception AIStation::ERR_STATION_TOO_MANY_STATIONS_IN_TOWN * @return Whether the station has been/can be build or not. */ - static bool BuildRoadStation(TileIndex tile, TileIndex front, bool truck, bool drive_through, bool join_adjacent); + static bool BuildRoadStation(TileIndex tile, TileIndex front, bool truck, bool drive_through, StationID station_id); /** * Removes a road from the center of tile start to the center of tile end. -- cgit v1.2.3-54-g00ecf