⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 broomevent$task.java

📁 关于j2me的宠物游戏!!!!!!!!!!! 希望打架提出意见
💻 JAVA
字号:
/*
 * BroomEvent$Task.java
 *
 * Created on 2006年5月5日, 上午10:52
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

/*package DogPet;

import java.util.TimerTask;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Image; 

// Referenced classes of package com.webineti:
//            BroomEvent, GameView

class BroomEvent$Task extends TimerTask   //TimerTask类实现了Runable接口,该类的功能是在一定时间内执行一个任务,或相隔一段时间重复执行一个任务
{
    int swapped,repeat;
     GameView view;
     Image play[];

    public final void run()
    {
        if(GameView.events == 9)
        {
            //swapped = swapped + 1;
            swapped+=1;
            if(swapped > play.length - 1)
            {
                swapped = 0;
                repeat++;
                if(repeat > 8)
                {
                    GameView.events = -1;
                    repeat = 0;
                }
            }
            view.repaint();
        }
    }

    BroomEvent$Task()
    {
    }
}*/

⌨️ 快捷键说明

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