blob: c5a02c834e83da8820a21eb9a75760047ce32a3d (
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
|
/* */ package NET.worlds.scape;
/* */
/* */
/* */
/* */
/* */
/* */ public class SubclumpShape
/* */ extends Shape
/* */ implements ShapeLoaderListener
/* */ {
/* 11 */ private Material pendingMaterial = null;
/* */
/* */ private static final boolean debug = false;
/* */
/* */ public void setMaterial(Material m)
/* */ {
/* 17 */ SuperRoot parentObj = getOwner();
/* */
/* 19 */ if (!(parentObj instanceof Shape))
/* */ {
/* */
/* */
/* */
/* 24 */ super.setMaterial(m);
/* 25 */ return;
/* */ }
/* */
/* 28 */ Shape parent = (Shape)parentObj;
/* */
/* 30 */ if (!parent.isFullyLoaded())
/* */ {
/* */
/* */
/* 34 */ parent.addLoadListener(this);
/* 35 */ this.pendingMaterial = m;
/* */ }
/* */ else {
/* 38 */ super.setMaterial(m);
/* */ }
/* */ }
/* */
/* */ protected synchronized void addRwChildren(WObject container) {
/* 43 */ SuperRoot o = getOwner();
/* */
/* 45 */ if ((o instanceof Shape))
/* */ {
/* 47 */ Shape parent = (Shape)o;
/* 48 */ if (!parent.isFullyLoaded())
/* */ {
/* 50 */ setState(LOADING, null);
/* 51 */ parent.addLoadListener(this);
/* */ }
/* */ }
/* */
/* 55 */ super.addRwChildren(container);
/* */ }
/* */
/* */
/* */
/* */
/* */ public void notifyShapeLoaded(Shape s)
/* */ {
/* 63 */ setState(NORMAL, null);
/* */
/* 65 */ shapeRedraw();
/* */
/* 67 */ if (this.pendingMaterial != null)
/* */ {
/* */
/* */
/* 71 */ super.setMaterial(this.pendingMaterial);
/* */ }
/* 73 */ this.pendingMaterial = null;
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\SubclumpShape.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|