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

📄 data.java

📁 Java项目开发与毕业设计指导 朱福喜, 黄昊编著 清华大学出版社 项目1
💻 JAVA
字号:
/*
 * Created on 2006-5-3
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package game;

import java.io.Serializable;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Data implements Serializable{

    /**
     * 
     */
    private int[][] a;
    private int fail;
    private int numLose = 0; 
    public Data (int[][] b ,int fail,int numLose) {
        
         a = new int[b.length][b[0].length];
        for(int i = 0;i<b.length;i++) {
            for(int j = 0;j<b[i].length;j++){
                a[i][j] = b[i][j];
            }
        }        
        this.fail = fail;
        this.numLose = numLose;
    }

    /**
     * @return Returns the a.
     */
    public int[][] getA () {
        return a;
    }
    /**
     * @param a The a to set.
     */
    public void setA (int[][] a) {
        this.a = a;
    }

	public int getFail() {
		return fail;
	}

	public void setFail(int fail) {
		this.fail = fail;
	}

	public int getNumLose() {
		return numLose;
	}

	public void setNumLose(int numLose) {
		this.numLose = numLose;
	}
	
	
	
    
}

⌨️ 快捷键说明

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