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