notifingobject.java

来自「扫雷完整的程序」· Java 代码 · 共 55 行

JAVA
55
字号
/*
 * Created on Apr 29, 2005
 *
 * TODO this class is created as parameter, when data of model are changed,
 * Observable object will notify oberver and transfer object of this class to
 * observer as parameter
 */
package model;

/**
 * @author mqqqvpppm
 * 
 * TODO this class is created as parameter, when data of model are changed,
 * Observable object will notify oberver and transfer object of this class to
 * observer as parameter
 */
public class NotifingObject {

	public NotifingObject() {
		super();
		//location = null;
		type = NULL;
	}

	//public void setLocation(Location location){
	//	this.location = location;
	//}

	public void setType(int type) {
		this.type = type;
	}

	//public Location getLocation(){
	//	return location;
	//}

	public int getType() {
		return type;
	}

	
	private int type;

	public static final int NULL = 0;

	public static final int TYPE_CELLCHANGED = 1;

	public static final int TYPE_WIN = 2;

	public static final int TYPE_GAMEOVER = 3;

	public static final int TYPE_RESTART = 4;
	
	public static final int TYPE_TIME = 5;
}

⌨️ 快捷键说明

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