summaryrefslogtreecommitdiff
path: root/src/script/api/script_airport.hpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-12-03 23:40:57 +0000
committermichi_cc <michi_cc@openttd.org>2011-12-03 23:40:57 +0000
commit0e5e8fff12a3c91f0198afb25c03eb71b2248005 (patch)
tree235af65c5215b3417adad3be39b39ad8e85208b0 /src/script/api/script_airport.hpp
parentd3b7b89493e025654d218fb77da095649b4f6ba2 (diff)
downloadopenttd-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.hpp8
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 */