www.pudn.com > Russian.rar > MoveThread.java


/* 
 * Created on 2004-10-22 
 * 
 * TODO To change the template for this generated file go to 
 * Window - Preferences - Java - Code Style - Code Templates 
 */ 
 
/** 
 * @author Administrator 
 * 
 * TODO To change the template for this generated type comment go to 
 * Window - Preferences - Java - Code Style - Code Templates 
 */ 
public class MoveThread extends Thread  
{ 
    public boolean bStop = false; 
    public GameFrm prFrm = null; 
    public MoveThread(GameFrm f) 
    { 
        prFrm = f; 
    } 
     
    public void run() 
    { 
        while (!bStop) 
        { 
            try  
            { 
                sleep(300); 
            } 
            catch (InterruptedException e){} 
            prFrm.MoveDown(); 
            prFrm.repaint(); 
        } 
    } 
}