coutdown.java

来自「一个经典的手机游戏原代码」· Java 代码 · 共 34 行

JAVA
34
字号
import java.util.TimerTask;import javax.microedition.lcdui.Canvas;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class coutDown extends TimerTask {  public static final int TASK_SPLASH = 0;  private splashScreen splash;  int taskType;  public coutDown(splashScreen splash) {    this.splash = splash;    this.taskType = TASK_SPLASH;  }  public void run() {    /**@todo Implement this java.lang.Runnable abstract method*/    switch(taskType) {      case TASK_SPLASH:        splashScreen.access(this.splash);        break;    }  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?