diff options
Diffstat (limited to 'NET/worlds/scape/SubclumpShape.java')
| -rw-r--r-- | NET/worlds/scape/SubclumpShape.java | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/NET/worlds/scape/SubclumpShape.java b/NET/worlds/scape/SubclumpShape.java new file mode 100644 index 0000000..c5a02c8 --- /dev/null +++ b/NET/worlds/scape/SubclumpShape.java @@ -0,0 +1,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 + */
\ No newline at end of file |