blob: b60d55f755d730b63c9f4bf56df8a082a3b55ef7 (
plain) (
blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
/* */ package NET.worlds.scape;
/* */
/* */ import NET.worlds.network.URL;
/* */ import java.io.IOException;
/* */ import java.util.Enumeration;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class RemotePortal
/* */ extends WObject
/* */ {
/* 45 */ private static Object classCookie = new Object();
/* */
/* */ public void saveState(Saver s) throws IOException
/* */ {
/* 49 */ if (!$assertionsDisabled) { throw new AssertionError();
/* */ }
/* */ }
/* */
/* */
/* */ public void restoreState(Restorer r)
/* */ throws IOException, TooNewException
/* */ {
/* 57 */ Portal p = new Portal();
/* 58 */ r.replace(this, p);
/* */
/* 60 */ int vers = r.restoreVersion(classCookie);
/* */
/* 62 */ WObject dlRepresentation = null;
/* 63 */ WObject initialRepresentation = null;
/* */
/* 65 */ p.superRestoreState(r);
/* 66 */ Point3 p1 = (Point3)r.restore();
/* 67 */ Point3 p2 = (Point3)r.restore();
/* 68 */ p.moveTo(p1);
/* 69 */ p.setFarCorner(p2);
/* */
/* 71 */ Point3 p3 = (Point3)r.restore();
/* 72 */ Point3 p4 = (Point3)r.restore();
/* 73 */ URL wname = URL.restore(r);
/* 74 */ String rname = r.restoreString();
/* 75 */ p.connectTo(wname, rname, p3, p4);
/* */
/* 77 */ switch (vers) {
/* */ case 0:
/* 79 */ r.setOldFlag();
/* */
/* */
/* 82 */ r.restoreBoolean();
/* */
/* 84 */ dlRepresentation = (WObject)r.restoreMaybeNull();
/* 85 */ initialRepresentation = (WObject)r.restoreMaybeNull();
/* */
/* */
/* 88 */ r.restoreMaybeNull();
/* 89 */ break;
/* */
/* */ case 1:
/* 92 */ dlRepresentation = (WObject)r.restoreMaybeNull();
/* 93 */ initialRepresentation = (WObject)r.restoreMaybeNull();
/* 94 */ break;
/* */
/* */ default:
/* 97 */ throw new TooNewException();
/* */ }
/* */
/* 100 */ if ((initialRepresentation instanceof Surface)) {
/* 101 */ Surface s = (Surface)initialRepresentation;
/* 102 */ Material m = s.getMaterial();
/* 103 */ s.setMaterial(null);
/* 104 */ p.setMaterial(m);
/* */ }
/* 106 */ if ((dlRepresentation instanceof Surface)) {
/* 107 */ Surface s = (Surface)dlRepresentation;
/* 108 */ Material m = s.getMaterial();
/* 109 */ s.setMaterial(null);
/* 110 */ p.setMaterial(m);
/* */ }
/* */
/* */
/* 114 */ if (initialRepresentation != null) {
/* 115 */ Enumeration<Object> en = initialRepresentation.getHandlers();
/* 116 */ while (en.hasMoreElements()) {
/* 117 */ SuperRoot h = (SuperRoot)en.nextElement();
/* 118 */ initialRepresentation.removeHandler(h);
/* 119 */ p.addHandler(h);
/* */
/* */
/* 122 */ en = initialRepresentation.getHandlers();
/* */ }
/* */ }
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\RemotePortal.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|