/* */ 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 */