(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 d3b7b89493
commit 0e5e8fff12
20 changed files with 362 additions and 0 deletions

View File

@@ -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 */