summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-06-17 13:12:08 +0000
committeryexo <yexo@openttd.org>2009-06-17 13:12:08 +0000
commitd09d3566ddd86a559819354bad805dfc23622db8 (patch)
tree5ba4e0934a063e88cf58f4f2b34bd510aee08849 /bin
parent121a569125bd6cb986c8ca31e68e12685c7a281a (diff)
downloadopenttd-d09d3566ddd86a559819354bad805dfc23622db8.tar.xz
(svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys
Diffstat (limited to 'bin')
-rw-r--r--bin/ai/regression/regression.nut10
-rw-r--r--bin/ai/regression/regression.txt6
2 files changed, 16 insertions, 0 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut
index 7ec415639..1f8316043 100644
--- a/bin/ai/regression/regression.nut
+++ b/bin/ai/regression/regression.nut
@@ -804,6 +804,16 @@ function Regression::Marine()
print(" IsCanalTile(): " + AIMarine.IsCanalTile(32127));
print(" GetBankBalance(): " + AICompany.GetBankBalance(AICompany.COMPANY_SELF));
+ local list = AIBuoyList();
+ print("");
+ print("--AIBuoyList--");
+ print(" Count(): " + list.Count());
+ print(" Location ListDump:");
+ for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
+ print(" " + i);
+ }
+ print("");
+
print(" RemoveWaterDepot(): " + AIMarine.RemoveWaterDepot(28479));
print(" RemoveDock(): " + AIMarine.RemoveDock(29253));
print(" RemoveBuoy(): " + AIMarine.RemoveBuoy(28481));
diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt
index 0e162c0e0..f6edc7ec9 100644
--- a/bin/ai/regression/regression.txt
+++ b/bin/ai/regression/regression.txt
@@ -7088,6 +7088,12 @@
IsLockTile(): true
IsCanalTile(): true
GetBankBalance(): 805063
+
+--AIBuoyList--
+ Count(): 1
+ Location ListDump:
+ 28481
+
RemoveWaterDepot(): true
RemoveDock(): true
RemoveBuoy(): true