-
Notifications
You must be signed in to change notification settings - Fork 0
/
Class36.java
executable file
·243 lines (229 loc) · 6.21 KB
/
Class36.java
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
import sign.signlink;
public final class Class36
{
public static void method528(int i) {
i = 50000;
aClass36Array635 = new Class36[i + 1];
aBooleanArray643 = new boolean[i + 1];
for(int j = 0; j < i + 1; j++)
aBooleanArray643[j] = true;
}
public static int offset = 33600;
public static void methodCustomAnimations(boolean flag, int file) {
byte abyte0[];
abyte0 = FileOperations.ReadFile("./Cache/data/" + file + ".dat");
Animation.FrameStart[file] = offset;
Stream stream = new Stream(abyte0);
stream.currentOffset = abyte0.length - 8;
int i = stream.readUnsignedWord();
int j = stream.readUnsignedWord();
int k = stream.readUnsignedWord();
int l = stream.readUnsignedWord();
int i1 = 0;
Stream stream_1 = new Stream(abyte0);
stream_1.currentOffset = i1;
i1 += i + 2;
Stream stream_2 = new Stream(abyte0);
stream_2.currentOffset = i1;
i1 += j;
Stream stream_3 = new Stream(abyte0);
stream_3.currentOffset = i1;
i1 += k;
Stream stream_4 = new Stream(abyte0);
stream_4.currentOffset = i1;
i1 += l;
Stream stream_5 = new Stream(abyte0);
stream_5.currentOffset = i1;
if(flag) {
for(int j1 = 1; j1 > 0; j1++);
}
Class18 class18 = new Class18(stream_5);
int k1 = stream_1.readUnsignedWord();
int ai[] = new int[500];
int ai1[] = new int[500];
int ai2[] = new int[500];
int ai3[] = new int[500];
for(int l1 = 0; l1 < k1; l1++) {
int i2 = stream_1.readUnsignedWord();
i2 = offset;
offset++;
Class36 class36 = aClass36Array635[i2] = new Class36();
class36.anInt636 = stream_4.readUnsignedByte();
class36.aClass18_637 = class18;
int j2 = stream_1.readUnsignedByte();
int k2 = -1;
int l2 = 0;
for(int i3 = 0; i3 < j2; i3++) {
int j3 = stream_2.readUnsignedByte();
if(j3 > 0) {
if(class18.anIntArray342[i3] != 0) {
for(int l3 = i3 - 1; l3 > k2; l3--) {
if(class18.anIntArray342[l3] != 0)
continue;
ai[l2] = l3;
ai1[l2] = 0;
ai2[l2] = 0;
ai3[l2] = 0;
l2++;
break;
}
}
ai[l2] = i3;
char c = '\0';
if(class18.anIntArray342[i3] == 3)
c = '\200';
if((j3 & 1) != 0)
ai1[l2] = stream_3.method421();
else
ai1[l2] = c;
if((j3 & 2) != 0)
ai2[l2] = stream_3.method421();
else
ai2[l2] = c;
if((j3 & 4) != 0)
ai3[l2] = stream_3.method421();
else
ai3[l2] = c;
k2 = i3;
l2++;
if(class18.anIntArray342[i3] == 5)
aBooleanArray643[i2] = false;
}
}
class36.anInt638 = l2;
class36.anIntArray639 = new int[l2];
class36.anIntArray640 = new int[l2];
class36.anIntArray641 = new int[l2];
class36.anIntArray642 = new int[l2];
for(int k3 = 0; k3 < l2; k3++) {
class36.anIntArray639[k3] = ai[k3];
class36.anIntArray640[k3] = ai1[k3];
class36.anIntArray641[k3] = ai2[k3];
class36.anIntArray642[k3] = ai3[k3];
}
}
}
public static void method529(byte abyte0[])
{
Stream stream = new Stream(abyte0);
stream.currentOffset = abyte0.length - 8;
int i = stream.readUnsignedWord();
int j = stream.readUnsignedWord();
int k = stream.readUnsignedWord();
int l = stream.readUnsignedWord();
int i1 = 0;
Stream stream_1 = new Stream(abyte0);
stream_1.currentOffset = i1;
i1 += i + 2;
Stream stream_2 = new Stream(abyte0);
stream_2.currentOffset = i1;
i1 += j;
Stream stream_3 = new Stream(abyte0);
stream_3.currentOffset = i1;
i1 += k;
Stream stream_4 = new Stream(abyte0);
stream_4.currentOffset = i1;
i1 += l;
Stream stream_5 = new Stream(abyte0);
stream_5.currentOffset = i1;
Class18 class18 = new Class18(stream_5);
int k1 = stream_1.readUnsignedWord();
int ai[] = new int[500];
int ai1[] = new int[500];
int ai2[] = new int[500];
int ai3[] = new int[500];
for(int l1 = 0; l1 < k1; l1++)
{
int i2 = stream_1.readUnsignedWord();
Class36 class36 = aClass36Array635[i2] = new Class36();
class36.anInt636 = stream_4.readUnsignedByte();
class36.aClass18_637 = class18;
int j2 = stream_1.readUnsignedByte();
int k2 = -1;
int l2 = 0;
for(int i3 = 0; i3 < j2; i3++)
{
int j3 = stream_2.readUnsignedByte();
if(j3 > 0)
{
if(class18.anIntArray342[i3] != 0)
{
for(int l3 = i3 - 1; l3 > k2; l3--)
{
if(class18.anIntArray342[l3] != 0)
continue;
ai[l2] = l3;
ai1[l2] = 0;
ai2[l2] = 0;
ai3[l2] = 0;
l2++;
break;
}
}
ai[l2] = i3;
char c = '\0';
if(class18.anIntArray342[i3] == 3)
c = '\200';
if((j3 & 1) != 0)
ai1[l2] = stream_3.method421();
else
ai1[l2] = c;
if((j3 & 2) != 0)
ai2[l2] = stream_3.method421();
else
ai2[l2] = c;
if((j3 & 4) != 0)
ai3[l2] = stream_3.method421();
else
ai3[l2] = c;
k2 = i3;
l2++;
if(class18.anIntArray342[i3] == 5)
aBooleanArray643[i2] = false;
}
}
class36.anInt638 = l2;
class36.anIntArray639 = new int[l2];
class36.anIntArray640 = new int[l2];
class36.anIntArray641 = new int[l2];
class36.anIntArray642 = new int[l2];
for(int k3 = 0; k3 < l2; k3++)
{
class36.anIntArray639[k3] = ai[k3];
class36.anIntArray640[k3] = ai1[k3];
class36.anIntArray641[k3] = ai2[k3];
class36.anIntArray642[k3] = ai3[k3];
}
}
}
public static void nullLoader()
{
aClass36Array635 = null;
}
public static Class36 method531(int j)
{
if(aClass36Array635 == null)
return null;
else
return aClass36Array635[j];
}
public static boolean method532(int i)
{
return i == -1;
}
private Class36()
{
}
private static Class36[] aClass36Array635;
public int anInt636;
public Class18 aClass18_637;
public int anInt638;
public int anIntArray639[];
public int anIntArray640[];
public int anIntArray641[];
public int anIntArray642[];
private static boolean[] aBooleanArray643;
}