Add: AI/GS GetMonthlyMaintenanceCost (#6897)

API addition which allows AI/GS scripts to retrieve the monthly maintenance cost of an airport type.
This commit is contained in:
Samu
2018-09-14 13:03:52 +01:00
committed by Niels Martin Hansen
parent 4703cd433d
commit 1e68b9b3e6
6 changed files with 20 additions and 0 deletions

View File

@@ -201,6 +201,14 @@ public:
* @return Maintenance cost factor of the airport type.
*/
static uint16 GetMaintenanceCostFactor(AirportType type);
/**
* Get the monthly maintenance cost of an airport type.
* @param type The airport type to get the monthly maintenance cost of.
* @pre IsAirportInformationAvailable(type)
* @return Monthly maintenance cost of the airport type.
*/
static Money GetMonthlyMaintenanceCost(AirportType type);
};
#endif /* SCRIPT_AIRPORT_HPP */