アットウィキロゴ

fresh

var namex=new Array();
var point=new Array();
var money=new Array();
var cost=new Array();
 
function sample(){
 
for(s=1;s<5;s++){
point[s]=new Array();    
}
 
var sub=new town();
sub.point=point;
sub.faststep();
namex=sub.namex;
point=sub.point;
money=sub.money;
cost=sub.cost;
 
var timer;
var delay = 100;
 
mode=4;
 
 
var loop = function () {
 
mode=mode+1;
 
 
if(mode>4)mode=1;
 
var sub2=new town();
sub2.point=point;
sub2.money=money;
sub2.game(mode);
money=sub2.money;
 
var sub3=new town();
sub3.point=point;
sub3.money=money;
sub3.cost=cost;
sub3.buy(mode);
money=sub3.money;
point=sub3.point;
 
h=0;
if(point[mode][16]>0)h=h+1;
if(point[mode][17]>0)h=h+1;
if(point[mode][18]>0)h=h+1;
if(point[mode][19]>0)h=h+1;
 
 
if(h==4){
var sub5=new town();
sub5.point=point;
sub5.faststep();
point=sub5.point;
money=sub5.money;
}
 
 
paint();
 
 
    clearTimeout(timer);
    timer = setTimeout(loop, delay);
}
 
loop();
 
 
}
 
function paint(){
 
str=money[1]+","+money[2]+","+money[3]+","+money[4]
 
str="<table>";
for(s=1;s<20;s++){
str=str+"<tr>";
str=str+"<td>";
str=str+namex[s];
str=str+"</td>";
for(sx=1;sx<5;sx++){
str=str+"<td>";
str=str+point[sx][s];
str=str+"</td>";
}
str=str+"<tr>";   
}
str=str+"</table>";
 
$("#memo").html(str);
 
}
 
最終更新:2016年11月25日 17:13