/* */ package NET.worlds.scape; /* */ /* */ import java.io.IOException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class Light /* */ extends WObject /* */ { /* */ protected int lightID; /* */ /* */ protected void addRwChildren(WObject parent) /* */ { /* 29 */ super.addRwChildren(parent); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ protected void markVoid() /* */ { /* 44 */ super.markVoid(); /* */ /* 46 */ if (this.lightID != 0) /* 47 */ destroyLight(this.lightID); /* */ } /* */ /* */ protected void noteTransformChange() { /* 51 */ super.noteTransformChange(); /* */ /* 53 */ if (this.lightID != 0) { /* 54 */ setLightTransform(this.lightID, this.clumpID); /* */ } /* */ } /* */ /* */ /* */ private static native void setLightTransform(int paramInt1, int paramInt2); /* */ /* */ /* */ private static native void destroyLight(int paramInt); /* */ /* */ /* */ public Object properties(int index, int offset, int mode, Object value) /* */ throws NoSuchPropertyException /* */ { /* 68 */ Object ret = null; /* 69 */ (index - offset); /* */ /* 71 */ ret = super.properties(index, offset + 0, mode, value); /* */ /* 73 */ return ret; /* */ } /* */ /* 76 */ private static Object classCookie = new Object(); /* */ /* */ public void saveState(Saver s) throws IOException /* */ { /* 80 */ s.saveVersion(0, classCookie); /* 81 */ super.saveState(s); /* */ } /* */ /* */ public void restoreState(Restorer r) throws IOException, TooNewException /* */ { /* 86 */ switch (r.restoreVersion(classCookie)) { /* */ case 0: /* 88 */ super.restoreState(r); /* 89 */ break; /* */ default: /* 91 */ throw new TooNewException(); /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\Light.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */