eclipse下面实现的java扫雷游戏

源代码在线查看: notifingobject.java

软件大小: 254 K
上传用户: makai1630
关键词: eclipse java
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				 * 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;
				}			

相关资源