summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-09-20 18:38:43 +0000
committeryexo <yexo@openttd.org>2009-09-20 18:38:43 +0000
commit12ef0046dde205e0e111ed7e6d830ea4f93c45c9 (patch)
tree725c12c7662b29bea2b46b1ed10469a1fa44947c /bin
parent64ed7cc8de1dd551e9222119ec75465371494f3b (diff)
downloadopenttd-12ef0046dde205e0e111ed7e6d830ea4f93c45c9.tar.xz
(svn r17591) -Add [NoAI] [FS#3212]: AIAirport::IsAirportInformationAvailable. Also update several preconditions so it's now possible to get information on airports types that can no longer be build (small airport after 1960)
Diffstat (limited to 'bin')
-rw-r--r--bin/ai/regression/regression.nut9
-rw-r--r--bin/ai/regression/regression.txt99
2 files changed, 60 insertions, 48 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut
index 790cfbe33..230ed2634 100644
--- a/bin/ai/regression/regression.nut
+++ b/bin/ai/regression/regression.nut
@@ -213,10 +213,11 @@ function Regression::Airport()
print(" GetAirportType(): " + AIAirport.GetAirportType(32116));
for (local i = -1; i < 10; i++) {
- print(" IsValidAirportType(" + i + "): " + AIAirport.IsValidAirportType(i));
- print(" GetAirportWidth(" + i + "): " + AIAirport.GetAirportWidth(i));
- print(" GetAirportHeight(" + i + "): " + AIAirport.GetAirportHeight(i));
- print(" GetAirportCoverageRadius(" + i + "): " + AIAirport.GetAirportCoverageRadius(i));
+ print(" IsAirportInformationAvailable(" + i + "): " + AIAirport.IsAirportInformationAvailable(i));
+ print(" IsValidAirportType(" + i + "): " + AIAirport.IsValidAirportType(i));
+ print(" GetAirportWidth(" + i + "): " + AIAirport.GetAirportWidth(i));
+ print(" GetAirportHeight(" + i + "): " + AIAirport.GetAirportHeight(i));
+ print(" GetAirportCoverageRadius(" + i + "): " + AIAirport.GetAirportCoverageRadius(i));
}
print(" GetBankBalance(): " + AICompany.GetBankBalance(AICompany.COMPANY_SELF));
diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt
index 67035255a..3039b9410 100644
--- a/bin/ai/regression/regression.txt
+++ b/bin/ai/regression/regression.txt
@@ -626,50 +626,61 @@
IsAirportTile(): false
GetHangarOfAirport(): -1
GetAirportType(): 255
- IsValidAirportType(-1): false
- GetAirportWidth(-1): -1
- GetAirportHeight(-1): -1
- GetAirportCoverageRadius(-1): -1
- IsValidAirportType(0): true
- GetAirportWidth(0): 4
- GetAirportHeight(0): 3
- GetAirportCoverageRadius(0): 4
- IsValidAirportType(1): false
- GetAirportWidth(1): -1
- GetAirportHeight(1): -1
- GetAirportCoverageRadius(1): -1
- IsValidAirportType(2): false
- GetAirportWidth(2): -1
- GetAirportHeight(2): -1
- GetAirportCoverageRadius(2): -1
- IsValidAirportType(3): false
- GetAirportWidth(3): -1
- GetAirportHeight(3): -1
- GetAirportCoverageRadius(3): -1
- IsValidAirportType(4): false
- GetAirportWidth(4): -1
- GetAirportHeight(4): -1
- GetAirportCoverageRadius(4): -1
- IsValidAirportType(5): false
- GetAirportWidth(5): -1
- GetAirportHeight(5): -1
- GetAirportCoverageRadius(5): -1
- IsValidAirportType(6): false
- GetAirportWidth(6): -1
- GetAirportHeight(6): -1
- GetAirportCoverageRadius(6): -1
- IsValidAirportType(7): false
- GetAirportWidth(7): -1
- GetAirportHeight(7): -1
- GetAirportCoverageRadius(7): -1
- IsValidAirportType(8): false
- GetAirportWidth(8): -1
- GetAirportHeight(8): -1
- GetAirportCoverageRadius(8): -1
- IsValidAirportType(9): false
- GetAirportWidth(9): -1
- GetAirportHeight(9): -1
- GetAirportCoverageRadius(9): -1
+ IsAirportInformationAvailable(-1): false
+ IsValidAirportType(-1): false
+ GetAirportWidth(-1): -1
+ GetAirportHeight(-1): -1
+ GetAirportCoverageRadius(-1): -1
+ IsAirportInformationAvailable(0): true
+ IsValidAirportType(0): true
+ GetAirportWidth(0): 4
+ GetAirportHeight(0): 3
+ GetAirportCoverageRadius(0): 4
+ IsAirportInformationAvailable(1): true
+ IsValidAirportType(1): false
+ GetAirportWidth(1): 6
+ GetAirportHeight(1): 6
+ GetAirportCoverageRadius(1): 5
+ IsAirportInformationAvailable(2): true
+ IsValidAirportType(2): false
+ GetAirportWidth(2): 1
+ GetAirportHeight(2): 1
+ GetAirportCoverageRadius(2): 4
+ IsAirportInformationAvailable(3): true
+ IsValidAirportType(3): false
+ GetAirportWidth(3): 6
+ GetAirportHeight(3): 6
+ GetAirportCoverageRadius(3): 6
+ IsAirportInformationAvailable(4): true
+ IsValidAirportType(4): false
+ GetAirportWidth(4): 7
+ GetAirportHeight(4): 7
+ GetAirportCoverageRadius(4): 8
+ IsAirportInformationAvailable(5): true
+ IsValidAirportType(5): false
+ GetAirportWidth(5): 5
+ GetAirportHeight(5): 4
+ GetAirportCoverageRadius(5): 4
+ IsAirportInformationAvailable(6): true
+ IsValidAirportType(6): false
+ GetAirportWidth(6): 2
+ GetAirportHeight(6): 2
+ GetAirportCoverageRadius(6): 4
+ IsAirportInformationAvailable(7): true
+ IsValidAirportType(7): false
+ GetAirportWidth(7): 9
+ GetAirportHeight(7): 11
+ GetAirportCoverageRadius(7): 10
+ IsAirportInformationAvailable(8): true
+ IsValidAirportType(8): false
+ GetAirportWidth(8): 4
+ GetAirportHeight(8): 2
+ GetAirportCoverageRadius(8): 4
+ IsAirportInformationAvailable(9): false
+ IsValidAirportType(9): false
+ GetAirportWidth(9): -1
+ GetAirportHeight(9): -1
+ GetAirportCoverageRadius(9): -1
GetBankBalance(): 1999999790
GetPrice(): 5400
BuildAirport(): true