-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTerrainObject.java
46 lines (36 loc) · 1019 Bytes
/
TerrainObject.java
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
36
37
38
39
40
41
42
43
44
45
46
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package my.quarker;
import net.slashie.libjcsi.CSIColor;
/**
*
* @author Eben
*/
public class TerrainObject extends BaseObject {
public static final TerrainObject DEFAULT = new TerrainObject();
boolean everSeen = false;
public TerrainObject() {
super("terrain", '~', true);
}
public TerrainObject(String name, char represent, boolean passable) {
super(name, represent, passable);
}
public TerrainObject(String name, char represent, boolean passable, CSIColor color) {
super(name, represent, passable, color);
}
public void deepCopy(TerrainObject obj){
deepCopy((BaseObject)obj);
everSeen = obj.everSeen;
}
public boolean isEverSeen() {
return everSeen;
}
public void setEverSeen() {
setEverSeen(true);
}
public void setEverSeen(boolean everSeen) {
this.everSeen = everSeen;
}
}