1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 19:54:06 +01:00

(svn r23453) -Add: [NoAI] AIStation.GetStationCoverageRadius(StationID)

This commit is contained in:
yexo
2011-12-08 23:28:43 +00:00
parent ca57514b9f
commit b5d707b7a0
3 changed files with 16 additions and 0 deletions

View File

@@ -95,6 +95,14 @@ public:
*/
static int32 GetCoverageRadius(ScriptStation::StationType station_type);
/**
* Get the coverage radius of this station.
* @param station_id The station to get the coverage radius of.
* @pre IsValidStation(station_id).
* @return The radius in tiles.
*/
static int32 GetStationCoverageRadius(StationID station_id);
/**
* Get the manhattan distance from the tile to the ScriptStation::GetLocation()
* of the station.