-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcs.java
149 lines (129 loc) · 2.81 KB
/
cs.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
public final class cs {
private int[] a = new int[2];
public cs() {
this.a[0] = 30;
this.a[1] = 0;
}
public final void a(int[] var1) {
this.a = var1;
}
public final int[] a() {
return this.a;
}
public final int a(int var1) {
return this.a[var1];
}
public final void a(int var1) {
if (var1 == 1) {
this.a[0] = 35;
} else if (var1 == 0) {
this.a[0] = -35;
} else if (var1 == 3) {
this.a[1] = 35;
} else {
if (var1 == 2) {
this.a[1] = -35;
}
}
}
public final boolean a() {
int var1 = this.a[0];
int var2 = this.a[1];
return var1 > 60 || var1 < -60 || var2 > 60 || var2 < -60;
}
public final boolean a(int var1) {
if (var1 == 1) {
return this.a[0] > 60;
} else if (var1 == 0) {
return this.a[0] < -60;
} else if (var1 == 3) {
return this.a[1] > 60;
} else if (var1 == 2) {
return this.a[1] < -60;
} else {
return false;
}
}
public final boolean b(int var1) {
if (var1 == 1) {
return this.a[0] < -60;
} else if (var1 == 0) {
return this.a[0] > 60;
} else if (var1 == 3) {
return this.a[1] < -60;
} else if (var1 == 2) {
return this.a[1] > 60;
} else {
return false;
}
}
public static int b(int var0) {
switch(var0) {
case 0:
return 1;
case 1:
return 0;
case 2:
return 3;
case 3:
return 2;
default:
return 8;
}
}
private void a(int var1, int var2) {
int[] var10000 = this.a;
var10000[var1] += var2;
if (this.a[var1] > 100) {
this.a[var1] = 100;
} else {
if (this.a[var1] < -100) {
this.a[var1] = -100;
}
}
}
public final void b(int var1) {
int var2 = bl.c() ? 9 : bl.a().c();
int var3 = var1;
byte var4 = 5;
if (var1 == 8) {
switch(var2) {
case 0:
var3 = 1;
break;
case 1:
var3 = 0;
break;
case 2:
var3 = 3;
break;
case 3:
var3 = 2;
}
var4 = 1;
}
this.b(var3, var4);
}
public final void c(int var1) {
this.b(var1, 2);
}
public final void d(int var1) {
this.b(var1, -7);
}
public final void e(int var1) {
this.b(var1, 2);
}
private void b(int var1, int var2) {
if (var1 == 1) {
this.a(0, var2);
} else if (var1 == 0) {
this.a(0, -var2);
} else if (var1 == 3) {
this.a(1, var2);
} else {
if (var1 == 2) {
this.a(1, -var2);
}
}
}
}