summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/Action.java
blob: cd75bac1ea46cf64cddc5c5f6b20d3924e052d9b (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*     */ package NET.worlds.scape;
/*     */ 
/*     */ import java.io.IOException;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public abstract class Action
/*     */   extends SuperRoot
/*     */ {
/*     */   public String rightMenuLabel;
/*  82 */   private static Object classCookie = new Object();
/*     */   
/*     */ 
/*     */   public abstract Persister trigger(Event paramEvent, Persister paramPersister);
/*     */   
/*     */   public void saveState(Saver s)
/*     */     throws IOException
/*     */   {
/*  90 */     s.saveVersion(4, classCookie);
/*  91 */     s.saveString(this.rightMenuLabel);
/*  92 */     super.saveState(s);
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */   public void restoreState(Restorer r)
/*     */     throws IOException, TooNewException
/*     */   {
/* 101 */     switch (r.restoreVersion(classCookie)) {
/*     */     case 1: 
/* 103 */       r.restoreInt();
/* 104 */       setName(r.restoreString());
/*     */     case 0: 
/* 106 */       r.setOldFlag();
/* 107 */       break;
/*     */     case 2: 
/* 109 */       r.setOldFlag();
/* 110 */       super.restoreState(r);
/* 111 */       r.restoreInt();
/* 112 */       break;
/*     */     
/*     */     case 4: 
/* 115 */       this.rightMenuLabel = r.restoreString();
/*     */     case 3: 
/* 117 */       super.restoreState(r);
/* 118 */       break;
/*     */     default: 
/* 120 */       throw new TooNewException();
/*     */     }
/*     */     
/*     */   }
/*     */   
/*     */   public Object properties(int index, int offset, int mode, Object value)
/*     */     throws NoSuchPropertyException
/*     */   {
/* 128 */     Object ret = null;
/* 129 */     switch (index - offset) {
/*     */     case 0: 
/* 131 */       if (mode == 0) {
/* 132 */         ret = BooleanPropertyEditor.make(new Property(this, index, 
/* 133 */           "Trigger Now"), "No", "Yes");
/* 134 */       } else if (mode == 1) {
/* 135 */         ret = new Boolean(false);
/* 136 */       } else if ((mode == 2) && 
/* 137 */         (((Boolean)value).booleanValue())) {
/* 138 */         RunningActionHandler.trigger(this, getWorld(), null);
/*     */       }
/* 140 */       break;
/*     */     
/*     */     case 1: 
/* 143 */       if (mode == 0) {
/* 144 */         ret = StringPropertyEditor.make(new Property(this, index, 
/* 145 */           "Right Menu Label").allowSetNull());
/* 146 */       } else if (mode == 1) {
/* 147 */         ret = this.rightMenuLabel;
/* 148 */       } else if (mode == 2)
/* 149 */         this.rightMenuLabel = ((String)value);
/* 150 */       break;
/*     */     
/*     */     default: 
/* 153 */       ret = super.properties(index, offset + 2, mode, value);
/*     */     }
/* 155 */     return ret;
/*     */   }
/*     */ }


/* Location:              C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\Action.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */