?? broomevent$task.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類實現(xiàn)了Runable接口,該類的功能是在一定時間內(nèi)執(zhí)行一個任務(wù),或相隔一段時間重復(fù)執(zhí)行一個任務(wù)
{
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()
{
}
}*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -