(svn r23416) -Add: [NoAI] API for querying infrastructure costs.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user