diff options
Diffstat (limited to 'src/script/api/script_station.hpp')
-rw-r--r-- | src/script/api/script_station.hpp | 8 |
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. |