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

This commit is contained in:
yexo
2011-12-08 23:28:43 +00:00
parent 4430cadfa1
commit 15dc9acb01
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.