summaryrefslogtreecommitdiff
path: root/src/script/api/script_station.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-12-08 23:28:43 +0000
committeryexo <yexo@openttd.org>2011-12-08 23:28:43 +0000
commitb5d707b7a0be1e3582932dde20d56ecb76e84bc5 (patch)
treeac539f6a0e27c90faf9843ce3572c0457f2180d7 /src/script/api/script_station.hpp
parentca57514b9fec50024e684e52359576c1e7c70a33 (diff)
downloadopenttd-b5d707b7a0be1e3582932dde20d56ecb76e84bc5.tar.xz
(svn r23453) -Add: [NoAI] AIStation.GetStationCoverageRadius(StationID)
Diffstat (limited to 'src/script/api/script_station.hpp')
-rw-r--r--src/script/api/script_station.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/script_station.hpp b/src/script/api/script_station.hpp
index 1c0dcd975..0f7e1dd0a 100644
--- a/src/script/api/script_station.hpp
+++ b/src/script/api/script_station.hpp
@@ -96,6 +96,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.
* @param station_id The station to get the distance to.