package net.jeson.game.biz; import net.jeson.game.ui.QQPad; public class Bomb extends Thread { QQPad pad; int m,n; int sleepTime=4000; int power; boolean stopMark; public Bomb(int x,int y,int pp,QQPad p){ m=x; n=y; pad=p; power=pp; } public void run(){ while(!stopMark){ try{ pad.setBomb(m,n); sleep(sleepTime); pad.Bombing(m,n,power); sleep(500); pad.cleanBomb(); sleep(1000); pad.cleanPlayer(); } catch(InterruptedException e){ } stopMark=true; } } }