diff options
author | michi_cc <michi_cc@openttd.org> | 2011-12-03 23:40:57 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-12-03 23:40:57 +0000 |
commit | 0e5e8fff12a3c91f0198afb25c03eb71b2248005 (patch) | |
tree | 235af65c5215b3417adad3be39b39ad8e85208b0 /src/script/api/script_airport.hpp | |
parent | d3b7b89493e025654d218fb77da095649b4f6ba2 (diff) | |
download | openttd-0e5e8fff12a3c91f0198afb25c03eb71b2248005.tar.xz |
(svn r23416) -Add: [NoAI] API for querying infrastructure costs.
Diffstat (limited to 'src/script/api/script_airport.hpp')
-rw-r--r-- | src/script/api/script_airport.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/script/api/script_airport.hpp b/src/script/api/script_airport.hpp index d382e643b..6dc2fca50 100644 --- a/src/script/api/script_airport.hpp +++ b/src/script/api/script_airport.hpp @@ -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 */ |