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_road.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/script/api/script_road.hpp') diff --git a/src/script/api/script_road.hpp b/src/script/api/script_road.hpp index 1139adafb..fe855c0bb 100644 --- a/src/script/api/script_road.hpp +++ b/src/script/api/script_road.hpp @@ -471,6 +471,14 @@ public: */ static Money GetBuildCost(RoadType roadtype, BuildType build_type); + /** + * Get the maintenance cost factor of a roadtype. + * @param railtype The roadtype to get the maintenance factor of. + * @pre IsRoadTypeAvailable(roadtype) + * @return Maintenance cost factor of the roadtype. + */ + static uint16 GetMaintenanceCostFactor(RoadType roadtype); + private: /** -- cgit v1.2.3-70-g09d2