tener());
timer.start();
}
//旋转的方法
publicvoidturn(){
inttempturnState=turnState;
turnState=(turnState+1)%4;
if(blow(x,y,blockType,turnState)==1){
}
if(blow(x,y,blockType,turnState)==0){
turnState=tempturnState;
}
repaint();
}
//左移的方法
publicvoidleft(){
if(blow(x-1,y,blockType,turnState)==1){
x=x-1;
}
;
repaint();
}
//右移的方法
publicvoidright(){
if(blow(x+1,y,blockType,turnState)==1){
x=x+1;
}
;
repaint();
}
//下落的方法
publicvoidd