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 WorldExtendedLevelInfo implements ParameterSerializable {
27 private int sizeX;
28 private int sizeY;
29 private int sizeZ;
30
31 public void write(ParameterValueStorageExInterface out) {
32 out.setParameter("sizeX",String.valueOf(sizeX));
33 out.setParameter("sizeY",String.valueOf(sizeY));
34 out.setParameter("sizeZ",String.valueOf(sizeZ));
35 }
36
37 public void read(ParameterValueStorageExInterface in) {
38 sizeX = StringUtil.asInteger(in.getParameter("sizeX"),new Integer(0)).intValue();
39 sizeY = StringUtil.asInteger(in.getParameter("sizeY"),new Integer(0)).intValue();
40 sizeZ = StringUtil.asInteger(in.getParameter("sizeZ"),new Integer(0)).intValue();
41 }
42
43 public int getSizeX() {
44 return sizeX;
45 }
46
47 public void setSizeX(int sizeX) {
48 this.sizeX = sizeX;
49 }
50
51 public int getSizeY() {
52 return sizeY;
53 }
54
55 public void setSizeY(int sizeY) {
56 this.sizeY = sizeY;
57 }
58
59 public int getSizeZ() {
60 return sizeZ;
61 }
62
63 public void setSizeZ(int sizeZ) {
64 this.sizeZ = sizeZ;
65 }
66 }