@@ -336,6 +336,21 @@ public class MovedStatics {
336
336
*/
337
337
public static int anInt2480 = 0 ;
338
338
public static ImageRGB [] aClass40_Sub5_Sub14_Sub4Array2474 ;
339
+ public static int anInt1985 = -1 ;
340
+ public static int anInt1987 = 0 ;
341
+ public static IndexedImage tabTopBack ;
342
+ /**
343
+ * Some kind of colour palette
344
+ */
345
+ public static int [] anIntArray1972 ;
346
+ /**
347
+ * Sprite heights?
348
+ */
349
+ public static int [] anIntArray3312 ;
350
+ /**
351
+ * Some kind of mouse information
352
+ */
353
+ public static int anInt3294 = 0 ;
339
354
340
355
public static void method440 () {
341
356
if (aBoolean512 ) {
@@ -457,18 +472,18 @@ public static IndexedImage method538() {
457
472
class40_sub5_sub14_sub2 .xDrawOffset = anIntArray1347 [0 ];
458
473
class40_sub5_sub14_sub2 .yDrawOffset = anIntArray3111 [0 ];
459
474
class40_sub5_sub14_sub2 .imgWidth = anIntArray456 [0 ];
460
- class40_sub5_sub14_sub2 .imgHeight = Npc . anIntArray3312 [0 ];
461
- class40_sub5_sub14_sub2 .palette = Buffer . anIntArray1972 ;
475
+ class40_sub5_sub14_sub2 .imgHeight = anIntArray3312 [0 ];
476
+ class40_sub5_sub14_sub2 .palette = anIntArray1972 ;
462
477
class40_sub5_sub14_sub2 .imgPixels = aByteArrayArray1370 [0 ];
463
478
method569 ();
464
479
return class40_sub5_sub14_sub2 ;
465
480
}
466
481
467
482
public static void method332 (int arg0 ) {
468
483
synchronized (anObject162 ) {
469
- if (Buffer . anInt1987 == 0 )
484
+ if (anInt1987 == 0 )
470
485
Game .signlink .createThreadNode (5 , new Class44 ());
471
- Buffer . anInt1987 = arg0 ;
486
+ anInt1987 = arg0 ;
472
487
}
473
488
}
474
489
@@ -538,7 +553,7 @@ public static void method184(byte[] data, int arg1) {
538
553
anIntArray3111 = new int [anInt2581 ];
539
554
aByteArrayArray1370 = new byte [anInt2581 ][];
540
555
anIntArray456 = new int [anInt2581 ];
541
- Npc . anIntArray3312 = new int [anInt2581 ];
556
+ anIntArray3312 = new int [anInt2581 ];
542
557
anIntArray1347 = new int [anInt2581 ];
543
558
544
559
buffer .currentPosition = data .length + -7 + -(anInt2581 * 8 );
@@ -552,18 +567,18 @@ public static void method184(byte[] data, int arg1) {
552
567
for (int i_36_ = 0 ; i_36_ < anInt2581 ; i_36_ ++)
553
568
anIntArray456 [i_36_ ] = buffer .getUnsignedShortBE ();
554
569
for (int i_37_ = 0 ; anInt2581 > i_37_ ; i_37_ ++)
555
- Npc . anIntArray3312 [i_37_ ] = buffer .getUnsignedShortBE ();
570
+ anIntArray3312 [i_37_ ] = buffer .getUnsignedShortBE ();
556
571
557
572
buffer .currentPosition = data .length - (7 + anInt2581 * 8 + -3 + i * 3 );
558
- Buffer . anIntArray1972 = new int [i ];
573
+ anIntArray1972 = new int [i ];
559
574
for (int i_38_ = 1 ; i > i_38_ ; i_38_ ++) {
560
- Buffer . anIntArray1972 [i_38_ ] = buffer .getMediumBE ();
561
- if (Buffer . anIntArray1972 [i_38_ ] == 0 )
562
- Buffer . anIntArray1972 [i_38_ ] = 1 ;
575
+ anIntArray1972 [i_38_ ] = buffer .getMediumBE ();
576
+ if (anIntArray1972 [i_38_ ] == 0 )
577
+ anIntArray1972 [i_38_ ] = 1 ;
563
578
}
564
579
buffer .currentPosition = 0 ;
565
580
for (int i_39_ = 0 ; anInt2581 > i_39_ ; i_39_ ++) {
566
- int i_40_ = Npc . anIntArray3312 [i_39_ ];
581
+ int i_40_ = anIntArray3312 [i_39_ ];
567
582
int i_41_ = anIntArray456 [i_39_ ];
568
583
int i_42_ = i_40_ * i_41_ ;
569
584
byte [] is = new byte [i_42_ ];
@@ -587,7 +602,7 @@ public static String method204(int arg0) {
587
602
588
603
public static void method527 (int currentTabId , int [] tabWidgetIds , boolean arg3 , int arg4 ) {
589
604
tabTop .prepareRasterizer ();
590
- Buffer . tabTopBack .drawImage (0 , 0 );
605
+ tabTopBack .drawImage (0 , 0 );
591
606
if (arg3 ) {
592
607
if (tabWidgetIds [currentTabId ] != -1 ) {
593
608
if (currentTabId == 0 )
@@ -1420,7 +1435,7 @@ private static void method344(int arg0) {
1420
1435
tabHighlightImageTopRightEdge = null ;
1421
1436
anIntArray852 = null ;
1422
1437
chatModes = null ;
1423
- Buffer . tabTopBack = null ;
1438
+ tabTopBack = null ;
1424
1439
tabImageProducer = null ;
1425
1440
tabHighlightImageTopLeftEdge = null ;
1426
1441
gameScreenImageProducer = null ;
@@ -1912,7 +1927,7 @@ public static void method763(Component arg0, CacheArchive arg2) {
1912
1927
Minimap .minimapBackgroundImage = Game .method359 (Native .mapBack , Native .aClass1_305 , arg2 );
1913
1928
bottomChatBack = Game .method359 (Native .imgBackbase1 , Native .aClass1_305 , arg2 );
1914
1929
tabBottomBack = Game .method359 (Native .imgBackbase2 , Native .aClass1_305 , arg2 );
1915
- Buffer . tabTopBack = Game .method359 (Native .imgBackhmid1 , Native .aClass1_305 , arg2 );
1930
+ tabTopBack = Game .method359 (Native .imgBackhmid1 , Native .aClass1_305 , arg2 );
1916
1931
ChatBox .chatBoxImageProducer = createGraphicsBuffer (479 , 96 , arg0 );
1917
1932
chatboxBackgroundImage .drawImage (0 , 0 );
1918
1933
Minimap .mapbackProducingGraphicsBuffer = createGraphicsBuffer (172 , 156 , arg0 );
@@ -3055,7 +3070,7 @@ public static boolean method793(int arg1) {
3055
3070
}
3056
3071
3057
3072
public static IndexedImage method769 (int arg0 , CacheArchive imageArchive , int arg2 ) {
3058
- if (!Buffer . method472 (imageArchive , arg2 ))
3073
+ if (!method472 (imageArchive , arg2 ))
3059
3074
return null ;
3060
3075
return method538 ();
3061
3076
}
@@ -3267,7 +3282,7 @@ public static void processMenuClick() {
3267
3282
GameInterface .activeInterfaceType = 1 ;
3268
3283
if (GameInterface .chatboxInterfaceId == id >> 16 )
3269
3284
GameInterface .activeInterfaceType = 3 ;
3270
- Buffer .lastItemDragTime = 0 ;
3285
+ GameInterface .lastItemDragTime = 0 ;
3271
3286
return ;
3272
3287
}
3273
3288
}
@@ -3306,12 +3321,12 @@ public static ImageRGB method578() {
3306
3321
class40_sub5_sub14_sub4 .offsetX = anIntArray1347 [0 ];
3307
3322
class40_sub5_sub14_sub4 .offsetY = anIntArray3111 [0 ];
3308
3323
class40_sub5_sub14_sub4 .imageWidth = anIntArray456 [0 ];
3309
- class40_sub5_sub14_sub4 .imageHeight = Npc . anIntArray3312 [0 ];
3324
+ class40_sub5_sub14_sub4 .imageHeight = anIntArray3312 [0 ];
3310
3325
byte [] is = aByteArrayArray1370 [0 ];
3311
3326
int i = class40_sub5_sub14_sub4 .imageWidth * class40_sub5_sub14_sub4 .imageHeight ;
3312
3327
class40_sub5_sub14_sub4 .pixels = new int [i ];
3313
3328
for (int i_5_ = 0 ; i_5_ < i ; i_5_ ++) {
3314
- class40_sub5_sub14_sub4 .pixels [i_5_ ] = Buffer . anIntArray1972 [BitUtils .bitWiseAND (255 , is [i_5_ ])];
3329
+ class40_sub5_sub14_sub4 .pixels [i_5_ ] = anIntArray1972 [BitUtils .bitWiseAND (255 , is [i_5_ ])];
3315
3330
}
3316
3331
method569 ();
3317
3332
return class40_sub5_sub14_sub4 ;
@@ -3320,9 +3335,9 @@ public static ImageRGB method578() {
3320
3335
public static void method569 () {
3321
3336
anIntArray456 = null ;
3322
3337
aByteArrayArray1370 = null ;
3323
- Npc . anIntArray3312 = null ;
3338
+ anIntArray3312 = null ;
3324
3339
anIntArray3111 = null ;
3325
- Buffer . anIntArray1972 = null ;
3340
+ anIntArray1972 = null ;
3326
3341
anIntArray1347 = null ;
3327
3342
}
3328
3343
@@ -3615,4 +3630,19 @@ public static void startup() {
3615
3630
processGameStatus (10 );
3616
3631
}
3617
3632
}
3633
+
3634
+ /**
3635
+ * Reading some kind of cache
3636
+ *
3637
+ * TODO what is this? sprites?
3638
+ */
3639
+ public static boolean method472 (CacheArchive arg1 , int arg2 ) {
3640
+ byte [] is = arg1 .method187 (arg2 );
3641
+ if (is == null ) {
3642
+ return false ;
3643
+ }
3644
+ method184 (is , 0 );
3645
+ return true ;
3646
+
3647
+ }
3618
3648
}
0 commit comments