PoliceOffice.java 524 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
package firesimulator.world;

/**
 * @author tn
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class PoliceOffice extends Building {


	public PoliceOffice(int id) {
		super(id);
	}
	
	public String getType(){
		return "POLICE_OFFICE";
	}
	

	public boolean isInflameable(){
	    return Building.POLICE_INFALMEABLE;
	}
	
	public int getFieryness(){
	    if(isInflameable())
	        return super.getFieryness();
	    return 0;
	}
}