summaryrefslogtreecommitdiff
path: root/bin/ai/regression
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-04 23:18:19 +0000
committeryexo <yexo@openttd.org>2010-02-04 23:18:19 +0000
commit091d88f5143601a456c3688ff9305f144a5ed6e2 (patch)
tree54471dd005dd9a741cd3692537eda46f80274530 /bin/ai/regression
parentd858264ca64c09802792457888e6f3506fada46d (diff)
downloadopenttd-091d88f5143601a456c3688ff9305f144a5ed6e2.tar.xz
(svn r19014) -Add: [NoAI] AIOrder::[G|S]etStopLocation to get/set the stop location of trains in a rail station
Diffstat (limited to 'bin/ai/regression')
-rw-r--r--bin/ai/regression/regression.nut10
-rw-r--r--bin/ai/regression/regression.txt13
2 files changed, 22 insertions, 1 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut
index 763cc698d..69019f04f 100644
--- a/bin/ai/regression/regression.nut
+++ b/bin/ai/regression/regression.nut
@@ -920,6 +920,15 @@ function Regression::Order()
print(" UnshareOrders(): " + AIOrder.UnshareOrders(13));
print(" AppendOrder(): " + AIOrder.AppendOrder(12, 33421, AIOrder.AIOF_NONE));
+ print(" GetStopLocation(): " + AIOrder.GetStopLocation(13, 0));
+ print(" BuildVehicle(): " + AIVehicle.BuildVehicle(23596, 8));
+ print(" BuildRailStation(): " + AIRail.BuildRailStation(7958, AIRail.RAILTRACK_NE_SW, 1, 1, AIStation.STATION_NEW));
+ print(" AppendOrder(): " + AIOrder.AppendOrder(20, 7958, AIOrder.AIOF_NONE));
+ print(" GetOrderCount(): " + AIOrder.GetOrderCount(20));
+ print(" GetStopLocation(): " + AIOrder.GetStopLocation(20, 0));
+ print(" SetStopLocation(): " + AIOrder.SetStopLocation(20, 0, AIOrder.STOPLOCATION_MIDDLE));
+ print(" GetStopLocation(): " + AIOrder.GetStopLocation(20, 0));
+
local list = AIStationList_Vehicle(12);
print("");
@@ -1024,6 +1033,7 @@ function Regression::Rail()
print(" " + i + " => " + list.GetValue(i));
}
print(" RemoveDepot(): " + AITile.DemolishTile(33411));
+ print(" BuildRailDepot(): " + AIRail.BuildRailDepot(23596, 23597));
print(" Station");
print(" BuildRailStation(): " + AIRail.BuildRailStation(0, AIRail.RAILTRACK_NE_SW, 1, 1, AIStation.STATION_NEW));
diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt
index ae8d8e175..be69ce388 100644
--- a/bin/ai/regression/regression.txt
+++ b/bin/ai/regression/regression.txt
@@ -7179,6 +7179,7 @@
Depot distance from (0,0) ListDump:
33411 => 261
RemoveDepot(): true
+ BuildRailDepot(): true
Station
BuildRailStation(): false
BuildRailStation(): true
@@ -8565,6 +8566,14 @@
ShareOrders(): true
UnshareOrders(): true
AppendOrder(): true
+ GetStopLocation(): -1
+ BuildVehicle(): 20
+ BuildRailStation(): true
+ AppendOrder(): true
+ GetOrderCount(): 1
+ GetStopLocation(): 2
+ SetStopLocation(): true
+ GetStopLocation(): 1
--StationList_Vehicle--
Count(): 2
@@ -8591,9 +8600,11 @@
4 => 0
--VehicleList_Station--
- Count(): 0
+ Count(): 1
Location ListDump:
+ 20 => 23596
foreach():
+ 20 => 23596
First Subsidy Test
--Subsidy (0) --