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

📄 scorerecord.java

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

package DogPet;


import java.util.Calendar;

// Referenced classes of package com.webineti:
//            GameData

public class ScoreRecord       //数据记录,记录当前变化后的数据
{
    private String userName;
    private long score;
    private int years;
    private Calendar birthday;
    private int health;
    private int mood;
    private int intelligence;
    private int capacity;
    private int weight;
    
    public int getMood()
    {
        return mood;
    }

    public int getCapacity()
    {
        return capacity;
    }

    public ScoreRecord(String userName, long score)
    {
        this.userName = userName;
        this.score = score;
    }

    public ScoreRecord()
    {
        userName = GameData.Name;
        years = GameData.Years;
        birthday = GameData.Birthday;
        health = GameData.Health;
        mood = GameData.Mood;
        intelligence = GameData.Intelligence;
        capacity = GameData.Capacity;
        weight = GameData.Weight;
    }

    public long getScore()
    {
        return score;
    }

    public int getIntelligence()
    {
        return intelligence;
    }

    public int getWeight()
    {
        return weight;
    }

    public Calendar getBirthday()
    {
        return birthday;
    }

    public int getYears()
    {
        return years;
    }

    public int getHealth()
    {
        return health;
    }

    public String getUserName()
    {
        return userName;
    }
}

⌨️ 快捷键说明

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