blob: 53a8b154d51044274100be614e0b68914cf3b48c (
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
/* */ package NET.worlds.scape;
/* */
/* */ import NET.worlds.network.URL;
/* */ import java.util.Enumeration;
/* */ import java.util.Vector;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class DroneLoader
/* */ {
/* */ static final boolean debug = false;
/* */
/* */ public synchronized void load(Vector<PendingDrone> droneList)
/* */ {
/* */ try
/* */ {
/* 59 */ if (droneList.size() > 0)
/* */ {
/* */
/* 62 */ Vector<PendingDrone> listCopy = (Vector)droneList.clone();
/* 63 */ Enumeration<PendingDrone> enums = listCopy.elements();
/* */
/* 65 */ while (enums.hasMoreElements())
/* */ {
/* 67 */ PendingDrone pd = (PendingDrone)enums.nextElement();
/* 68 */ if (pd.getDrone().discarded)
/* */ {
/* */
/* */
/* 72 */ droneList.removeElement(pd);
/* */ }
/* */ else
/* */ {
/* 76 */ loadDrone(pd);
/* 77 */ droneList.removeElement(pd);
/* */ }
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* 85 */ wait();
/* */ }
/* */ catch (InterruptedException localInterruptedException) {}
/* */ }
/* */
/* */ public synchronized void wakeUp()
/* */ {
/* 92 */ notify();
/* */ }
/* */
/* */ private static void loadDrone(PendingDrone pd)
/* */ {
/* 97 */ if (!pd.getLoaded())
/* */ {
/* */
/* */
/* 101 */ Enumeration<?> e = PosableShape.getComponentAvatars(
/* 102 */ pd.getUrl());
/* 103 */ if (e != null)
/* */ {
/* 105 */ while (e.hasMoreElements())
/* */ {
/* 107 */ String avURL = (String)e.nextElement();
/* */
/* 109 */ pd.download(URL.make(avURL));
/* */ }
/* */ }
/* */ PosableShape ps;
/* */ PosableShape ps;
/* 114 */ if (VehicleShape.isVehicle(pd.getUrl())) {
/* 115 */ ps = new VehicleShape();
/* */ } else {
/* 117 */ ps = new PosableShape();
/* */ }
/* 119 */ boolean prog = ProgressiveAdder.get().enabled();
/* */
/* 121 */ if (prog)
/* */ {
/* 123 */ ProgressiveAdder.get().scheduleForAdd(pd.getDrone(),
/* 124 */ ps);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* 132 */ ps.setURL(pd.getUrl());
/* */
/* 134 */ ps.setVisible(true);
/* 135 */ ps.setBumpable(false);
/* 136 */ if (!pd.getDrone().isPilotDrone(pd.getUrl())) {
/* 137 */ ps.enableLOD(true);
/* */ }
/* */
/* 140 */ if (!prog)
/* */ {
/* 142 */ pd.getDrone().SetPendingShape(ps);
/* */ }
/* */
/* */
/* 146 */ pd.setLoaded();
/* */ }
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\DroneLoader.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|