From 0e5e8fff12a3c91f0198afb25c03eb71b2248005 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sat, 3 Dec 2011 23:40:57 +0000 Subject: (svn r23416) -Add: [NoAI] API for querying infrastructure costs. --- src/script/api/script_rail.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/script/api/script_rail.hpp') diff --git a/src/script/api/script_rail.hpp b/src/script/api/script_rail.hpp index b7d7db923..96d673af6 100644 --- a/src/script/api/script_rail.hpp +++ b/src/script/api/script_rail.hpp @@ -464,6 +464,14 @@ public: * To get km/h multiply this number by 1.00584. */ static int32 GetMaxSpeed(RailType railtype); + + /** + * Get the maintenance cost factor of a railtype. + * @param railtype The railtype to get the maintenance factor of. + * @pre IsRailTypeAvailable(railtype) + * @return Maintenance cost factor of the railtype. + */ + static uint16 GetMaintenanceCostFactor(RailType railtype); }; #endif /* SCRIPT_RAIL_HPP */ -- cgit v1.2.3-54-g00ecf