(svn r23416) -Add: [NoAI] API for querying infrastructure costs.

This commit is contained in:
michi_cc
2011-12-03 23:40:57 +00:00
parent fc8633e1ac
commit 351da038eb
20 changed files with 362 additions and 0 deletions

View File

@@ -193,6 +193,14 @@ public:
* @return The TownID of the town closest to the tile.
*/
static TownID GetNearestTown(TileIndex tile, AirportType type);
/**
* Get the maintenance cost factor of an airport type.
* @param type The airport type to get the maintenance factor of.
* @pre IsAirportInformationAvailable(type)
* @return Maintenance cost factor of the airport type.
*/
static uint16 GetMaintenanceCostFactor(AirportType type);
};
#endif /* SCRIPT_AIRPORT_HPP */