1 package erland.game.tileadventure;
2
3 import erland.util.ParameterSerializable;
4 import erland.util.ParameterValueStorageExInterface;
5 import erland.util.StringUtil;
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 public class MapObjectExtendedLevelInfo implements ParameterSerializable {
27 private Boolean walkable = Boolean.FALSE;
28 private Boolean pushable = Boolean.FALSE;
29
30 public void write(ParameterValueStorageExInterface out) {
31 out.setParameter("walkable",walkable.toString());
32 out.setParameter("pushable",pushable.toString());
33 }
34
35 public void read(ParameterValueStorageExInterface in) {
36 walkable = StringUtil.asBoolean(in.getParameter("walkable"),Boolean.FALSE);
37 pushable = StringUtil.asBoolean(in.getParameter("pushable"),Boolean.FALSE);
38 }
39
40 public void setWalkable(Boolean walkable) {
41 this.walkable = walkable;
42 }
43
44 public void setPushable(Boolean pushable) {
45 this.pushable = pushable;
46 }
47
48 public Boolean getWalkable() {
49 return walkable;
50 }
51
52 public Boolean getPushable() {
53 return pushable;
54 }
55 }