首页>代码>java Swing开发俄罗斯方块游戏源码>/Chicktris/src/c20110812/model/Board.java
package c20110812.model;


public class Board {
	
	private int weidth;
	private int heigth;
	private MyModel model;
	private MyModel nextModel;
	private int[][] board;
	
	public Board() {
		this(25,20,new MyModel(),new MyModel());
	}
	public Board(int heigth,int weidth,MyModel model,MyModel nextModel) {
		this.weidth = weidth;
		this.heigth = heigth;
		this.model = model;
		this.nextModel = nextModel;
		board = new int[this.heigth][this.weidth];
	}
	
	
	public int getWeidth() {
		return weidth;
	}
	public void setWeidth(int weidth) {
		this.weidth = weidth;
	}
	public int getHeigth() {
		return heigth;
	}
	public void setHeigth(int heigth) {
		this.heigth = heigth;
	}
	
	public MyModel getModel() {
		return model;
	}
	public void setModel(MyModel model) {
		this.model = model;
	}
	public MyModel getNextModel() {
		return nextModel;
	}
	public void setNextModel(MyModel nextModel) {
		this.nextModel = nextModel;
	}
	public int[][] getBoard() {
		return board;
	}
	public void setBoard(int[][] board) {
		this.board = board;
	}
	
	
}
最近下载更多
cy1234567890  LV2 2024年10月31日
ClydeSon  LV5 2023年12月27日
微信网友_6699076084797440  LV7 2023年10月30日
tx1121  LV14 2023年4月9日
liangge2115  LV27 2022年12月24日
smyinger  LV1 2022年7月12日
wddd1121  LV3 2022年4月8日
闫小玥  LV8 2021年12月22日
396261  LV1 2021年12月7日
luoshun  LV3 2021年11月23日
最近浏览更多
随便取个名字_哈哈  LV27 6月23日
saikiTEST 2024年12月12日
暂无贡献等级
hoictas  LV2 2024年11月26日
cy1234567890  LV2 2024年10月31日
juiceoa  LV2 2024年6月14日
cmossomc  LV1 2024年5月29日
ClydeSon  LV5 2023年12月27日
1112WHQ  LV7 2023年11月3日
微信网友_6699076084797440  LV7 2023年10月30日
wangjialiang1  LV17 2023年8月20日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友