src/ai/api/ai_station.hpp
branchnoai
changeset 10360 3234cb59de55
parent 10339 ce6cd68d9eb8
child 10361 4cdffd48480f
equal deleted inserted replaced
10359:18b4de3c2074 10360:3234cb59de55
   120 	 * @param station_id The station to get the distance to.
   120 	 * @param station_id The station to get the distance to.
   121 	 * @param tile The tile to get the distance to.
   121 	 * @param tile The tile to get the distance to.
   122 	 * @return The distance between station and tile.
   122 	 * @return The distance between station and tile.
   123 	 */
   123 	 */
   124 	static int32 GetDistanceSquareToTile(StationID station_id, TileIndex tile);
   124 	static int32 GetDistanceSquareToTile(StationID station_id, TileIndex tile);
       
   125 
       
   126 	/**
       
   127 	 * Find out if this station is within the rating influence of a town.
       
   128 	 * @param station_id The station to check.
       
   129 	 * @param town_id The town to check.
       
   130 	 * @return True if the tile is within the rating influence of the town.
       
   131 	 */
       
   132 	static bool IsWithinTownRadius(StationID station_id, TownID town_id);
   125 };
   133 };
   126 
   134 
   127 DECLARE_ENUM_AS_BIT_SET(AIStation::StationType);
   135 DECLARE_ENUM_AS_BIT_SET(AIStation::StationType);
   128 
   136 
   129 #endif /* AI_STATION_HPP */
   137 #endif /* AI_STATION_HPP */