11package jagex2 .client ;
22
33import deob .ObfuscatedName ;
4- import jagex2 .datastruct .Linkable ;
54import jagex2 .graphics .Pix32 ;
65import jagex2 .graphics .PixMap ;
76
1211@ ObfuscatedName ("a" )
1312public class GameShell extends Applet implements Runnable , MouseListener , MouseMotionListener , KeyListener , FocusListener , WindowListener {
1413
15- @ ObfuscatedName ("a.a" )
16- public int field1 = -74 ;
17-
18- @ ObfuscatedName ("a.b" )
19- public byte field2 = 68 ;
20-
21- @ ObfuscatedName ("a.c" )
22- public int field3 ;
23-
24- @ ObfuscatedName ("a.d" )
25- public boolean field4 = false ;
26-
27- @ ObfuscatedName ("a.e" )
28- public boolean field5 = false ;
29-
30- @ ObfuscatedName ("a.f" )
31- public boolean field6 = false ;
32-
3314 @ ObfuscatedName ("a.g" )
3415 public int field7 ;
3516
@@ -124,39 +105,36 @@ public class GameShell extends Applet implements Runnable, MouseListener, MouseM
124105 public long field32 ;
125106
126107 @ ObfuscatedName ("a.a(IIB)V" )
127- public final void method1 (int arg0 , int arg1 , byte arg2 ) {
108+ public final void method1 (int arg0 , int arg1 ) {
128109 this .setPreferredSize (new Dimension (arg0 , arg1 ));
129110
130111 this .field13 = arg0 ;
131112 this .field14 = arg1 ;
132113 this .field18 = new ViewBox (false , this .field14 , this , this .field13 );
133- this .field15 = this .method11 (0 ).getGraphics ();
134- this .field16 = new PixMap (true , this .method11 (0 ), this .field13 , this .field14 );
114+ this .field15 = this .method11 ().getGraphics ();
115+ this .field16 = new PixMap (this .method11 (), this .field13 , this .field14 );
135116
136117 this .method12 (this , 1 );
137118 }
138119
139120 @ ObfuscatedName ("a.a(III)V" )
140- public final void method2 (int arg0 , int arg1 , int arg2 ) {
121+ public final void method2 (int arg1 , int arg2 ) {
141122 this .field13 = arg2 ;
142123 this .field14 = arg1 ;
143- this .field15 = this .method11 (0 ).getGraphics ();
144- while (arg0 >= 0 ) {
145- this .field5 = !this .field5 ;
146- }
147- this .field16 = new PixMap (true , this .method11 (0 ), this .field13 , this .field14 );
124+ this .field15 = this .method11 ().getGraphics ();
125+ this .field16 = new PixMap (this .method11 (), this .field13 , this .field14 );
148126 this .method12 (this , 1 );
149127 }
150128
151129 public void run () {
152- this .method11 (0 ).addMouseListener (this );
153- this .method11 (0 ).addMouseMotionListener (this );
154- this .method11 (0 ).addKeyListener (this );
155- this .method11 (0 ).addFocusListener (this );
130+ this .method11 ().addMouseListener (this );
131+ this .method11 ().addMouseMotionListener (this );
132+ this .method11 ().addKeyListener (this );
133+ this .method11 ().addFocusListener (this );
156134 if (this .field18 != null ) {
157135 this .field18 .addWindowListener (this );
158136 }
159- this .method13 (( byte ) 6 , "Loading..." , 0 );
137+ this .method13 ("Loading..." , 0 );
160138 this .method6 ();
161139 int var1 = 0 ;
162140 int var2 = 256 ;
@@ -174,8 +152,6 @@ public void run() {
174152 if (this .field7 == -1 ) {
175153 this .method3 (true );
176154 }
177- if (Linkable .field377 ) {
178- }
179155 return ;
180156 }
181157 if (this .field7 > 0 ) {
@@ -229,15 +205,15 @@ public void run() {
229205 this .field31 = this .field27 ;
230206 this .field32 = this .field28 ;
231207 this .field25 = 0 ;
232- this .method7 ( this . field2 );
208+ this .update ( );
233209 this .field35 = this .field36 ;
234210 var4 += var2 ;
235211 }
236212 var4 &= 0xFF ;
237213 if (this .field8 > 0 ) {
238214 this .field11 = var2 * 1000 / (this .field8 * 256 );
239215 }
240- this .method9 (this . field3 );
216+ this .method9 ();
241217 } while (!this .field12 );
242218 System .out .println ("ntime:" + var11 );
243219 for (int var14 = 0 ; var14 < 10 ; var14 ++) {
@@ -255,21 +231,16 @@ public void run() {
255231 @ ObfuscatedName ("a.a(Z)V" )
256232 public final void method3 (boolean arg0 ) {
257233 this .field7 = -2 ;
258- this .method8 (false );
259- if (!arg0 ) {
260- for (int var2 = 1 ; var2 > 0 ; var2 ++) {
234+ this .method8 ();
235+ if (this .field18 != null ) {
236+ try {
237+ Thread .sleep (1000L );
238+ } catch (Exception var4 ) {
239+ }
240+ try {
241+ System .exit (0 );
242+ } catch (Throwable var3 ) {
261243 }
262- }
263- if (this .field18 == null ) {
264- return ;
265- }
266- try {
267- Thread .sleep (1000L );
268- } catch (Exception var4 ) {
269- }
270- try {
271- System .exit (0 );
272- } catch (Throwable var3 ) {
273244 }
274245 }
275246
@@ -308,15 +279,15 @@ public final void update(Graphics arg0) {
308279 this .field15 = arg0 ;
309280 }
310281 this .field19 = true ;
311- this .method10 (0 );
282+ this .method10 ();
312283 }
313284
314285 public final void paint (Graphics arg0 ) {
315286 if (this .field15 == null ) {
316287 this .field15 = arg0 ;
317288 }
318289 this .field19 = true ;
319- this .method10 (0 );
290+ this .method10 ();
320291 }
321292
322293 public final void mousePressed (MouseEvent arg0 ) {
@@ -338,7 +309,7 @@ public final void mousePressed(MouseEvent arg0) {
338309 }
339310
340311 if (InputTracking .field151 ) {
341- InputTracking .method49 (var2 , ( byte ) 9 , var3 , arg0 .getButton () == MouseEvent .BUTTON3 ? 1 : 0 );
312+ InputTracking .method49 (var2 , var3 , arg0 .getButton () == MouseEvent .BUTTON3 ? 1 : 0 );
342313 }
343314 } catch (NoSuchMethodError ex ) {
344315 if (arg0 .isMetaDown ()) {
@@ -350,7 +321,7 @@ public final void mousePressed(MouseEvent arg0) {
350321 }
351322
352323 if (InputTracking .field151 ) {
353- InputTracking .method49 (var2 , ( byte ) 9 , var3 , arg0 .isMetaDown () ? 1 : 0 );
324+ InputTracking .method49 (var2 , var3 , arg0 .isMetaDown () ? 1 : 0 );
354325 }
355326 }
356327 }
@@ -361,11 +332,11 @@ public final void mouseReleased(MouseEvent arg0) {
361332
362333 try {
363334 if (InputTracking .field151 ) {
364- InputTracking .method50 (arg0 .getButton () == MouseEvent .BUTTON3 ? 1 : 0 , ( byte ) 2 );
335+ InputTracking .method50 (arg0 .getButton () == MouseEvent .BUTTON3 ? 1 : 0 );
365336 }
366337 } catch (NoSuchMethodError ex ) {
367338 if (InputTracking .field151 ) {
368- InputTracking .method50 (arg0 .isMetaDown () ? 1 : 0 , ( byte ) 2 );
339+ InputTracking .method50 (arg0 .isMetaDown () ? 1 : 0 );
369340 }
370341 }
371342 }
@@ -375,7 +346,7 @@ public final void mouseClicked(MouseEvent arg0) {
375346
376347 public final void mouseEntered (MouseEvent arg0 ) {
377348 if (InputTracking .field151 ) {
378- InputTracking .method56 (false );
349+ InputTracking .method56 ();
379350 }
380351 }
381352
@@ -384,7 +355,7 @@ public final void mouseExited(MouseEvent arg0) {
384355 this .field23 = -1 ;
385356 this .field24 = -1 ;
386357 if (InputTracking .field151 ) {
387- InputTracking .method57 (421 );
358+ InputTracking .method57 ();
388359 }
389360 }
390361
@@ -395,7 +366,7 @@ public final void mouseDragged(MouseEvent arg0) {
395366 this .field23 = var2 ;
396367 this .field24 = var3 ;
397368 if (InputTracking .field151 ) {
398- InputTracking .method51 (0 , var2 , var3 );
369+ InputTracking .method51 (var2 , var3 );
399370 }
400371 }
401372
@@ -406,7 +377,7 @@ public final void mouseMoved(MouseEvent arg0) {
406377 this .field23 = var2 ;
407378 this .field24 = var3 ;
408379 if (InputTracking .field151 ) {
409- InputTracking .method51 (0 , var2 , var3 );
380+ InputTracking .method51 (var2 , var3 );
410381 }
411382 }
412383
@@ -467,7 +438,7 @@ public final void keyPressed(KeyEvent arg0) {
467438 this .field36 = this .field36 + 1 & 0x7F ;
468439 }
469440 if (InputTracking .field151 ) {
470- InputTracking .method52 (var3 , 614 );
441+ InputTracking .method52 (var3 );
471442 }
472443 }
473444
@@ -509,19 +480,16 @@ public final void keyReleased(KeyEvent arg0) {
509480 this .field33 [var3 ] = 0 ;
510481 }
511482 if (InputTracking .field151 ) {
512- InputTracking .method53 (- 10167 , var3 );
483+ InputTracking .method53 (var3 );
513484 }
514485 }
515486
516487 public final void keyTyped (KeyEvent arg0 ) {
517488 }
518489
519490 @ ObfuscatedName ("a.a(B)I" )
520- public final int method5 (byte arg0 ) {
491+ public final int method5 () {
521492 int var2 = -1 ;
522- if (arg0 != 7 ) {
523- this .field5 = !this .field5 ;
524- }
525493 if (this .field36 != this .field35 ) {
526494 var2 = this .field34 [this .field35 ];
527495 this .field35 = this .field35 + 1 & 0x7F ;
@@ -532,16 +500,16 @@ public final int method5(byte arg0) {
532500 public final void focusGained (FocusEvent arg0 ) {
533501 this .field20 = true ;
534502 this .field19 = true ;
535- this .method10 (0 );
503+ this .method10 ();
536504 if (InputTracking .field151 ) {
537- InputTracking .method54 (( byte ) 3 );
505+ InputTracking .method54 ();
538506 }
539507 }
540508
541509 public final void focusLost (FocusEvent arg0 ) {
542510 this .field20 = false ;
543511 if (InputTracking .field151 ) {
544- InputTracking .method55 (8 );
512+ InputTracking .method55 ();
545513 }
546514 }
547515
@@ -572,35 +540,23 @@ public void method6() {
572540 }
573541
574542 @ ObfuscatedName ("a.b(B)V" )
575- public void method7 (byte arg0 ) {
576- if (arg0 == 68 ) {
577- ;
578- }
543+ public void update () {
579544 }
580545
581546 @ ObfuscatedName ("a.b(Z)V" )
582- public void method8 (boolean arg0 ) {
583- if (arg0 ) {
584- this .field6 = !this .field6 ;
585- }
547+ public void method8 () {
586548 }
587549
588550 @ ObfuscatedName ("a.a(I)V" )
589- public void method9 (int arg0 ) {
590- if (arg0 == 0 ) {
591- ;
592- }
551+ public void method9 () {
593552 }
594553
595554 @ ObfuscatedName ("a.b(I)V" )
596- public void method10 (int arg0 ) {
597- if (arg0 != 0 ) {
598- this .field5 = !this .field5 ;
599- }
555+ public void method10 () {
600556 }
601557
602558 @ ObfuscatedName ("a.c(I)Ljava/awt/Component;" )
603- public Component method11 (int arg0 ) {
559+ public Component method11 () {
604560 return this ;
605561 }
606562
@@ -612,25 +568,22 @@ public void method12(Runnable arg0, int arg1) {
612568 }
613569
614570 @ ObfuscatedName ("a.a(BLjava/lang/String;I)V" )
615- public void method13 (byte arg0 , String arg1 , int arg2 ) {
571+ public void method13 (String arg1 , int arg2 ) {
616572 while (this .field15 == null ) {
617- this .field15 = this .method11 (0 ).getGraphics ();
573+ this .field15 = this .method11 ().getGraphics ();
618574 try {
619- this .method11 (0 ).repaint ();
575+ this .method11 ().repaint ();
620576 } catch (Exception var10 ) {
621577 }
622578 try {
623579 Thread .sleep (1000L );
624580 } catch (Exception var9 ) {
625581 }
626582 }
627- Font var4 = new Font ("Helvetica" , 1 , 13 );
628- FontMetrics var5 = this .method11 (0 ).getFontMetrics (var4 );
629- Font var6 = new Font ("Helvetica" , 0 , 13 );
630- this .method11 (0 ).getFontMetrics (var6 );
631- if (arg0 != 6 ) {
632- return ;
633- }
583+ Font var4 = new Font ("Helvetica" , Font .BOLD , 13 );
584+ FontMetrics var5 = this .method11 ().getFontMetrics (var4 );
585+ Font var6 = new Font ("Helvetica" , Font .PLAIN , 13 );
586+ FontMetrics plainMetrics = this .method11 ().getFontMetrics (var6 );
634587 if (this .field19 ) {
635588 this .field15 .setColor (Color .black );
636589 this .field15 .fillRect (0 , 0 , this .field13 , this .field14 );
0 commit comments