diff options
Diffstat (limited to 'bin/ai/regression')
-rw-r--r-- | bin/ai/regression/regression.nut | 10 | ||||
-rw-r--r-- | bin/ai/regression/regression.txt | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut index b009ef0de..8af065abf 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -805,13 +805,17 @@ function Regression::Marine() print(" IsCanalTile(): " + AIMarine.IsCanalTile(32127)); print(" GetBankBalance(): " + AICompany.GetBankBalance(AICompany.COMPANY_SELF)); - local list = AIBuoyList(); + local list = AIWaypointList(AIWaypoint.WAYPOINT_BUOY); print(""); - print("--AIBuoyList--"); + print("--AIWaypointList(BUOY)--"); print(" Count(): " + list.Count()); print(" Location ListDump:"); for (local i = list.Begin(); list.HasNext(); i = list.Next()) { - print(" " + i); + print(" " + AIWaypoint.GetLocation(i)); + } + print(" HasWaypointType:"); + for (local i = list.Begin(); list.HasNext(); i = list.Next()) { + print(" " + AIWaypoint.HasWaypointType(i, AIWaypoint.WAYPOINT_RAIL) + " " + AIWaypoint.HasWaypointType(i, AIWaypoint.WAYPOINT_BUOY) + " " + AIWaypoint.HasWaypointType(i, AIWaypoint.WAYPOINT_ANY)); } print(""); diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt index 0adf36e1c..c5b65d863 100644 --- a/bin/ai/regression/regression.txt +++ b/bin/ai/regression/regression.txt @@ -7100,10 +7100,12 @@ IsCanalTile(): true GetBankBalance(): 1999951154 ---AIBuoyList-- +--AIWaypointList(BUOY)-- Count(): 1 Location ListDump: 28481 + HasWaypointType: + false true false RemoveWaterDepot(): true RemoveDock(): true |