-
Notifications
You must be signed in to change notification settings - Fork 0
/
Animable_Sub5.java
executable file
·106 lines (101 loc) · 2.84 KB
/
Animable_Sub5.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
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
final class Animable_Sub5 extends Animable {
public Model getRotatedModel()
{
int j = -1;
if(aAnimation_1607 != null)
{
int k = client.loopCycle - anInt1608;
if(k > 100 && aAnimation_1607.anInt356 > 0)
k = 100;
while(k > aAnimation_1607.method258(anInt1599))
{
k -= aAnimation_1607.method258(anInt1599);
anInt1599++;
if(anInt1599 < aAnimation_1607.anInt352)
continue;
anInt1599 -= aAnimation_1607.anInt356;
if(anInt1599 >= 0 && anInt1599 < aAnimation_1607.anInt352)
continue;
aAnimation_1607 = null;
break;
}
anInt1608 = client.loopCycle - k;
if(aAnimation_1607 != null)
j = aAnimation_1607.anIntArray353[anInt1599];
}
ObjectDef class46;
if(anIntArray1600 != null)
class46 = method457();
else
class46 = ObjectDef.forID(anInt1610);
if(class46 == null)
{
return null;
} else
{
return class46.method578(anInt1611, anInt1612, anInt1603, anInt1604, anInt1605, anInt1606, j);
}
}
private ObjectDef method457()
{
int i = -1;
if(anInt1601 != -1)
{
VarBit varBit = VarBit.cache[anInt1601];
int k = varBit.anInt648;
int l = varBit.anInt649;
int i1 = varBit.anInt650;
int j1 = client.anIntArray1232[i1 - l];
i = clientInstance.variousSettings[k] >> l & j1;
} else
if(anInt1602 != -1)
i = clientInstance.variousSettings[anInt1602];
if(i < 0 || i >= anIntArray1600.length || anIntArray1600[i] == -1)
return null;
else
return ObjectDef.forID(anIntArray1600[i]);
}
public Animable_Sub5(int i, int j, int k, int l, int i1, int j1,
int k1, int l1, boolean flag)
{
anInt1610 = i;
anInt1611 = k;
anInt1612 = j;
anInt1603 = j1;
anInt1604 = l;
anInt1605 = i1;
anInt1606 = k1;
if(l1 != -1)
{
aAnimation_1607 = Animation.anims[l1];
anInt1599 = 0;
anInt1608 = client.loopCycle;
if(flag && aAnimation_1607.anInt356 != -1)
{
anInt1599 = (int)(Math.random() * (double) aAnimation_1607.anInt352);
anInt1608 -= (int)(Math.random() * (double) aAnimation_1607.method258(anInt1599));
}
}
ObjectDef class46 = ObjectDef.forID(anInt1610);
anInt1601 = class46.anInt774;
anInt1602 = class46.anInt749;
anIntArray1600 = class46.childrenIDs;
}
private int anInt1599;
private final int[] anIntArray1600;
private final int anInt1601;
private final int anInt1602;
private final int anInt1603;
private final int anInt1604;
private final int anInt1605;
private final int anInt1606;
private Animation aAnimation_1607;
private int anInt1608;
public static client clientInstance;
private final int anInt1610;
private final int anInt1611;
private final int anInt1612;
}