src/ai/api/ai_station.hpp
branchnoai
changeset 9814 be51ea0adc29
parent 9696 4384ed3de1f0
child 9829 80fbe02a4184
equal deleted inserted replaced
9813:9646f7e37c31 9814:be51ea0adc29
    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 */