?? gamedata.java
字號:
/*
* GameData.java
*
* Created on 2006年5月5日, 上午11:16
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
//
package DogPet;
import java.util.Calendar;
public class GameData
{
public GameData()
{
}
public static long cal_total() //??????????????????????????
{
long total = 0L;
total = ((Mood * 103 + Health * 105 + Intelligence * 104 + Weight * 101) * (Years + 1)) / 100;
return total;
}
static String Name = "Dog Pet";
static int Years = 0;
static Calendar Birthday = Calendar.getInstance();
static int Health = 50;
static int Mood = 50;//心情
static int Intelligence = 50;
static int Capacity = 50;
static int Weight = 50;
static long birthday = 0L;
static int start_x = 28;
static int start_y = 24;
static String Ending = "";
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -