summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/Light.java
blob: 27148d778543f5a6d03d0e5b0baae8fbcb7e3524 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*    */ 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
 */