100 |
100 |
101 print(""); |
101 print(""); |
102 print("--Industry--"); |
102 print("--Industry--"); |
103 print(" GetMaxIndustryID(): " + industry.GetMaxIndustryID()); |
103 print(" GetMaxIndustryID(): " + industry.GetMaxIndustryID()); |
104 print(" GetIndustryCount(): " + industry.GetIndustryCount()); |
104 print(" GetIndustryCount(): " + industry.GetIndustryCount()); |
105 for (local i = -1; i < industry.GetMaxIndustryID(); i++) { |
105 for (local i = -1; i < industry.GetMaxIndustryID() + 1; i++) { |
106 if (industry.IsValidIndustry(i)) j++; |
106 if (industry.IsValidIndustry(i)) j++; |
107 print(" Industry " + i); |
107 print(" Industry " + i); |
108 print(" IsValidIndustry(): " + industry.IsValidIndustry(i)); |
108 print(" IsValidIndustry(): " + industry.IsValidIndustry(i)); |
109 print(" GetName(): " + industry.GetName(i)); |
109 print(" GetName(): " + industry.GetName(i)); |
110 print(" GetLocation(): " + industry.GetLocation(i)); |
110 print(" GetLocation(): " + industry.GetLocation(i)); |
196 print(" BuildRoadStation(bus-drive): " + road.BuildRoadStation(33414, 33413, true, true)); |
196 print(" BuildRoadStation(bus-drive): " + road.BuildRoadStation(33414, 33413, true, true)); |
197 print(" BuildRoadStation(truck-drive): " + road.BuildRoadStation(33415, 33414, false, true)); |
197 print(" BuildRoadStation(truck-drive): " + road.BuildRoadStation(33415, 33414, false, true)); |
198 print(" BuildRoadStation(bus-drive): " + road.BuildRoadStation(33416, 33415, true, true)); |
198 print(" BuildRoadStation(bus-drive): " + road.BuildRoadStation(33416, 33415, true, true)); |
199 } |
199 } |
200 |
200 |
|
201 function Regression::Sign() |
|
202 { |
|
203 local sign = AISign(); |
|
204 local j = 0; |
|
205 |
|
206 print(""); |
|
207 print("--Sign--"); |
|
208 print(" BuildSign(33410, 'Some Sign'): " + sign.BuildSign(33410, "Some Sign")); |
|
209 local sign_id = sign.BuildSign(33409, "Some other Sign"); |
|
210 print(" BuildSign(33409, 'Some other Sign'): " + sign_id); |
|
211 print(" RemoveSign(" + sign_id + "): " + sign.RemoveSign(sign_id)); |
|
212 print(""); |
|
213 print(" GetMaxSignID(): " + sign.GetMaxSignID()); |
|
214 print(" GetSignCount(): " + sign.GetSignCount()); |
|
215 for (local i = -1; i < sign.GetMaxSignID() + 1; i++) { |
|
216 if (sign.IsValidSign(i)) j++; |
|
217 print(" Sign " + i); |
|
218 print(" IsValidSign(): " + sign.IsValidSign(i)); |
|
219 print(" GetText(): " + sign.GetText(i)); |
|
220 print(" GetLocation(): " + sign.GetLocation(i)); |
|
221 } |
|
222 print(" Valid Signs: " + j); |
|
223 print(" GetSignCount(): " + sign.GetSignCount()); |
|
224 } |
|
225 |
201 function Regression::Town() |
226 function Regression::Town() |
202 { |
227 { |
203 local town = AITown(); |
228 local town = AITown(); |
204 local j = 0; |
229 local j = 0; |
205 |
230 |
206 print(""); |
231 print(""); |
207 print("--Town--"); |
232 print("--Town--"); |
208 print(" GetMaxTownID(): " + town.GetMaxTownID()); |
233 print(" GetMaxTownID(): " + town.GetMaxTownID()); |
209 print(" GetTownCount(): " + town.GetTownCount()); |
234 print(" GetTownCount(): " + town.GetTownCount()); |
210 for (local i = -1; i < town.GetMaxTownID(); i++) { |
235 for (local i = -1; i < town.GetMaxTownID() + 1; i++) { |
211 if (town.IsValidTown(i)) j++; |
236 if (town.IsValidTown(i)) j++; |
212 print(" Town " + i); |
237 print(" Town " + i); |
213 print(" IsValidTown(): " + town.IsValidTown(i)); |
238 print(" IsValidTown(): " + town.IsValidTown(i)); |
214 print(" GetName(): " + town.GetName(i)); |
239 print(" GetName(): " + town.GetName(i)); |
215 print(" GetPopulation(): " + town.GetPopulation(i)); |
240 print(" GetPopulation(): " + town.GetPopulation(i)); |
216 print(" GetLocation(): " + town.GetLocation(i)); |
241 print(" GetLocation(): " + town.GetLocation(i)); |
217 } |
242 } |
218 print(" Valid Industries: " + j); |
243 print(" Valid Towns: " + j); |
219 print(" GetTownCount(): " + town.GetTownCount()); |
244 print(" GetTownCount(): " + town.GetTownCount()); |
220 } |
245 } |
221 |
246 |
222 |
247 |
223 function Regression::Start() |
248 function Regression::Start() |