?? drinkevent$task.java
字號:
/*
* DrinkEvent$Task.java
*
* Created on 2006年5月5日, 上午10:56
*
* 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:
// DrinkEvent, GameView
class DrinkEvent$Task extends TimerTask
{
int swapped,repeat;
Image[] drink;
GameView view;
public final void run()
{
if(GameView.events == 6)
{
swapped = swapped+1;
if(swapped > drink.length - 1)
{
swapped = 0;
repeat++;
if(repeat > 2)
{
GameView.events = -1;
repeat = 0;
}
}
view.repaint();
}
}
DrinkEvent$Task()
{
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -