?? gameview$task.java
字號:
/*
* GameView$Task.java
*
* Created on 2006年5月5日, 上午11:24
*
* 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;
// Referenced classes of package com.webineti:
// GameView, Game_control, GameData, MyRandom
class GameView$Task extends TimerTask
{
Game_control game_control;
public final void run()
{
GameData.Capacity--;
GameData.Health--;
GameData.Intelligence--;
GameData.Mood--;
GameData.Weight--;
int d = MyRandom.randomize(100);
if(d == 50)
{
if(GameData.Capacity > 60)
GameData.Capacity = 60;
if(GameData.Health > 40)
GameData.Health = 40;
if(GameData.Mood > 60)
GameData.Mood = 60;
GameData.Intelligence -= 10;
if(GameData.Intelligence <= 0)
GameData.Intelligence = 0;
if(GameData.Weight <= 10)
GameData.Weight = 10;
}
//repaint();
}
GameView$Task()
{
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -