diff options
author | yexo <yexo@openttd.org> | 2009-05-07 21:30:18 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-05-07 21:30:18 +0000 |
commit | 9b4a32deb41a33ea1a83ee1f14256e087460e1e5 (patch) | |
tree | 0a9096550f43de69ac7d3edb71b18c56ab47a382 /src/ai/api/ai_airport.hpp | |
parent | e92efe028cc6fec6242dfa9ca2a24df150948e51 (diff) | |
download | openttd-9b4a32deb41a33ea1a83ee1f14256e087460e1e5.tar.xz |
(svn r16252) -Add [NoAI]: AIAirport::GetPrice, returning the building cost of an airport
Diffstat (limited to 'src/ai/api/ai_airport.hpp')
-rw-r--r-- | src/ai/api/ai_airport.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/api/ai_airport.hpp b/src/ai/api/ai_airport.hpp index 245661364..e4541edf6 100644 --- a/src/ai/api/ai_airport.hpp +++ b/src/ai/api/ai_airport.hpp @@ -54,6 +54,13 @@ public: static bool IsValidAirportType(AirportType type); /** + * Get the cost to build this AirportType. + * @param type The AirportType to check. + * @return The cost of building this AirportType. + */ + static Money GetPrice(AirportType type); + + /** * Checks whether the given tile is actually a tile with a hangar. * @param tile The tile to check. * @pre AIMap::IsValidTile(tile). |