home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 64 / CDPRO64.iso / JUEGOS / java / airforcex / airforcex.jar / AFAnimateTimerTask.class (.txt) next >
Encoding:
Java Class File  |  2003-07-29  |  488 b   |  20 lines

  1. import java.util.TimerTask;
  2.  
  3. public class AFAnimateTimerTask extends TimerTask {
  4.    private AFAnimationCanvas canvas;
  5.    int m_gameAction;
  6.    boolean repeatKey = false;
  7.  
  8.    public AFAnimateTimerTask(AFAnimationCanvas var1) {
  9.       this.canvas = var1;
  10.    }
  11.  
  12.    public final void run() {
  13.       this.canvas.repaint();
  14.       if (this.repeatKey) {
  15.          this.canvas.keyPressed(this.m_gameAction);
  16.       }
  17.  
  18.    }
  19. }
  20.