1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 19:49:10 +00:00

(svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys

This commit is contained in:
yexo
2009-06-17 13:12:08 +00:00
parent 121a569125
commit d09d3566dd
9 changed files with 92 additions and 0 deletions

View File

@@ -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));