isOnedir:function(x1,x2,y1,y2,t_arrary){
var self=this;
if(self.imageList[y1*self.line + x2].getComponent('pic').isempty == true && self.isLine(x1,x2,y1,y1,t_arrary)&& self.isLine(x2,x2,y1,y2,t_arrary)){
return true;
}
if(self.imageList[y2*self.line + x1].getComponent('pic').isempty == true && self.isLine(x1,x1,y1,y2,t_arrary)&& self.isLine(x1,x2,y2,y2,t_arrary)){
return true;
}
return false;
},
修改后的代码,感觉还是有点问题