summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/SubclumpShape.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/SubclumpShape.java
downloadworlds.jar-main.tar.xz
worlds.jar-main.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/SubclumpShape.java')
-rw-r--r--NET/worlds/scape/SubclumpShape.java81
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