-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFloorObject.java
More file actions
41 lines (32 loc) · 1.14 KB
/
FloorObject.java
File metadata and controls
41 lines (32 loc) · 1.14 KB
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
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package my.quarker;
import net.slashie.libjcsi.CSIColor;
/**
*
* @author ehoward
*/
public class FloorObject extends TerrainObject{
public static final FloorObject DEFAULT_FLOOR = new FloorObject();
public FloorObject() {
super("floor", '.', true);
}
public FloorObject(String name, char represent, boolean passable){
super(name, represent, passable);
}
public FloorObject(String name, char represent, boolean passable, CSIColor color){
super(name, represent, passable, color);
}
public void deepCopy(FloorObject obj){
deepCopy((TerrainObject)obj);
}
@Override
public String outputObjectToFile() {// this should be overridden to ensure everything is saved correctly
String ret = "";
String eol = System.getProperty("line.separator");
ret = "FloorObject" + eol + myName + eol + String.valueOf(represent) + eol + String.valueOf(passable) + eol + frontColor.getColor() + eol + String.valueOf(visible) + eol + eol;
return ret;
}
}