StationaryObject.java 440 Bytes
Newer Older
Juon Kawakami's avatar
init  
Juon Kawakami committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package firesimulator.world;

public abstract class StationaryObject extends RealObject {

	private int x;
	private int y;

	public StationaryObject(int id) {
		super(id);
	}
	
	public boolean isStationary(){
		return true;
	}

	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public void setX(int x){
		this.x=x;
	}
	
	public void setY(int y){
		this.y=y;
	}
	
	public boolean isRefuge() {
		return false;
	}
}