bin/ai/regression/regression.nut
branchnoai
changeset 9810 a84fc1be9e3b
parent 9809 9b21c21052fa
child 9814 be51ea0adc29
equal deleted inserted replaced
9809:9b21c21052fa 9810:a84fc1be9e3b
   353 		print("    IsValidIndustry(): " + AIIndustry.IsValidIndustry(i));
   353 		print("    IsValidIndustry(): " + AIIndustry.IsValidIndustry(i));
   354 		print("    GetName():         " + AIIndustry.GetName(i));
   354 		print("    GetName():         " + AIIndustry.GetName(i));
   355 		print("    GetLocation():     " + AIIndustry.GetLocation(i));
   355 		print("    GetLocation():     " + AIIndustry.GetLocation(i));
   356 		print("    GetProduction():   " + AIIndustry.GetProduction(i, 1));
   356 		print("    GetProduction():   " + AIIndustry.GetProduction(i, 1));
   357 		print("    IsCargoAccepted(): " + AIIndustry.IsCargoAccepted(i, 1));
   357 		print("    IsCargoAccepted(): " + AIIndustry.IsCargoAccepted(i, 1));
       
   358 
       
   359 		local cargo_list = AICargoList();
       
   360 		for (local j = cargo_list.Begin(); cargo_list.HasNext(); j = cargo_list.Next()) {
       
   361 			if (AIIndustry.GetProduction(i, j) > 0) {
       
   362 				print("	   GetLastMonthProduction(): " + AIIndustry.GetLastMonthProduction(i, j));
       
   363 				print("	   GetLastMonthTransported(): " + AIIndustry.GetLastMonthTransported(i, j));
       
   364 			}
       
   365 		}
   358 	}
   366 	}
   359 	print("  Valid Industries:    " + j);
   367 	print("  Valid Industries:    " + j);
   360 	print("  GetIndustryCount():  " + AIIndustry.GetIndustryCount());
   368 	print("  GetIndustryCount():  " + AIIndustry.GetIndustryCount());
   361 }
   369 }
   362 
   370