@@ -185,7 +185,7 @@ public static void method440() {
185
185
ProducingGraphicsBuffer .aProducingGraphicsBuffer_1631 = null ;
186
186
Class51 .aProducingGraphicsBuffer_1206 = null ;
187
187
Landscape .anIntArray1168 = null ;
188
- Class40_Sub5_Sub17_Sub6 .anIntArray3255 = null ;
188
+ SpotAnim .anIntArray3255 = null ;
189
189
Class59 .imgLoginScreenButton = null ;
190
190
anIntArray1445 = null ;
191
191
Class40_Sub5_Sub15 .loginScreenBox = null ;
@@ -195,7 +195,7 @@ public static void method440() {
195
195
GameObjectDefinition .aProducingGraphicsBuffer_2524 = null ;
196
196
Class39 .aClass40_Sub5_Sub14_Sub4_918 = null ;
197
197
MovedStatics .aClass40_Sub5_Sub14_Sub2Array535 = null ;
198
- Class40_Sub5_Sub17_Sub6 .anIntArray3248 = null ;
198
+ SpotAnim .anIntArray3248 = null ;
199
199
MovedStatics .loginBoxGraphics = null ;
200
200
SceneTile .aClass40_Sub5_Sub14_Sub4_2043 = null ;
201
201
anIntArray178 = null ;
@@ -334,18 +334,18 @@ public static void initiateVertexHeights(int offsetY, int sizeY, int sizeX, int
334
334
}
335
335
}
336
336
337
- public static void method1000 () {
338
- for (Class40_Sub5_Sub17_Sub6 class40_sub5_sub17_sub6 = (Class40_Sub5_Sub17_Sub6 ) Class57 .aLinkedList_1332 .peekFirst (); class40_sub5_sub17_sub6 != null ; class40_sub5_sub17_sub6 = (Class40_Sub5_Sub17_Sub6 ) Class57 .aLinkedList_1332 .pollFirst ()) {
339
- if (Player .worldLevel == class40_sub5_sub17_sub6 . anInt3239 && !class40_sub5_sub17_sub6 . aBoolean3237 ) {
340
- if (pulseCycle >= class40_sub5_sub17_sub6 . anInt3230 ) {
341
- class40_sub5_sub17_sub6 .method834 (anInt199 );
342
- if (class40_sub5_sub17_sub6 . aBoolean3237 )
343
- class40_sub5_sub17_sub6 .unlink ();
337
+ public static void renderSpotAnims () {
338
+ for (SpotAnim spotAnim = (SpotAnim ) Class57 .aLinkedList_1332 .peekFirst (); spotAnim != null ; spotAnim = (SpotAnim ) Class57 .aLinkedList_1332 .pollFirst ()) {
339
+ if (Player .worldLevel == spotAnim . plane && !spotAnim . animationFinished ) {
340
+ if (pulseCycle >= spotAnim . startCycle ) {
341
+ spotAnim .method834 (anInt199 );
342
+ if (spotAnim . animationFinished )
343
+ spotAnim .unlink ();
344
344
else
345
- Npc .currentScene .method134 (class40_sub5_sub17_sub6 . anInt3239 , class40_sub5_sub17_sub6 . anInt3244 , class40_sub5_sub17_sub6 . anInt3235 , class40_sub5_sub17_sub6 . anInt3231 , 60 , class40_sub5_sub17_sub6 , 0 , -1 , false );
345
+ Npc .currentScene .method134 (spotAnim . plane , spotAnim . x , spotAnim . y , spotAnim . z , 60 , spotAnim , 0 , -1 , false );
346
346
}
347
347
} else
348
- class40_sub5_sub17_sub6 .unlink ();
348
+ spotAnim .unlink ();
349
349
}
350
350
}
351
351
@@ -359,7 +359,7 @@ public static int method546() {
359
359
360
360
Point3d cameraPos = Main .cutsceneCamera .getPosition ();
361
361
362
- int i = Class37 .getFloorDrawHeight (Player .worldLevel , cameraPos .x , cameraPos .y );
362
+ int i = Scene .getFloorDrawHeight (Player .worldLevel , cameraPos .x , cameraPos .y );
363
363
if (i + -cameraPos .z < 800 && (OverlayDefinition .tile_flags [Player .worldLevel ][cameraPos .x >> 7 ][cameraPos .y >> 7 ] & 0x4 ) != 0 )
364
364
return Player .worldLevel ;
365
365
return 3 ;
@@ -435,15 +435,15 @@ public static RSString intToStr(int arg0) {
435
435
return PacketBuffer .method521 (false , 10 , arg0 );
436
436
}
437
437
438
- public static void method335 () {
438
+ public static void renderProjectiles () {
439
439
Projectile projectile = (Projectile ) Class43 .projectileQueue .peekFirst ();
440
440
for (/**/ ; projectile != null ; projectile = (Projectile ) Class43 .projectileQueue .pollFirst ()) {
441
441
if (Player .worldLevel == projectile .anInt2981 && pulseCycle <= projectile .endCycle ) {
442
442
if (projectile .delay <= pulseCycle ) {
443
443
if (projectile .entityIndex > 0 ) {
444
444
Npc class40_sub5_sub17_sub4_sub2 = Player .npcs [-1 + projectile .entityIndex ];
445
445
if (class40_sub5_sub17_sub4_sub2 != null && class40_sub5_sub17_sub4_sub2 .worldX >= 0 && class40_sub5_sub17_sub4_sub2 .worldX < 13312 && class40_sub5_sub17_sub4_sub2 .worldY >= 0 && class40_sub5_sub17_sub4_sub2 .worldY < 13312 )
446
- projectile .trackTarget (pulseCycle , 61 + -61 , class40_sub5_sub17_sub4_sub2 .worldY , Class37 .getFloorDrawHeight (projectile .anInt2981 , class40_sub5_sub17_sub4_sub2 .worldX , class40_sub5_sub17_sub4_sub2 .worldY ) - projectile .endHeight , class40_sub5_sub17_sub4_sub2 .worldX );
446
+ projectile .trackTarget (pulseCycle , 61 + -61 , class40_sub5_sub17_sub4_sub2 .worldY , Scene .getFloorDrawHeight (projectile .anInt2981 , class40_sub5_sub17_sub4_sub2 .worldX , class40_sub5_sub17_sub4_sub2 .worldY ) - projectile .endHeight , class40_sub5_sub17_sub4_sub2 .worldX );
447
447
}
448
448
if (projectile .entityIndex < 0 ) {
449
449
int i = -1 + -projectile .entityIndex ;
@@ -453,7 +453,7 @@ public static void method335() {
453
453
else
454
454
class40_sub5_sub17_sub4_sub1 = Player .localPlayer ;
455
455
if (class40_sub5_sub17_sub4_sub1 != null && class40_sub5_sub17_sub4_sub1 .worldX >= 0 && class40_sub5_sub17_sub4_sub1 .worldX < 13312 && class40_sub5_sub17_sub4_sub1 .worldY >= 0 && class40_sub5_sub17_sub4_sub1 .worldY < 13312 )
456
- projectile .trackTarget (pulseCycle , 0 , class40_sub5_sub17_sub4_sub1 .worldY , Class37 .getFloorDrawHeight (projectile .anInt2981 , class40_sub5_sub17_sub4_sub1 .worldX , class40_sub5_sub17_sub4_sub1 .worldY ) - projectile .endHeight , class40_sub5_sub17_sub4_sub1 .worldX );
456
+ projectile .trackTarget (pulseCycle , 0 , class40_sub5_sub17_sub4_sub1 .worldY , Scene .getFloorDrawHeight (projectile .anInt2981 , class40_sub5_sub17_sub4_sub1 .worldX , class40_sub5_sub17_sub4_sub1 .worldY ) - projectile .endHeight , class40_sub5_sub17_sub4_sub1 .worldX );
457
457
}
458
458
projectile .move (anInt199 );
459
459
Npc .currentScene .method134 (Player .worldLevel , (int ) projectile .currentX , (int ) projectile .currentY , (int ) projectile .currentHeight , 60 , projectile , projectile .anInt3013 , -1 , false );
@@ -518,7 +518,7 @@ public static void method973() {
518
518
OverlayDefinition .tile_underlay_path = null ;
519
519
MouseHandler .tile_overlayids = null ;
520
520
tile_underlayids = null ;
521
- Class40_Sub5_Sub17_Sub6 .blendedHue = null ;
521
+ SpotAnim .blendedHue = null ;
522
522
}
523
523
524
524
public static void printException (String arg0 , Throwable exception ) {
@@ -622,7 +622,7 @@ public static void method836(int arg0) {
622
622
for (int i_6_ = 1 ; i_6_ < i - 1 ; i_6_ ++) {
623
623
for (int i_7_ = 1 ; i_7_ < 127 ; i_7_ ++) {
624
624
int i_8_ = i_7_ + (i_6_ << 7 );
625
- Class40_Sub5_Sub17_Sub6 .anIntArray3255 [i_8_ ] = (anIntArray178 [i_8_ + 1 ] + anIntArray178 [i_8_ - 1 ] - (-anIntArray178 [-128 + i_8_ ] - anIntArray178 [128 + i_8_ ])) / 4 ;
625
+ SpotAnim .anIntArray3255 [i_8_ ] = (anIntArray178 [i_8_ + 1 ] + anIntArray178 [i_8_ - 1 ] - (-anIntArray178 [-128 + i_8_ ] - anIntArray178 [128 + i_8_ ])) / 4 ;
626
626
}
627
627
}
628
628
RSRuntimeException .anInt1641 += 128 ;
@@ -634,7 +634,7 @@ public static void method836(int arg0) {
634
634
for (int i_10_ = 1 ; i_10_ < -1 + i ; i_10_ ++) {
635
635
for (int i_11_ = 1 ; i_11_ < 127 ; i_11_ ++) {
636
636
int i_12_ = i_11_ + (i_10_ << 7 );
637
- int i_13_ = -(Landscape .anIntArray1168 [i_12_ + RSRuntimeException .anInt1641 & -1 + Landscape .anIntArray1168 .length ] / 5 ) + Class40_Sub5_Sub17_Sub6 .anIntArray3255 [i_12_ + 128 ];
637
+ int i_13_ = -(Landscape .anIntArray1168 [i_12_ + RSRuntimeException .anInt1641 & -1 + Landscape .anIntArray1168 .length ] / 5 ) + SpotAnim .anIntArray3255 [i_12_ + 128 ];
638
638
if (i_13_ < 0 )
639
639
i_13_ = 0 ;
640
640
anIntArray178 [i_12_ ] = i_13_ ;
@@ -1960,7 +1960,7 @@ public static void method312(int arg0, int arg1, int arg2, int arg3) {
1960
1960
Class44 .anInt1048 = -1 ;
1961
1961
ISAAC .anInt522 = -1 ;
1962
1962
} else {
1963
- int i = Class37 .getFloorDrawHeight (Player .worldLevel , arg2 , arg1 ) + -arg0 ;
1963
+ int i = Scene .getFloorDrawHeight (Player .worldLevel , arg2 , arg1 ) + -arg0 ;
1964
1964
1965
1965
Point3d cameraPos = Main .getActiveCamera ().getPosition ();
1966
1966
CameraRotation rotation = Main .getActiveCamera ().getRotation ();
0 commit comments