bin/ai/regression/regression.nut
branchnoai
changeset 9592 c5c09cfde63a
parent 9589 2fbda08db406
child 9605 2c2348827b52
equal deleted inserted replaced
9591:cd88f4b7cba0 9592:c5c09cfde63a
   301 	}
   301 	}
   302 	print("  Valid Signs:       " + j);
   302 	print("  Valid Signs:       " + j);
   303 	print("  GetSignCount():    " + sign.GetSignCount());
   303 	print("  GetSignCount():    " + sign.GetSignCount());
   304 }
   304 }
   305 
   305 
       
   306 function Regression::TileList()
       
   307 {
       
   308 	local list = AITileList();
       
   309 
       
   310 	print("");
       
   311 	print("--TileList--");
       
   312 	print("  Count():             " + list.Count());
       
   313 	list.AddRectangle(33410 - 256 * 2, 256 * 2 + 33410 + 8);
       
   314 	print("  Count():             " + list.Count());
       
   315 	list.Valuate(AITileListBuildable());
       
   316 	list.KeepValue(1);
       
   317 	print("  KeepAboveValue(1):   done");
       
   318 	print("  Count():             " + list.Count());
       
   319 	print("  ListDump:");
       
   320 	for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
       
   321 		print("    " + i + " => " + list.GetValue(i));
       
   322 	}
       
   323 }
       
   324 
   306 function Regression::Town()
   325 function Regression::Town()
   307 {
   326 {
   308 	local town = AITown();
   327 	local town = AITown();
   309 	local j = 0;
   328 	local j = 0;
   310 
   329 
   416 	this.Industry();
   435 	this.Industry();
   417 	this.Map();
   436 	this.Map();
   418 	this.List();
   437 	this.List();
   419 	this.Road();
   438 	this.Road();
   420 	this.Sign();
   439 	this.Sign();
       
   440 	this.TileList();
   421 	this.Town();
   441 	this.Town();
   422 	this.TownList();
   442 	this.TownList();
   423 	this.Vehicle();
   443 	this.Vehicle();
   424 	/* Order has to be after Vehicle */
   444 	/* Order has to be after Vehicle */
   425 	this.Order();
   445 	this.Order();