equal
deleted
inserted
replaced
84 * Get the coverage radius of this type of station. |
84 * Get the coverage radius of this type of station. |
85 * @param type the type of station. |
85 * @param type the type of station. |
86 * @return the radius in tiles. |
86 * @return the radius in tiles. |
87 */ |
87 */ |
88 static int32 GetCoverageRadius(AIStation::StationType type); |
88 static int32 GetCoverageRadius(AIStation::StationType type); |
|
89 |
|
90 /** |
|
91 * Get the manhattan distance from the tile to the AIStation::GetLocation() |
|
92 * of the station. |
|
93 * @param station_id The station to get the distance to. |
|
94 * @param tile The tile to get the distance to. |
|
95 * @return The distance between station and tile. |
|
96 */ |
|
97 static int32 GetDistanceManhattanToTile(StationID station_id, TileIndex tile); |
|
98 |
|
99 /** |
|
100 * Get the square distance from the tile to the AIStation::GetLocation() |
|
101 * of the station. |
|
102 * @param station_id The station to get the distance to. |
|
103 * @param tile The tile to get the distance to. |
|
104 * @return The distance between station and tile. |
|
105 */ |
|
106 static int32 GetDistanceSquareToTile(StationID station_id, TileIndex tile); |
89 }; |
107 }; |
90 DECLARE_ENUM_AS_BIT_SET(AIStation::StationType); |
108 DECLARE_ENUM_AS_BIT_SET(AIStation::StationType); |
91 |
109 |
92 #endif /* AI_STATION_HPP */ |
110 #endif /* AI_STATION_HPP */ |