diff --git a/src/main/java/Class32.java b/src/main/java/BZip2Block.java similarity index 96% rename from src/main/java/Class32.java rename to src/main/java/BZip2Block.java index 7ea855c..e2d89cf 100644 --- a/src/main/java/Class32.java +++ b/src/main/java/BZip2Block.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class32 { +public class BZip2Block { public static int[] anIntArray587; public byte[] aByteArray563; @@ -43,7 +43,7 @@ public class Class32 { public final int[] anIntArray600 = new int[6]; public int anInt601; - public Class32() { + public BZip2Block() { } } diff --git a/src/main/java/BZip2Deflator.java b/src/main/java/BZip2Deflator.java index 4c7c44e..7de2f9a 100644 --- a/src/main/java/BZip2Deflator.java +++ b/src/main/java/BZip2Deflator.java @@ -4,41 +4,41 @@ public class BZip2Deflator { - public static final Class32 aClass32_305 = new Class32(); + public static final BZip2Block A_BLOCK___305 = new BZip2Block(); public static int method225(byte[] abyte0, int i, byte[] abyte1, int j, int k) { - synchronized (aClass32_305) { - aClass32_305.aByteArray563 = abyte1; - aClass32_305.anInt564 = k; - aClass32_305.aByteArray568 = abyte0; - aClass32_305.anInt569 = 0; - aClass32_305.anInt565 = j; - aClass32_305.anInt570 = i; - aClass32_305.anInt577 = 0; - aClass32_305.anInt576 = 0; - aClass32_305.anInt566 = 0; - aClass32_305.anInt567 = 0; - aClass32_305.anInt571 = 0; - aClass32_305.anInt572 = 0; - aClass32_305.anInt579 = 0; - method227(aClass32_305); - i -= aClass32_305.anInt570; + synchronized (A_BLOCK___305) { + A_BLOCK___305.aByteArray563 = abyte1; + A_BLOCK___305.anInt564 = k; + A_BLOCK___305.aByteArray568 = abyte0; + A_BLOCK___305.anInt569 = 0; + A_BLOCK___305.anInt565 = j; + A_BLOCK___305.anInt570 = i; + A_BLOCK___305.anInt577 = 0; + A_BLOCK___305.anInt576 = 0; + A_BLOCK___305.anInt566 = 0; + A_BLOCK___305.anInt567 = 0; + A_BLOCK___305.anInt571 = 0; + A_BLOCK___305.anInt572 = 0; + A_BLOCK___305.anInt579 = 0; + method227(A_BLOCK___305); + i -= A_BLOCK___305.anInt570; return i; } } - public static void method226(Class32 class32) { - byte byte4 = class32.aByte573; - int i = class32.anInt574; - int j = class32.anInt584; - int k = class32.anInt582; - int[] ai = Class32.anIntArray587; - int l = class32.anInt581; - byte[] abyte0 = class32.aByteArray568; - int i1 = class32.anInt569; - int j1 = class32.anInt570; + public static void method226(BZip2Block block) { + byte byte4 = block.aByte573; + int i = block.anInt574; + int j = block.anInt584; + int k = block.anInt582; + int[] ai = BZip2Block.anIntArray587; + int l = block.anInt581; + byte[] abyte0 = block.aByteArray568; + int i1 = block.anInt569; + int j1 = block.anInt570; int k1 = j1; - int l1 = class32.anInt601 + 1; + int l1 = block.anInt601 + 1; label0: do { if (i > 0) { @@ -129,167 +129,167 @@ public class BZip2Deflator { } } } while (true); - int i2 = class32.anInt571; - class32.anInt571 += k1 - j1; - if (class32.anInt571 < i2) { - class32.anInt572++; + int i2 = block.anInt571; + block.anInt571 += k1 - j1; + if (block.anInt571 < i2) { + block.anInt572++; } - class32.aByte573 = byte4; - class32.anInt574 = i; - class32.anInt584 = j; - class32.anInt582 = k; - Class32.anIntArray587 = ai; - class32.anInt581 = l; - class32.aByteArray568 = abyte0; - class32.anInt569 = i1; - class32.anInt570 = j1; + block.aByte573 = byte4; + block.anInt574 = i; + block.anInt584 = j; + block.anInt582 = k; + BZip2Block.anIntArray587 = ai; + block.anInt581 = l; + block.aByteArray568 = abyte0; + block.anInt569 = i1; + block.anInt570 = j1; } - public static void method227(Class32 class32) { + public static void method227(BZip2Block block) { int k8 = 0; int[] ai = null; int[] ai1 = null; int[] ai2 = null; - class32.anInt578 = 1; - if (Class32.anIntArray587 == null) { - Class32.anIntArray587 = new int[class32.anInt578 * 0x186a0]; + block.anInt578 = 1; + if (BZip2Block.anIntArray587 == null) { + BZip2Block.anIntArray587 = new int[block.anInt578 * 0x186a0]; } boolean flag19 = true; while (flag19) { - byte byte0 = method228(class32); + byte byte0 = method228(block); if (byte0 == 23) { return; } - method228(class32); - method228(class32); - method228(class32); - method228(class32); - method228(class32); - class32.anInt579++; - method228(class32); - method228(class32); - method228(class32); - method228(class32); - byte0 = method229(class32); - class32.aBoolean575 = byte0 != 0; - if (class32.aBoolean575) { + method228(block); + method228(block); + method228(block); + method228(block); + method228(block); + block.anInt579++; + method228(block); + method228(block); + method228(block); + method228(block); + byte0 = method229(block); + block.aBoolean575 = byte0 != 0; + if (block.aBoolean575) { System.out.println("PANIC! RANDOMISED BLOCK!"); } - class32.anInt580 = 0; - byte0 = method228(class32); - class32.anInt580 = class32.anInt580 << 8 | byte0 & 0xff; - byte0 = method228(class32); - class32.anInt580 = class32.anInt580 << 8 | byte0 & 0xff; - byte0 = method228(class32); - class32.anInt580 = class32.anInt580 << 8 | byte0 & 0xff; + block.anInt580 = 0; + byte0 = method228(block); + block.anInt580 = block.anInt580 << 8 | byte0 & 0xff; + byte0 = method228(block); + block.anInt580 = block.anInt580 << 8 | byte0 & 0xff; + byte0 = method228(block); + block.anInt580 = block.anInt580 << 8 | byte0 & 0xff; for (int j = 0; j < 16; j++) { - byte byte1 = method229(class32); - class32.aBooleanArray590[j] = byte1 == 1; + byte byte1 = method229(block); + block.aBooleanArray590[j] = byte1 == 1; } for (int k = 0; k < 256; k++) { - class32.aBooleanArray589[k] = false; + block.aBooleanArray589[k] = false; } for (int l = 0; l < 16; l++) { - if (class32.aBooleanArray590[l]) { + if (block.aBooleanArray590[l]) { for (int i3 = 0; i3 < 16; i3++) { - byte byte2 = method229(class32); + byte byte2 = method229(block); if (byte2 == 1) { - class32.aBooleanArray589[l * 16 + i3] = true; + block.aBooleanArray589[l * 16 + i3] = true; } } } } - method231(class32); - int i4 = class32.anInt588 + 2; - int j4 = method230(3, class32); - int k4 = method230(15, class32); + method231(block); + int i4 = block.anInt588 + 2; + int j4 = method230(3, block); + int k4 = method230(15, block); for (int i1 = 0; i1 < k4; i1++) { int j3 = 0; do { - byte byte3 = method229(class32); + byte byte3 = method229(block); if (byte3 == 0) { break; } j3++; } while (true); - class32.aByteArray595[i1] = (byte) j3; + block.aByteArray595[i1] = (byte) j3; } byte[] abyte0 = new byte[6]; for (byte byte16 = 0; byte16 < j4; byte16++) { abyte0[byte16] = byte16; } for (int j1 = 0; j1 < k4; j1++) { - byte byte17 = class32.aByteArray595[j1]; + byte byte17 = block.aByteArray595[j1]; byte byte15 = abyte0[byte17]; for (; byte17 > 0; byte17--) { abyte0[byte17] = abyte0[byte17 - 1]; } abyte0[0] = byte15; - class32.aByteArray594[j1] = byte15; + block.aByteArray594[j1] = byte15; } for (int k3 = 0; k3 < j4; k3++) { - int l6 = method230(5, class32); + int l6 = method230(5, block); for (int k1 = 0; k1 < i4; k1++) { do { - byte byte4 = method229(class32); + byte byte4 = method229(block); if (byte4 == 0) { break; } - byte4 = method229(class32); + byte4 = method229(block); if (byte4 == 0) { l6++; } else { l6--; } } while (true); - class32.aByteArrayArray596[k3][k1] = (byte) l6; + block.aByteArrayArray596[k3][k1] = (byte) l6; } } for (int l3 = 0; l3 < j4; l3++) { byte byte8 = 32; int i = 0; for (int l1 = 0; l1 < i4; l1++) { - if (class32.aByteArrayArray596[l3][l1] > i) { - i = class32.aByteArrayArray596[l3][l1]; + if (block.aByteArrayArray596[l3][l1] > i) { + i = block.aByteArrayArray596[l3][l1]; } - if (class32.aByteArrayArray596[l3][l1] < byte8) { - byte8 = class32.aByteArrayArray596[l3][l1]; + if (block.aByteArrayArray596[l3][l1] < byte8) { + byte8 = block.aByteArrayArray596[l3][l1]; } } - method232(class32.anIntArrayArray597[l3], class32.anIntArrayArray598[l3], class32.anIntArrayArray599[l3], class32.aByteArrayArray596[l3], byte8, i, i4); - class32.anIntArray600[l3] = byte8; + method232(block.anIntArrayArray597[l3], block.anIntArrayArray598[l3], block.anIntArrayArray599[l3], block.aByteArrayArray596[l3], byte8, i, i4); + block.anIntArray600[l3] = byte8; } - int l4 = class32.anInt588 + 1; + int l4 = block.anInt588 + 1; int i5 = -1; int j5 = 0; for (int i2 = 0; i2 <= 255; i2++) { - class32.anIntArray583[i2] = 0; + block.anIntArray583[i2] = 0; } int j9 = 4095; for (int l8 = 15; l8 >= 0; l8--) { for (int i9 = 15; i9 >= 0; i9--) { - class32.aByteArray592[j9] = (byte) (l8 * 16 + i9); + block.aByteArray592[j9] = (byte) (l8 * 16 + i9); j9--; } - class32.anIntArray593[l8] = j9 + 1; + block.anIntArray593[l8] = j9 + 1; } int i6 = 0; if (j5 == 0) { i5++; j5 = 50; - byte byte12 = class32.aByteArray594[i5]; - k8 = class32.anIntArray600[byte12]; - ai = class32.anIntArrayArray597[byte12]; - ai2 = class32.anIntArrayArray599[byte12]; - ai1 = class32.anIntArrayArray598[byte12]; + byte byte12 = block.aByteArray594[i5]; + k8 = block.anIntArray600[byte12]; + ai = block.anIntArrayArray597[byte12]; + ai2 = block.anIntArrayArray599[byte12]; + ai1 = block.anIntArrayArray598[byte12]; } j5--; int i7 = k8; int l7; byte byte9; - for (l7 = method230(i7, class32); l7 > ai[i7]; l7 = l7 << 1 | byte9) { + for (l7 = method230(i7, block); l7 > ai[i7]; l7 = l7 << 1 | byte9) { i7++; - byte9 = method229(class32); + byte9 = method229(block); } for (int k5 = ai2[l7 - ai1[i7]]; k5 != l4; ) { if (k5 == 0 || k5 == 1) { @@ -305,156 +305,156 @@ public class BZip2Deflator { if (j5 == 0) { i5++; j5 = 50; - byte byte13 = class32.aByteArray594[i5]; - k8 = class32.anIntArray600[byte13]; - ai = class32.anIntArrayArray597[byte13]; - ai2 = class32.anIntArrayArray599[byte13]; - ai1 = class32.anIntArrayArray598[byte13]; + byte byte13 = block.aByteArray594[i5]; + k8 = block.anIntArray600[byte13]; + ai = block.anIntArrayArray597[byte13]; + ai2 = block.anIntArrayArray599[byte13]; + ai1 = block.anIntArrayArray598[byte13]; } j5--; int j7 = k8; int i8; byte byte10; - for (i8 = method230(j7, class32); i8 > ai[j7]; i8 = i8 << 1 | byte10) { + for (i8 = method230(j7, block); i8 > ai[j7]; i8 = i8 << 1 | byte10) { j7++; - byte10 = method229(class32); + byte10 = method229(block); } k5 = ai2[i8 - ai1[j7]]; } while (k5 == 0 || k5 == 1); j6++; - byte byte5 = class32.aByteArray591[class32.aByteArray592[class32.anIntArray593[0]] & 0xff]; - class32.anIntArray583[byte5 & 0xff] += j6; + byte byte5 = block.aByteArray591[block.aByteArray592[block.anIntArray593[0]] & 0xff]; + block.anIntArray583[byte5 & 0xff] += j6; for (; j6 > 0; j6--) { - Class32.anIntArray587[i6] = byte5 & 0xff; + BZip2Block.anIntArray587[i6] = byte5 & 0xff; i6++; } } else { int j11 = k5 - 1; byte byte6; if (j11 < 16) { - int j10 = class32.anIntArray593[0]; - byte6 = class32.aByteArray592[j10 + j11]; + int j10 = block.anIntArray593[0]; + byte6 = block.aByteArray592[j10 + j11]; for (; j11 > 3; j11 -= 4) { int k11 = j10 + j11; - class32.aByteArray592[k11] = class32.aByteArray592[k11 - 1]; - class32.aByteArray592[k11 - 1] = class32.aByteArray592[k11 - 2]; - class32.aByteArray592[k11 - 2] = class32.aByteArray592[k11 - 3]; - class32.aByteArray592[k11 - 3] = class32.aByteArray592[k11 - 4]; + block.aByteArray592[k11] = block.aByteArray592[k11 - 1]; + block.aByteArray592[k11 - 1] = block.aByteArray592[k11 - 2]; + block.aByteArray592[k11 - 2] = block.aByteArray592[k11 - 3]; + block.aByteArray592[k11 - 3] = block.aByteArray592[k11 - 4]; } for (; j11 > 0; j11--) { - class32.aByteArray592[j10 + j11] = class32.aByteArray592[(j10 + j11) - 1]; + block.aByteArray592[j10 + j11] = block.aByteArray592[(j10 + j11) - 1]; } - class32.aByteArray592[j10] = byte6; + block.aByteArray592[j10] = byte6; } else { int l10 = j11 / 16; int i11 = j11 % 16; - int k10 = class32.anIntArray593[l10] + i11; - byte6 = class32.aByteArray592[k10]; - for (; k10 > class32.anIntArray593[l10]; k10--) { - class32.aByteArray592[k10] = class32.aByteArray592[k10 - 1]; + int k10 = block.anIntArray593[l10] + i11; + byte6 = block.aByteArray592[k10]; + for (; k10 > block.anIntArray593[l10]; k10--) { + block.aByteArray592[k10] = block.aByteArray592[k10 - 1]; } - class32.anIntArray593[l10]++; + block.anIntArray593[l10]++; for (; l10 > 0; l10--) { - class32.anIntArray593[l10]--; - class32.aByteArray592[class32.anIntArray593[l10]] = class32.aByteArray592[(class32.anIntArray593[l10 - 1] + 16) - 1]; + block.anIntArray593[l10]--; + block.aByteArray592[block.anIntArray593[l10]] = block.aByteArray592[(block.anIntArray593[l10 - 1] + 16) - 1]; } - class32.anIntArray593[0]--; - class32.aByteArray592[class32.anIntArray593[0]] = byte6; - if (class32.anIntArray593[0] == 0) { + block.anIntArray593[0]--; + block.aByteArray592[block.anIntArray593[0]] = byte6; + if (block.anIntArray593[0] == 0) { int i10 = 4095; for (int k9 = 15; k9 >= 0; k9--) { for (int l9 = 15; l9 >= 0; l9--) { - class32.aByteArray592[i10] = class32.aByteArray592[class32.anIntArray593[k9] + l9]; + block.aByteArray592[i10] = block.aByteArray592[block.anIntArray593[k9] + l9]; i10--; } - class32.anIntArray593[k9] = i10 + 1; + block.anIntArray593[k9] = i10 + 1; } } } - class32.anIntArray583[class32.aByteArray591[byte6 & 0xff] & 0xff]++; - Class32.anIntArray587[i6] = class32.aByteArray591[byte6 & 0xff] & 0xff; + block.anIntArray583[block.aByteArray591[byte6 & 0xff] & 0xff]++; + BZip2Block.anIntArray587[i6] = block.aByteArray591[byte6 & 0xff] & 0xff; i6++; if (j5 == 0) { i5++; j5 = 50; - byte byte14 = class32.aByteArray594[i5]; - k8 = class32.anIntArray600[byte14]; - ai = class32.anIntArrayArray597[byte14]; - ai2 = class32.anIntArrayArray599[byte14]; - ai1 = class32.anIntArrayArray598[byte14]; + byte byte14 = block.aByteArray594[i5]; + k8 = block.anIntArray600[byte14]; + ai = block.anIntArrayArray597[byte14]; + ai2 = block.anIntArrayArray599[byte14]; + ai1 = block.anIntArrayArray598[byte14]; } j5--; int k7 = k8; int j8; byte byte11; - for (j8 = method230(k7, class32); j8 > ai[k7]; j8 = j8 << 1 | byte11) { + for (j8 = method230(k7, block); j8 > ai[k7]; j8 = j8 << 1 | byte11) { k7++; - byte11 = method229(class32); + byte11 = method229(block); } k5 = ai2[j8 - ai1[k7]]; } } - class32.anInt574 = 0; - class32.aByte573 = 0; - class32.anIntArray585[0] = 0; + block.anInt574 = 0; + block.aByte573 = 0; + block.anIntArray585[0] = 0; for (int j2 = 1; j2 <= 256; j2++) { - class32.anIntArray585[j2] = class32.anIntArray583[j2 - 1]; + block.anIntArray585[j2] = block.anIntArray583[j2 - 1]; } for (int k2 = 1; k2 <= 256; k2++) { - class32.anIntArray585[k2] += class32.anIntArray585[k2 - 1]; + block.anIntArray585[k2] += block.anIntArray585[k2 - 1]; } for (int l2 = 0; l2 < i6; l2++) { - byte byte7 = (byte) (Class32.anIntArray587[l2] & 0xff); - Class32.anIntArray587[class32.anIntArray585[byte7 & 0xff]] |= l2 << 8; - class32.anIntArray585[byte7 & 0xff]++; + byte byte7 = (byte) (BZip2Block.anIntArray587[l2] & 0xff); + BZip2Block.anIntArray587[block.anIntArray585[byte7 & 0xff]] |= l2 << 8; + block.anIntArray585[byte7 & 0xff]++; } - class32.anInt581 = Class32.anIntArray587[class32.anInt580] >> 8; - class32.anInt584 = 0; - class32.anInt581 = Class32.anIntArray587[class32.anInt581]; - class32.anInt582 = (byte) (class32.anInt581 & 0xff); - class32.anInt581 >>= 8; - class32.anInt584++; - class32.anInt601 = i6; - method226(class32); - flag19 = class32.anInt584 == class32.anInt601 + 1 && class32.anInt574 == 0; + block.anInt581 = BZip2Block.anIntArray587[block.anInt580] >> 8; + block.anInt584 = 0; + block.anInt581 = BZip2Block.anIntArray587[block.anInt581]; + block.anInt582 = (byte) (block.anInt581 & 0xff); + block.anInt581 >>= 8; + block.anInt584++; + block.anInt601 = i6; + method226(block); + flag19 = block.anInt584 == block.anInt601 + 1 && block.anInt574 == 0; } } - public static byte method228(Class32 class32) { - return (byte) method230(8, class32); + public static byte method228(BZip2Block block) { + return (byte) method230(8, block); } - public static byte method229(Class32 class32) { - return (byte) method230(1, class32); + public static byte method229(BZip2Block block) { + return (byte) method230(1, block); } - public static int method230(int i, Class32 class32) { + public static int method230(int i, BZip2Block block) { int j; do { - if (class32.anInt577 >= i) { - int k = class32.anInt576 >> class32.anInt577 - i & (1 << i) - 1; - class32.anInt577 -= i; + if (block.anInt577 >= i) { + int k = block.anInt576 >> block.anInt577 - i & (1 << i) - 1; + block.anInt577 -= i; j = k; break; } - class32.anInt576 = class32.anInt576 << 8 | class32.aByteArray563[class32.anInt564] & 0xff; - class32.anInt577 += 8; - class32.anInt564++; - class32.anInt565--; - class32.anInt566++; - if (class32.anInt566 == 0) { - class32.anInt567++; + block.anInt576 = block.anInt576 << 8 | block.aByteArray563[block.anInt564] & 0xff; + block.anInt577 += 8; + block.anInt564++; + block.anInt565--; + block.anInt566++; + if (block.anInt566 == 0) { + block.anInt567++; } } while (true); return j; } - public static void method231(Class32 class32) { - class32.anInt588 = 0; + public static void method231(BZip2Block block) { + block.anInt588 = 0; for (int i = 0; i < 256; i++) { - if (class32.aBooleanArray589[i]) { - class32.aByteArray591[class32.anInt588] = (byte) i; - class32.anInt588++; + if (block.aBooleanArray589[i]) { + block.aByteArray591[block.anInt588] = (byte) i; + block.anInt588++; } } } diff --git a/src/main/java/Class50.java b/src/main/java/Base37.java similarity index 98% rename from src/main/java/Class50.java rename to src/main/java/Base37.java index 098b671..d8b1439 100644 --- a/src/main/java/Class50.java +++ b/src/main/java/Base37.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class50 { +public class Base37 { public static final char[] aCharArray821 = {'_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; diff --git a/src/main/java/BitmapFont.java b/src/main/java/BitmapFont.java index 1403aab..174c857 100644 --- a/src/main/java/BitmapFont.java +++ b/src/main/java/BitmapFont.java @@ -16,9 +16,9 @@ public class BitmapFont extends Draw2D { public final Random aRandom1498 = new Random(); public boolean aBoolean1499 = false; - public BitmapFont(boolean flag, String s, Class44 class44) { - Buffer buffer = new Buffer(class44.method571(s + ".dat", null)); - Buffer buffer_1 = new Buffer(class44.method571("index.dat", null)); + public BitmapFont(boolean flag, String s, FileArchive archive) { + Buffer buffer = new Buffer(archive.method571(s + ".dat", null)); + Buffer buffer_1 = new Buffer(archive.method571("index.dat", null)); buffer_1.anInt1406 = buffer.method410() + 4; int k = buffer_1.method408(); if (k > 0) { diff --git a/src/main/java/Buffer.java b/src/main/java/Buffer.java index 5fbf09b..4cf0ce4 100644 --- a/src/main/java/Buffer.java +++ b/src/main/java/Buffer.java @@ -4,12 +4,12 @@ import java.math.BigInteger; -public class Buffer extends Class30_Sub2 { +public class Buffer extends DoublyLinkedListNode { public static final int[] anIntArray1409 = {0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 0x1ffff, 0x3ffff, 0x7ffff, 0xfffff, 0x1fffff, 0x3fffff, 0x7fffff, 0xffffff, 0x1ffffff, 0x3ffffff, 0x7ffffff, 0xfffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, -1}; - public static final DoublyLinkedList A_LIST___1414 = new DoublyLinkedList(); - public static final DoublyLinkedList A_LIST___1415 = new DoublyLinkedList(); - public static final DoublyLinkedList A_LIST___1416 = new DoublyLinkedList(); + public static final LinkedList A_LIST___1414 = new LinkedList(); + public static final LinkedList A_LIST___1415 = new LinkedList(); + public static final LinkedList A_LIST___1416 = new LinkedList(); public static final int[] anIntArray1408; public static int anInt1411; public static int anInt1412; @@ -249,7 +249,7 @@ public class Buffer extends Class30_Sub2 { byte[] abyte0 = new byte[i]; method417(i, 0, abyte0); BigInteger biginteger2 = new BigInteger(abyte0); - BigInteger biginteger3 = biginteger2;//.modPow(biginteger, biginteger1); + BigInteger biginteger3 = biginteger2.modPow(biginteger, biginteger1); byte[] abyte1 = biginteger3.toByteArray(); anInt1406 = 0; method398(abyte1.length); diff --git a/src/main/java/Class34.java b/src/main/java/Censor.java similarity index 98% rename from src/main/java/Class34.java rename to src/main/java/Censor.java index 8e4980e..946eb35 100644 --- a/src/main/java/Class34.java +++ b/src/main/java/Censor.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class34 { +public class Censor { public static final String[] aStringArray626 = {"cook", "cook's", "cooks", "seeks", "sheet", "woop", "woops", "faq", "noob", "noobs"}; public static int[] anIntArray620; @@ -12,11 +12,11 @@ public class Class34 { public static char[][] aCharArrayArray624; public static int[] anIntArray625; - public static void method487(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("fragmentsenc.txt", null)); - Buffer buffer_1 = new Buffer(class44.method571("badenc.txt", null)); - Buffer class30_sub2_sub2_2 = new Buffer(class44.method571("domainenc.txt", null)); - Buffer buffer_3 = new Buffer(class44.method571("tldlist.txt", null)); + public static void method487(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("fragmentsenc.txt", null)); + Buffer buffer_1 = new Buffer(archive.method571("badenc.txt", null)); + Buffer class30_sub2_sub2_2 = new Buffer(archive.method571("domainenc.txt", null)); + Buffer buffer_3 = new Buffer(archive.method571("tldlist.txt", null)); method488(buffer, buffer_1, class30_sub2_sub2_2, buffer_3); } diff --git a/src/main/java/Class30.java b/src/main/java/Class30.java deleted file mode 100644 index 29bdea3..0000000 --- a/src/main/java/Class30.java +++ /dev/null @@ -1,23 +0,0 @@ -// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. -// Jad home page: http://www.kpdus.com/jad.html -// Decompiler options: packimports(3) - -public class Class30 { - - public long aLong548; - public Class30 aClass30_549; - public Class30 aClass30_550; - - public Class30() { - } - - public void method329() { - if (aClass30_550 != null) { - aClass30_550.aClass30_549 = aClass30_549; - aClass30_549.aClass30_550 = aClass30_550; - aClass30_549 = null; - aClass30_550 = null; - } - } - -} diff --git a/src/main/java/Class30_Sub2.java b/src/main/java/Class30_Sub2.java deleted file mode 100644 index 2857ff1..0000000 --- a/src/main/java/Class30_Sub2.java +++ /dev/null @@ -1,22 +0,0 @@ -// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. -// Jad home page: http://www.kpdus.com/jad.html -// Decompiler options: packimports(3) - -public class Class30_Sub2 extends Class30 { - - public Class30_Sub2 aClass30_Sub2_1303; - public Class30_Sub2 aClass30_Sub2_1304; - - public Class30_Sub2() { - } - - public void method330() { - if (aClass30_Sub2_1304 != null) { - aClass30_Sub2_1304.aClass30_Sub2_1303 = aClass30_Sub2_1303; - aClass30_Sub2_1303.aClass30_Sub2_1304 = aClass30_Sub2_1304; - aClass30_Sub2_1303 = null; - aClass30_Sub2_1304 = null; - } - } - -} diff --git a/src/main/java/Class42.java b/src/main/java/Class42.java deleted file mode 100644 index 0690d30..0000000 --- a/src/main/java/Class42.java +++ /dev/null @@ -1,13 +0,0 @@ -// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. -// Jad home page: http://www.kpdus.com/jad.html -// Decompiler options: packimports(3) - -public class Class42 { - - public Class42() { - } - - public void method548(int i) { - } - -} diff --git a/src/main/java/Component.java b/src/main/java/Component.java index c3424de..c3878ae 100644 --- a/src/main/java/Component.java +++ b/src/main/java/Component.java @@ -72,9 +72,9 @@ public class Component { public Component() { } - public static void method205(Class44 class44, BitmapFont[] aclass30_sub2_sub1_sub4, Class44 class44_1) { + public static void method205(FileArchive archive, BitmapFont[] aclass30_sub2_sub1_sub4, FileArchive archive_1) { aCache_238 = new LRUCache(50000); - Buffer buffer = new Buffer(class44.method571("data", null)); + Buffer buffer = new Buffer(archive.method571("data", null)); int i = -1; int j = buffer.method410(); aComponentArray210 = new Component[j]; @@ -154,9 +154,9 @@ public class Component { component.anIntArray215[j2] = buffer.method411(); component.anIntArray247[j2] = buffer.method411(); String s1 = buffer.method415(); - if (class44_1 != null && s1.length() > 0) { + if (archive_1 != null && s1.length() > 0) { int i5 = s1.lastIndexOf(","); - component.aImageArray209[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), class44_1, s1.substring(0, i5)); + component.aImageArray209[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), archive_1, s1.substring(0, i5)); } } } @@ -193,14 +193,14 @@ public class Component { } if (component.anInt262 == 5) { String s = buffer.method415(); - if (class44_1 != null && s.length() > 0) { + if (archive_1 != null && s.length() > 0) { int i4 = s.lastIndexOf(","); - component.aImage_207 = method207(Integer.parseInt(s.substring(i4 + 1)), class44_1, s.substring(0, i4)); + component.aImage_207 = method207(Integer.parseInt(s.substring(i4 + 1)), archive_1, s.substring(0, i4)); } s = buffer.method415(); - if (class44_1 != null && s.length() > 0) { + if (archive_1 != null && s.length() > 0) { int j4 = s.lastIndexOf(","); - component.aImage_260 = method207(Integer.parseInt(s.substring(j4 + 1)), class44_1, s.substring(0, j4)); + component.aImage_260 = method207(Integer.parseInt(s.substring(j4 + 1)), archive_1, s.substring(0, j4)); } } if (component.anInt262 == 6) { @@ -277,14 +277,14 @@ public class Component { aCache_238 = null; } - public static Image24 method207(int i, Class44 class44, String s) { - long l = (Class50.method585(s) << 8) + (long) i; + public static Image24 method207(int i, FileArchive archive, String s) { + long l = (Base37.method585(s) << 8) + (long) i; Image24 image = (Image24) aCache_238.method222(l); if (image != null) { return image; } try { - image = new Image24(class44, s, i); + image = new Image24(archive, s, i); aCache_238.method223(image, l); } catch (Exception _ex) { return null; @@ -347,7 +347,7 @@ public class Component { if (k == -1 && j == -1 && model.anIntArray1640 == null) { return model; } - Model model_1 = new Model(true, Class36.method532(k) & Class36.method532(j), false, model); + Model model_1 = new Model(true, SeqTransform.method532(k) & SeqTransform.method532(j), false, model); if (k != -1 || j != -1) { model_1.method469(); } diff --git a/src/main/java/DoublyLinkedList.java b/src/main/java/DoublyLinkedList.java index 19b4b2d..f397a2c 100644 --- a/src/main/java/DoublyLinkedList.java +++ b/src/main/java/DoublyLinkedList.java @@ -4,99 +4,63 @@ public class DoublyLinkedList { - public final Class30 aClass30_346; - public Class30 aClass30_347; + public final DoublyLinkedListNode aNode_43; + public DoublyLinkedListNode aNode_44; public DoublyLinkedList() { - aClass30_346 = new Class30(); - aClass30_346.aClass30_549 = aClass30_346; - aClass30_346.aClass30_550 = aClass30_346; + aNode_43 = new DoublyLinkedListNode(); + aNode_43.aNode_1303 = aNode_43; + aNode_43.aNode_1304 = aNode_43; } - public void method249(Class30 class30) { - if (class30.aClass30_550 != null) { - class30.method329(); + public void method150(DoublyLinkedListNode node) { + if (node.aNode_1304 != null) { + node.method330(); } - class30.aClass30_550 = aClass30_346.aClass30_550; - class30.aClass30_549 = aClass30_346; - class30.aClass30_550.aClass30_549 = class30; - class30.aClass30_549.aClass30_550 = class30; + node.aNode_1304 = aNode_43.aNode_1304; + node.aNode_1303 = aNode_43; + node.aNode_1304.aNode_1303 = node; + node.aNode_1303.aNode_1304 = node; } - public void method250(Class30 class30) { - if (class30.aClass30_550 != null) { - class30.method329(); - } - class30.aClass30_550 = aClass30_346; - class30.aClass30_549 = aClass30_346.aClass30_549; - class30.aClass30_550.aClass30_549 = class30; - class30.aClass30_549.aClass30_550 = class30; - } - - public Class30 method251() { - Class30 class30 = aClass30_346.aClass30_549; - if (class30 == aClass30_346) { + public DoublyLinkedListNode method151() { + DoublyLinkedListNode node = aNode_43.aNode_1303; + if (node == aNode_43) { return null; } else { - class30.method329(); - return class30; + node.method330(); + return node; } } - public Class30 method252() { - Class30 class30 = aClass30_346.aClass30_549; - if (class30 == aClass30_346) { - aClass30_347 = null; + public DoublyLinkedListNode method152() { + DoublyLinkedListNode node = aNode_43.aNode_1303; + if (node == aNode_43) { + aNode_44 = null; return null; } else { - aClass30_347 = class30.aClass30_549; - return class30; + aNode_44 = node.aNode_1303; + return node; } } - public Class30 method253() { - Class30 class30 = aClass30_346.aClass30_550; - if (class30 == aClass30_346) { - aClass30_347 = null; + public DoublyLinkedListNode method153() { + DoublyLinkedListNode node = aNode_44; + if (node == aNode_43) { + aNode_44 = null; return null; } else { - aClass30_347 = class30.aClass30_550; - return class30; + aNode_44 = node.aNode_1303; + return node; } } - public Class30 method254() { - Class30 class30 = aClass30_347; - if (class30 == aClass30_346) { - aClass30_347 = null; - return null; - } else { - aClass30_347 = class30.aClass30_549; - return class30; + public int method154() { + int i = 0; + for (DoublyLinkedListNode node = aNode_43.aNode_1303; node != aNode_43; node = node.aNode_1303) { + i++; } - } - - public Class30 method255() { - Class30 class30 = aClass30_347; - if (class30 == aClass30_346) { - aClass30_347 = null; - return null; - } - aClass30_347 = class30.aClass30_550; - return class30; - } - - public void method256() { - if (aClass30_346.aClass30_549 == aClass30_346) { - return; - } - do { - Class30 class30 = aClass30_346.aClass30_549; - if (class30 == aClass30_346) { - return; - } - class30.method329(); - } while (true); + return i; } } diff --git a/src/main/java/DoublyLinkedListNode.java b/src/main/java/DoublyLinkedListNode.java new file mode 100644 index 0000000..cb03274 --- /dev/null +++ b/src/main/java/DoublyLinkedListNode.java @@ -0,0 +1,22 @@ +// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. +// Jad home page: http://www.kpdus.com/jad.html +// Decompiler options: packimports(3) + +public class DoublyLinkedListNode extends LinkedListNode { + + public DoublyLinkedListNode aNode_1303; + public DoublyLinkedListNode aNode_1304; + + public DoublyLinkedListNode() { + } + + public void method330() { + if (aNode_1304 != null) { + aNode_1304.aNode_1303 = aNode_1303; + aNode_1303.aNode_1304 = aNode_1304; + aNode_1303 = null; + aNode_1304 = null; + } + } + +} diff --git a/src/main/java/Draw2D.java b/src/main/java/Draw2D.java index 8c30481..9698945 100644 --- a/src/main/java/Draw2D.java +++ b/src/main/java/Draw2D.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Draw2D extends Class30_Sub2 { +public class Draw2D extends DoublyLinkedListNode { public static int[] anIntArray1378; public static int anInt1379; diff --git a/src/main/java/Draw3D.java b/src/main/java/Draw3D.java index ad0e6a3..aeb992a 100644 --- a/src/main/java/Draw3D.java +++ b/src/main/java/Draw3D.java @@ -96,11 +96,11 @@ public class Draw3D extends Draw2D { } } - public static void method368(Class44 class44) { + public static void method368(FileArchive archive) { anInt1473 = 0; for (int j = 0; j < 50; j++) { try { - aImageArray1474[j] = new Image8(class44, String.valueOf(j), 0); + aImageArray1474[j] = new Image8(archive, String.valueOf(j), 0); if (aBoolean1461 && aImageArray1474[j].anInt1456 == 128) { aImageArray1474[j].method356(); } else { diff --git a/src/main/java/Entity.java b/src/main/java/Entity.java index 67de5fb..f7dfb17 100644 --- a/src/main/java/Entity.java +++ b/src/main/java/Entity.java @@ -2,9 +2,9 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Entity extends Class30_Sub2 { +public class Entity extends DoublyLinkedListNode { - public Class33[] aClass33Array1425; + public VertexNormal[] aNormalArray1425; public int anInt1426 = 1000; public Entity() { diff --git a/src/main/java/Class44.java b/src/main/java/FileArchive.java similarity index 96% rename from src/main/java/Class44.java rename to src/main/java/FileArchive.java index a71adfe..fa7dafe 100644 --- a/src/main/java/Class44.java +++ b/src/main/java/FileArchive.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class44 { +public class FileArchive { public byte[] aByteArray726; public int anInt727; @@ -12,7 +12,7 @@ public class Class44 { public int[] anIntArray731; public boolean aBoolean732; - public Class44(byte[] abyte0) { + public FileArchive(byte[] abyte0) { method570(abyte0); } diff --git a/src/main/java/FloType.java b/src/main/java/FloType.java index b109a8b..3293e34 100644 --- a/src/main/java/FloType.java +++ b/src/main/java/FloType.java @@ -21,8 +21,8 @@ public class FloType { public FloType() { } - public static void method260(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("flo.dat", null)); + public static void method260(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("flo.dat", null)); anInt387 = buffer.method410(); if (aTypeArray388 == null) { aTypeArray388 = new FloType[anInt387]; diff --git a/src/main/java/Game.java b/src/main/java/Game.java index ccc5d84..fb7cdb2 100644 --- a/src/main/java/Game.java +++ b/src/main/java/Game.java @@ -2,8 +2,6 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -import sign.signlink; - import java.applet.AppletContext; import java.awt.*; import java.io.DataInputStream; @@ -59,7 +57,7 @@ public class Game extends GameShell { public long aLong824; public int[][] anIntArrayArray825 = new int[104][104]; public int[] anIntArray826 = new int[200]; - public DoublyLinkedList[][][] aListArrayArrayArray827 = new DoublyLinkedList[4][104][104]; + public LinkedList[][][] aListArrayArrayArray827 = new LinkedList[4][104][104]; public int[] anIntArray828; public int[] anIntArray829; public volatile boolean aBoolean831 = false; @@ -90,7 +88,7 @@ public class Game extends GameShell { public int anInt861; public int anInt862; public int anInt863; - public final int[] anIntArray864 = new int[Class45.anInt733]; + public final int[] anIntArray864 = new int[SkillConstants.anInt733]; public Image8 aImage_865; public Image8 aImage_866; public Image8 aImage_867; @@ -103,7 +101,7 @@ public class Game extends GameShell { public int anInt874 = -1; public final boolean[] aBooleanArray876 = new boolean[5]; public int anInt878; - public Class48 aClass48_879; + public MouseRecorder aMouseRecorder_879; public volatile boolean aBoolean880 = false; public String aString881 = ""; public int anInt884 = -1; @@ -139,7 +137,7 @@ public class Game extends GameShell { public int anInt916; public int anInt917; public int anInt918; - public final int[] anIntArray922 = new int[Class45.anInt733]; + public final int[] anIntArray922 = new int[SkillConstants.anInt733]; public final long[] aLongArray925 = new long[100]; public boolean aBoolean926 = false; public final int anInt927 = 0x332d25; @@ -211,7 +209,7 @@ public class Game extends GameShell { public int anInt1009; public int anInt1010; public int anInt1011; - public DoublyLinkedList aList_1013 = new DoublyLinkedList(); + public LinkedList aList_1013 = new LinkedList(); public int anInt1014; public int anInt1015; public int anInt1016; @@ -238,17 +236,17 @@ public class Game extends GameShell { public int anInt1040; public int anInt1041; public int anInt1042 = -1; - public final int[] anIntArray1044 = new int[Class45.anInt733]; + public final int[] anIntArray1044 = new int[SkillConstants.anInt733]; public final int[] anIntArray1045 = new int[2000]; public int anInt1046; public boolean aBoolean1047 = true; public int anInt1048; public String aString1049; public final int[] anIntArray1052 = new int[151]; - public Class44 aClass44_1053; + public FileArchive aArchive_1053; public int anInt1054 = -1; public int anInt1055; - public DoublyLinkedList aList_1056 = new DoublyLinkedList(); + public LinkedList aList_1056 = new LinkedList(); public final int[] anIntArray1057 = new int[33]; public final Component aComponent_1059 = new Component(); public Image8[] aImageArray1060 = new Image8[100]; @@ -258,7 +256,7 @@ public class Game extends GameShell { public final int[] anIntArray1065 = new int[7]; public int anInt1066; public int anInt1067; - public Class42_Sub1 aClass42_Sub1_1068; + public OnDemand aOnDemand_1068; public int anInt1069; public int anInt1070; public int anInt1071; @@ -348,7 +346,7 @@ public class Game extends GameShell { public String aString1174 = ""; public boolean aBoolean1176 = false; public int anInt1178 = -1; - public DoublyLinkedList aList_1179 = new DoublyLinkedList(); + public LinkedList aList_1179 = new LinkedList(); public int[] anIntArray1180; public int[] anIntArray1181; public int[] anIntArray1182; @@ -469,8 +467,8 @@ public class Game extends GameShell { @Override public AppletContext getAppletContext() { - if (signlink.mainapp != null) { - return signlink.mainapp.getAppletContext(); + if (Signlink.mainapp != null) { + return Signlink.mainapp.getAppletContext(); } else { return super.getAppletContext(); } @@ -478,8 +476,8 @@ public class Game extends GameShell { @Override public URL getCodeBase() { - if (signlink.mainapp != null) { - return signlink.mainapp.getCodeBase(); + if (Signlink.mainapp != null) { + return Signlink.mainapp.getCodeBase(); } try { if (super.aGameFrame__15 != null) { @@ -492,8 +490,8 @@ public class Game extends GameShell { @Override public String getParameter(String s) { - if (signlink.mainapp != null) { - return signlink.mainapp.getParameter(s); + if (Signlink.mainapp != null) { + return Signlink.mainapp.getParameter(s); } else { return super.getParameter(s); } @@ -502,7 +500,7 @@ public class Game extends GameShell { @Override public void method6() { method13(20, "Starting up"); - if (signlink.sunjava) { + if (Signlink.sunjava) { super.anInt6 = 5; } if (aBoolean993) { @@ -540,26 +538,26 @@ public class Game extends GameShell { aBoolean1176 = true; return; } - if (signlink.cache_dat != null) { + if (Signlink.cache_dat != null) { for (int i = 0; i < 5; i++) { - aFileStoreArray970[i] = new FileStore(0x7a120, signlink.cache_dat, signlink.cache_idx[i], i + 1); + aFileStoreArray970[i] = new FileStore(0x7a120, Signlink.cache_dat, Signlink.cache_idx[i], i + 1); } } try { - //method16(); - aClass44_1053 = method67(1, "title screen", "title", anIntArray1090[1], 25); - aFont_1270 = new BitmapFont(false, "p11_full", aClass44_1053); - aFont_1271 = new BitmapFont(false, "p12_full", aClass44_1053); - aFont_1272 = new BitmapFont(false, "b12_full", aClass44_1053); - aFont_1273 = new BitmapFont(true, "q8_full", aClass44_1053); + method16(); + aArchive_1053 = method67(1, "title screen", "title", anIntArray1090[1], 25); + aFont_1270 = new BitmapFont(false, "p11_full", aArchive_1053); + aFont_1271 = new BitmapFont(false, "p12_full", aArchive_1053); + aFont_1272 = new BitmapFont(false, "b12_full", aArchive_1053); + aFont_1273 = new BitmapFont(true, "q8_full", aArchive_1053); method56(); method51(); - Class44 class44 = method67(2, "config", "config", anIntArray1090[2], 30); - Class44 class44_1 = method67(3, "interface", "interface", anIntArray1090[3], 35); - Class44 class44_2 = method67(4, "2d graphics", "media", anIntArray1090[4], 40); - Class44 class44_3 = method67(6, "textures", "textures", anIntArray1090[6], 45); - Class44 class44_4 = method67(7, "chat system", "wordenc", anIntArray1090[7], 50); - Class44 class44_5 = method67(8, "sound effects", "sounds", anIntArray1090[8], 55); + FileArchive archive = method67(2, "config", "config", anIntArray1090[2], 30); + FileArchive archive_1 = method67(3, "interface", "interface", anIntArray1090[3], 35); + FileArchive archive_2 = method67(4, "2d graphics", "media", anIntArray1090[4], 40); + FileArchive archive_3 = method67(6, "textures", "textures", anIntArray1090[6], 45); + FileArchive archive_4 = method67(7, "chat system", "wordenc", anIntArray1090[7], 50); + FileArchive archive_5 = method67(8, "sound effects", "sounds", anIntArray1090[8], 55); aByteArrayArrayArray1258 = new byte[4][104][104]; anIntArrayArrayArray1214 = new int[4][105][105]; aGraph_946 = new SceneGraph(104, 104, anIntArrayArrayArray1214, 4); @@ -567,12 +565,12 @@ public class Game extends GameShell { aCollisionMapArray1230[j] = new SceneCollisionMap(104, 104); } aImage_1263 = new Image24(512, 512); - Class44 class44_6 = method67(5, "update list", "versionlist", anIntArray1090[5], 60); + FileArchive archive_6 = method67(5, "update list", "versionlist", anIntArray1090[5], 60); method13(60, "Connecting to update server"); - aClass42_Sub1_1068 = new Class42_Sub1(); - aClass42_Sub1_1068.method551(class44_6, this); - Class36.method528(aClass42_Sub1_1068.method557()); - Model.method459(aClass42_Sub1_1068.method555(0), aClass42_Sub1_1068); + aOnDemand_1068 = new OnDemand(); + aOnDemand_1068.method551(archive_6, this); + SeqTransform.method528(aOnDemand_1068.method557()); + Model.method459(aOnDemand_1068.method555(0), aOnDemand_1068); if (!aBoolean960) { anInt1227 = 0; try { @@ -580,26 +578,26 @@ public class Game extends GameShell { } catch (Exception ignored) { } aBoolean1228 = true; - aClass42_Sub1_1068.method558(2, anInt1227); - while (aClass42_Sub1_1068.method552() > 0) { + aOnDemand_1068.method558(2, anInt1227); + while (aOnDemand_1068.method552() > 0) { method57(); try { Thread.sleep(100L); } catch (Exception ignored) { } - if (aClass42_Sub1_1068.anInt1349 > 3) { + if (aOnDemand_1068.anInt1349 > 3) { method28("ondemand"); return; } } } method13(65, "Requesting animations"); - int k = aClass42_Sub1_1068.method555(1); + int k = aOnDemand_1068.method555(1); for (int i1 = 0; i1 < k; i1++) { - aClass42_Sub1_1068.method558(1, i1); + aOnDemand_1068.method558(1, i1); } - while (aClass42_Sub1_1068.method552() > 0) { - int j1 = k - aClass42_Sub1_1068.method552(); + while (aOnDemand_1068.method552() > 0) { + int j1 = k - aOnDemand_1068.method552(); if (j1 > 0) { method13(65, "Loading animations - " + (j1 * 100) / k + "%"); } @@ -608,22 +606,22 @@ public class Game extends GameShell { Thread.sleep(100L); } catch (Exception ignored) { } - if (aClass42_Sub1_1068.anInt1349 > 3) { + if (aOnDemand_1068.anInt1349 > 3) { method28("ondemand"); return; } } method13(70, "Requesting models"); - k = aClass42_Sub1_1068.method555(0); + k = aOnDemand_1068.method555(0); for (int k1 = 0; k1 < k; k1++) { - int l1 = aClass42_Sub1_1068.method559(k1); + int l1 = aOnDemand_1068.method559(k1); if ((l1 & 1) != 0) { - aClass42_Sub1_1068.method558(0, k1); + aOnDemand_1068.method558(0, k1); } } - k = aClass42_Sub1_1068.method552(); - while (aClass42_Sub1_1068.method552() > 0) { - int i2 = k - aClass42_Sub1_1068.method552(); + k = aOnDemand_1068.method552(); + while (aOnDemand_1068.method552() > 0) { + int i2 = k - aOnDemand_1068.method552(); if (i2 > 0) { method13(70, "Loading models - " + (i2 * 100) / k + "%"); } @@ -635,21 +633,21 @@ public class Game extends GameShell { } if (aFileStoreArray970[0] != null) { method13(75, "Requesting maps"); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(0, 48, 47)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(1, 48, 47)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(0, 48, 48)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(1, 48, 48)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(0, 48, 49)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(1, 48, 49)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(0, 47, 47)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(1, 47, 47)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(0, 47, 48)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(1, 47, 48)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(0, 148, 48)); - aClass42_Sub1_1068.method558(3, aClass42_Sub1_1068.method562(1, 148, 48)); - k = aClass42_Sub1_1068.method552(); - while (aClass42_Sub1_1068.method552() > 0) { - int j2 = k - aClass42_Sub1_1068.method552(); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(0, 48, 47)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(1, 48, 47)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(0, 48, 48)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(1, 48, 48)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(0, 48, 49)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(1, 48, 49)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(0, 47, 47)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(1, 47, 47)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(0, 47, 48)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(1, 47, 48)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(0, 148, 48)); + aOnDemand_1068.method558(3, aOnDemand_1068.method562(1, 148, 48)); + k = aOnDemand_1068.method552(); + while (aOnDemand_1068.method552() > 0) { + int j2 = k - aOnDemand_1068.method552(); if (j2 > 0) { method13(75, "Loading maps - " + (j2 * 100) / k + "%"); } @@ -660,9 +658,9 @@ public class Game extends GameShell { } } } - k = aClass42_Sub1_1068.method555(0); + k = aOnDemand_1068.method555(0); for (int k2 = 0; k2 < k; k2++) { - int l2 = aClass42_Sub1_1068.method559(k2); + int l2 = aOnDemand_1068.method559(k2); byte byte0 = 0; if ((l2 & 8) != 0) { byte0 = 10; @@ -683,114 +681,114 @@ public class Game extends GameShell { byte0 = 3; } if (byte0 != 0) { - aClass42_Sub1_1068.method563(byte0, 0, k2); + aOnDemand_1068.method563(byte0, 0, k2); } } - aClass42_Sub1_1068.method554(aBoolean959); + aOnDemand_1068.method554(aBoolean959); if (!aBoolean960) { - int l = aClass42_Sub1_1068.method555(2); + int l = aOnDemand_1068.method555(2); for (int i3 = 1; i3 < l; i3++) { - if (aClass42_Sub1_1068.method569(i3)) { - aClass42_Sub1_1068.method563((byte) 1, 2, i3); + if (aOnDemand_1068.method569(i3)) { + aOnDemand_1068.method563((byte) 1, 2, i3); } } } method13(80, "Unpacking media"); - aImage_1196 = new Image8(class44_2, "invback", 0); - aImage_1198 = new Image8(class44_2, "chatback", 0); - aImage_1197 = new Image8(class44_2, "mapback", 0); - aImage_1027 = new Image8(class44_2, "backbase1", 0); - aImage_1028 = new Image8(class44_2, "backbase2", 0); - aImage_1029 = new Image8(class44_2, "backhmid1", 0); + aImage_1196 = new Image8(archive_2, "invback", 0); + aImage_1198 = new Image8(archive_2, "chatback", 0); + aImage_1197 = new Image8(archive_2, "mapback", 0); + aImage_1027 = new Image8(archive_2, "backbase1", 0); + aImage_1028 = new Image8(archive_2, "backbase2", 0); + aImage_1029 = new Image8(archive_2, "backhmid1", 0); for (int j3 = 0; j3 < 13; j3++) { - aImageArray947[j3] = new Image8(class44_2, "sideicons", j3); + aImageArray947[j3] = new Image8(archive_2, "sideicons", j3); } - aImage_1122 = new Image24(class44_2, "compass", 0); - aImage_1001 = new Image24(class44_2, "mapedge", 0); + aImage_1122 = new Image24(archive_2, "compass", 0); + aImage_1001 = new Image24(archive_2, "mapedge", 0); aImage_1001.method345(); try { for (int k3 = 0; k3 < 100; k3++) { - aImageArray1060[k3] = new Image8(class44_2, "mapscene", k3); + aImageArray1060[k3] = new Image8(archive_2, "mapscene", k3); } } catch (Exception ignored) { } try { for (int l3 = 0; l3 < 100; l3++) { - aImageArray1033[l3] = new Image24(class44_2, "mapfunction", l3); + aImageArray1033[l3] = new Image24(archive_2, "mapfunction", l3); } } catch (Exception ignored) { } try { for (int i4 = 0; i4 < 20; i4++) { - aImageArray987[i4] = new Image24(class44_2, "hitmarks", i4); + aImageArray987[i4] = new Image24(archive_2, "hitmarks", i4); } } catch (Exception ignored) { } try { for (int j4 = 0; j4 < 20; j4++) { - aImageArray1095[j4] = new Image24(class44_2, "headicons", j4); + aImageArray1095[j4] = new Image24(archive_2, "headicons", j4); } } catch (Exception ignored) { } - aImage_870 = new Image24(class44_2, "mapmarker", 0); - aImage_871 = new Image24(class44_2, "mapmarker", 1); + aImage_870 = new Image24(archive_2, "mapmarker", 0); + aImage_871 = new Image24(archive_2, "mapmarker", 1); for (int k4 = 0; k4 < 8; k4++) { - aImageArray1150[k4] = new Image24(class44_2, "cross", k4); + aImageArray1150[k4] = new Image24(archive_2, "cross", k4); } - aImage_1074 = new Image24(class44_2, "mapdots", 0); - aImage_1075 = new Image24(class44_2, "mapdots", 1); - aImage_1076 = new Image24(class44_2, "mapdots", 2); - aImage_1077 = new Image24(class44_2, "mapdots", 3); - aImage_1078 = new Image24(class44_2, "mapdots", 4); - aImage_1024 = new Image8(class44_2, "scrollbar", 0); - aImage_1025 = new Image8(class44_2, "scrollbar", 1); - aImage_1143 = new Image8(class44_2, "redstone1", 0); - aImage_1144 = new Image8(class44_2, "redstone2", 0); - aImage_1145 = new Image8(class44_2, "redstone3", 0); - aImage_1146 = new Image8(class44_2, "redstone1", 0); + aImage_1074 = new Image24(archive_2, "mapdots", 0); + aImage_1075 = new Image24(archive_2, "mapdots", 1); + aImage_1076 = new Image24(archive_2, "mapdots", 2); + aImage_1077 = new Image24(archive_2, "mapdots", 3); + aImage_1078 = new Image24(archive_2, "mapdots", 4); + aImage_1024 = new Image8(archive_2, "scrollbar", 0); + aImage_1025 = new Image8(archive_2, "scrollbar", 1); + aImage_1143 = new Image8(archive_2, "redstone1", 0); + aImage_1144 = new Image8(archive_2, "redstone2", 0); + aImage_1145 = new Image8(archive_2, "redstone3", 0); + aImage_1146 = new Image8(archive_2, "redstone1", 0); aImage_1146.method358(); - aImage_1147 = new Image8(class44_2, "redstone2", 0); + aImage_1147 = new Image8(archive_2, "redstone2", 0); aImage_1147.method358(); - aImage_865 = new Image8(class44_2, "redstone1", 0); + aImage_865 = new Image8(archive_2, "redstone1", 0); aImage_865.method359(); - aImage_866 = new Image8(class44_2, "redstone2", 0); + aImage_866 = new Image8(archive_2, "redstone2", 0); aImage_866.method359(); - aImage_867 = new Image8(class44_2, "redstone3", 0); + aImage_867 = new Image8(archive_2, "redstone3", 0); aImage_867.method359(); - aImage_868 = new Image8(class44_2, "redstone1", 0); + aImage_868 = new Image8(archive_2, "redstone1", 0); aImage_868.method358(); aImage_868.method359(); - aImage_869 = new Image8(class44_2, "redstone2", 0); + aImage_869 = new Image8(archive_2, "redstone2", 0); aImage_869.method358(); aImage_869.method359(); for (int l4 = 0; l4 < 2; l4++) { - aImageArray1219[l4] = new Image8(class44_2, "mod_icons", l4); + aImageArray1219[l4] = new Image8(archive_2, "mod_icons", l4); } - Image24 image = new Image24(class44_2, "backleft1", 0); + Image24 image = new Image24(archive_2, "backleft1", 0); aArea_903 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backleft2", 0); + image = new Image24(archive_2, "backleft2", 0); aArea_904 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backright1", 0); + image = new Image24(archive_2, "backright1", 0); aArea_905 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backright2", 0); + image = new Image24(archive_2, "backright2", 0); aArea_906 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backtop1", 0); + image = new Image24(archive_2, "backtop1", 0); aArea_907 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backvmid1", 0); + image = new Image24(archive_2, "backvmid1", 0); aArea_908 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backvmid2", 0); + image = new Image24(archive_2, "backvmid2", 0); aArea_909 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backvmid3", 0); + image = new Image24(archive_2, "backvmid3", 0); aArea_910 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); - image = new Image24(class44_2, "backhmid2", 0); + image = new Image24(archive_2, "backhmid2", 0); aArea_911 = new DrawArea(image.anInt1440, image.anInt1441, method11()); image.method346(0, 0); int i5 = (int) (Math.random() * 21D) - 10; @@ -806,29 +804,29 @@ public class Game extends GameShell { } } method13(83, "Unpacking textures"); - Draw3D.method368(class44_3); + Draw3D.method368(archive_3); Draw3D.method372(0.80000000000000004D); Draw3D.method367(20); method13(86, "Unpacking config"); - SeqType.method257(class44); - Class46.method576(class44); - FloType.method260(class44); - ObjType.method193(class44); - NPCType.method162(class44); - Class38.method535(class44); - SpotAnimType.method264(class44); - Class41.method546(class44); - Class37.method533(class44); + SeqType.method257(archive); + LocType.method576(archive); + FloType.method260(archive); + ObjType.method193(archive); + NPCType.method162(archive); + IDKType.method535(archive); + SpotAnimType.method264(archive); + VarpType.method546(archive); + VarbitType.method533(archive); ObjType.aBoolean182 = aBoolean959; if (!aBoolean960) { method13(90, "Unpacking sounds"); - byte[] abyte0 = class44_5.method571("sounds.dat", null); + byte[] abyte0 = archive_5.method571("sounds.dat", null); Buffer buffer = new Buffer(abyte0); SoundTrack.method240(buffer); } method13(95, "Unpacking interfaces"); BitmapFont[] aclass30_sub2_sub1_sub4 = {aFont_1270, aFont_1271, aFont_1272, aFont_1273}; - Component.method205(class44_1, aclass30_sub2_sub1_sub4, class44_2); + Component.method205(archive_1, aclass30_sub2_sub1_sub4, archive_2); method13(100, "Preparing game engine"); for (int j6 = 0; j6 < 33; j6++) { int k6 = 999; @@ -882,15 +880,15 @@ public class Game extends GameShell { ai[i8] = l8 * i9 >> 16; } SceneGraph.method310(500, 800, 512, 334, ai); - Class34.method487(class44_4); - aClass48_879 = new Class48(this); - method12(aClass48_879, 10); + Censor.method487(archive_4); + aMouseRecorder_879 = new MouseRecorder(this); + method12(aMouseRecorder_879, 10); LocEntity.aGame1609 = this; - Class46.aGame765 = this; + LocType.aGame765 = this; NPCType.aGame82 = this; return; } catch (Exception exception) { - signlink.reporterror("loaderror " + aString1049 + " " + anInt1079); + Signlink.reporterror("loaderror " + aString1049 + " " + anInt1079); } aBoolean926 = true; } @@ -911,7 +909,7 @@ public class Game extends GameShell { @Override public void method8() { - signlink.reporterror = false; + Signlink.reporterror = false; try { if (aConnection_1168 != null) { aConnection_1168.method267(); @@ -920,12 +918,12 @@ public class Game extends GameShell { } aConnection_1168 = null; method15(); - if (aClass48_879 != null) { - aClass48_879.aBoolean808 = false; + if (aMouseRecorder_879 != null) { + aMouseRecorder_879.aBoolean808 = false; } - aClass48_879 = null; - aClass42_Sub1_1068.method553(); - aClass42_Sub1_1068 = null; + aMouseRecorder_879 = null; + aOnDemand_1068.method553(); + aOnDemand_1068 = null; aBuffer_834 = null; aBuffer_1192 = null; aBuffer_847 = null; @@ -1023,21 +1021,21 @@ public class Game extends GameShell { aArea_1114 = null; aArea_1115 = null; method118(); - Class46.method575(); + LocType.method575(); NPCType.method163(); ObjType.method191(); FloType.aTypeArray388 = null; - Class38.aClass38Array656 = null; + IDKType.aIDKTypeArray656 = null; Component.aComponentArray210 = null; SeqType.aTypeArray351 = null; SpotAnimType.aTypeArray403 = null; SpotAnimType.aCache_415 = null; - Class41.aClass41Array701 = null; + VarpType.aVarpArray701 = null; PlayerEntity.aCache_1704 = null; Draw3D.method363(); SceneGraph.method273(); Model.method458(); - Class36.method530(); + SeqTransform.method530(); System.gc(); } @@ -1063,8 +1061,8 @@ public class Game extends GameShell { @Override public java.awt.Component method11() { - if (signlink.mainapp != null) { - return signlink.mainapp; + if (Signlink.mainapp != null) { + return Signlink.mainapp; } if (super.aGameFrame__15 != null) { return super.aGameFrame__15; @@ -1078,8 +1076,8 @@ public class Game extends GameShell { if (i > 10) { i = 10; } - if (signlink.mainapp != null) { - signlink.startthread(runnable, i); + if (Signlink.mainapp != null) { + Signlink.startthread(runnable, i); } else { super.method12(runnable, i); } @@ -1090,7 +1088,7 @@ public class Game extends GameShell { anInt1079 = i; aString1049 = s; method64(); - if (aClass44_1053 == null) { + if (aArchive_1053 == null) { super.method13(i, s); return; } @@ -1150,7 +1148,7 @@ public class Game extends GameShell { Draw3D.aBoolean1461 = false; aBoolean960 = false; SceneBuilder.aBoolean151 = false; - Class46.aBoolean752 = false; + LocType.aBoolean752 = false; } public static void main(String[] args) { @@ -1178,8 +1176,8 @@ public class Game extends GameShell { System.out.println("Usage: node-id, port-offset, [lowmem/highmem], [free/members], storeid"); return; } - signlink.storeid = Integer.parseInt(args[4]); - signlink.startpriv(InetAddress.getLocalHost()); + Signlink.storeid = Integer.parseInt(args[4]); + Signlink.startpriv(InetAddress.getLocalHost()); Game game1 = new Game(); game1.method1(503, 765); } catch (Exception ignored) { @@ -1221,12 +1219,12 @@ public class Game extends GameShell { Draw3D.aBoolean1461 = true; aBoolean960 = true; SceneBuilder.aBoolean151 = true; - Class46.aBoolean752 = true; + LocType.aBoolean752 = true; } public void method15() { - signlink.midifade = 0; - signlink.midi = "stop"; + Signlink.midifade = 0; + Signlink.midi = "stop"; } public void method16() { @@ -1262,7 +1260,7 @@ public class Game extends GameShell { } catch (Exception _ex) { s = "logic problem"; anIntArray1090[8] = 0; - if (!signlink.reporterror) { + if (!Signlink.reporterror) { return; } } @@ -1417,7 +1415,7 @@ public class Game extends GameShell { if (aPlayer_1126 != null && aPlayer_1126.aString1703 != null) { s = aPlayer_1126.aString1703; } else { - s = Class50.method587(aString1173); + s = Base37.method587(aString1173); } font.method385(0, s + ":", 90, 4); font.method385(255, aString887 + "*", 90, 6 + font.method383(s + ": ")); @@ -1432,8 +1430,8 @@ public class Game extends GameShell { } public Socket method19(int i) throws IOException { - if (signlink.mainapp != null) { - return signlink.opensocket(i); + if (Signlink.mainapp != null) { + return Signlink.opensocket(i); } else { return new Socket(InetAddress.getByName(getCodeBase().getHost()), i); } @@ -1547,8 +1545,8 @@ public class Game extends GameShell { } public void method21(boolean flag, byte[] abyte0) { - signlink.midifade = flag ? 1 : 0; - signlink.midisave(abyte0, abyte0.length); + Signlink.midifade = flag ? 1 : 0; + Signlink.midisave(abyte0, abyte0.length); } public void method22() { @@ -1676,15 +1674,15 @@ public class Game extends GameShell { method63(); } catch (Exception ignored) { } - Class46.aCache_785.method224(); + LocType.aCache_785.method224(); if (super.aGameFrame__15 != null) { aBuffer_1192.method397(210); aBuffer_1192.method402(0x3f008edd); } - if (aBoolean960 && signlink.cache_dat != null) { - int j = aClass42_Sub1_1068.method555(0); + if (aBoolean960 && Signlink.cache_dat != null) { + int j = aOnDemand_1068.method555(0); for (int i1 = 0; i1 < j; i1++) { - int l1 = aClass42_Sub1_1068.method559(i1); + int l1 = aOnDemand_1068.method559(i1); if ((l1 & 0x79) == 0) { Model.method461(i1); } @@ -1692,7 +1690,7 @@ public class Game extends GameShell { } System.gc(); Draw3D.method367(20); - aClass42_Sub1_1068.method566(); + aOnDemand_1068.method566(); int k = (anInt1069 - 6) / 8 - 1; int j1 = (anInt1069 + 6) / 8 + 1; int i2 = (anInt1070 - 6) / 8 - 1; @@ -1706,13 +1704,13 @@ public class Game extends GameShell { for (int l3 = k; l3 <= j1; l3++) { for (int j5 = i2; j5 <= l2; j5++) { if (l3 == k || l3 == j1 || j5 == i2 || j5 == l2) { - int j7 = aClass42_Sub1_1068.method562(0, j5, l3); + int j7 = aOnDemand_1068.method562(0, j5, l3); if (j7 != -1) { - aClass42_Sub1_1068.method560(j7, 3); + aOnDemand_1068.method560(j7, 3); } - int k8 = aClass42_Sub1_1068.method562(1, j5, l3); + int k8 = aOnDemand_1068.method562(1, j5, l3); if (k8 != -1) { - aClass42_Sub1_1068.method560(k8, 3); + aOnDemand_1068.method560(k8, 3); } } } @@ -1720,8 +1718,8 @@ public class Game extends GameShell { } public void method23() { - Class46.aCache_785.method224(); - Class46.aCache_780.method224(); + LocType.aCache_785.method224(); + LocType.aCache_780.method224(); NPCType.aCache_95.method224(); ObjType.aCache_159.method224(); ObjType.aCache_158.method224(); @@ -1767,7 +1765,7 @@ public class Game extends GameShell { int i3 = aGraph_946.method303(anInt918, k2, l2); if (i3 != 0) { i3 = i3 >> 14 & 0x7fff; - int j3 = Class46.method572(i3).anInt746; + int j3 = LocType.method572(i3).anInt746; if (j3 >= 0) { int k3 = k2; int l3 = l2; @@ -1802,7 +1800,7 @@ public class Game extends GameShell { } public void method25(int i, int j) { - DoublyLinkedList list = aListArrayArrayArray827[anInt918][i][j]; + LinkedList list = aListArrayArrayArray827[anInt918][i][j]; if (list == null) { aGraph_946.method295(anInt918, i, j); return; @@ -1861,7 +1859,7 @@ public class Game extends GameShell { } public boolean method27() { - return signlink.wavereplay(); + return Signlink.wavereplay(); } public void method28(String s) { @@ -2116,12 +2114,12 @@ public class Game extends GameShell { } } if (buffer.anInt1406 != i) { - signlink.reporterror(aString1173 + " size mismatch in getnpcpos - pos:" + buffer.anInt1406 + " psize:" + i); + Signlink.reporterror(aString1173 + " size mismatch in getnpcpos - pos:" + buffer.anInt1406 + " psize:" + i); throw new RuntimeException("eek"); } for (int i1 = 0; i1 < anInt836; i1++) { if (aNpcArray835[anIntArray837[i1]] == null) { - signlink.reporterror(aString1173 + " null entry in npc list - pos:" + i1 + " size:" + anInt836); + Signlink.reporterror(aString1173 + " null entry in npc list - pos:" + i1 + " size:" + anInt836); throw new RuntimeException("eek"); } } @@ -2176,7 +2174,7 @@ public class Game extends GameShell { } public void method33(int i) { - int j = Class41.aClass41Array701[i].anInt709; + int j = VarpType.aVarpArray701[i].anInt709; if (j == 0) { return; } @@ -2222,7 +2220,7 @@ public class Game extends GameShell { if (aBoolean1151) { anInt1227 = anInt956; aBoolean1228 = true; - aClass42_Sub1_1068.method558(2, anInt1227); + aOnDemand_1068.method558(2, anInt1227); } else { method15(); } @@ -2735,7 +2733,7 @@ public class Game extends GameShell { method77("Your friendlist is full. Max of 100 for free users, and 200 for members", 0, ""); return; } - String s = Class50.method587(Class50.method584(l)); + String s = Base37.method587(Base37.method584(l)); for (int i = 0; i < anInt899; i++) { if (aLongArray955[i] == l) { method77(s + " is already on your friend list", 0, ""); @@ -2804,8 +2802,8 @@ public class Game extends GameShell { aBoolean1031 = true; for (int j = 0; j < 7; j++) { anIntArray1065[j] = -1; - for (int k = 0; k < Class38.anInt655; k++) { - if (Class38.aClass38Array656[k].aBoolean662 || Class38.aClass38Array656[k].anInt657 != j + (aBoolean1047 ? 0 : 7)) { + for (int k = 0; k < IDKType.anInt655; k++) { + if (IDKType.aIDKTypeArray656[k].aBoolean662 || IDKType.aIDKTypeArray656[k].anInt657 != j + (aBoolean1047 ? 0 : 7)) { continue; } anIntArray1065[j] = k; @@ -2943,12 +2941,12 @@ public class Game extends GameShell { if (i2 != -1) { do { if (j1 == 0 && --i2 < 0) { - i2 = Class38.anInt655 - 1; + i2 = IDKType.anInt655 - 1; } - if (j1 == 1 && ++i2 >= Class38.anInt655) { + if (j1 == 1 && ++i2 >= IDKType.anInt655) { i2 = 0; } - } while (Class38.aClass38Array656[i2].aBoolean662 || Class38.aClass38Array656[i2].anInt657 != k + (aBoolean1047 ? 0 : 7)); + } while (IDKType.aIDKTypeArray656[i2].aBoolean662 || IDKType.aIDKTypeArray656[i2].anInt657 != k + (aBoolean1047 ? 0 : 7)); anIntArray1065[k] = i2; aBoolean1031 = true; } @@ -2989,7 +2987,7 @@ public class Game extends GameShell { method147(); if (aString881.length() > 0) { aBuffer_1192.method397(218); - aBuffer_1192.method404(Class50.method583(aString881)); + aBuffer_1192.method404(Base37.method583(aString881)); aBuffer_1192.method398(j - 601); aBuffer_1192.method398(aBoolean1158 ? 1 : 0); } @@ -3022,13 +3020,13 @@ public class Game extends GameShell { int[] ai = aImage_1263.anIntArray1439; int k4 = 24624 + l * 4 + (103 - i) * 512 * 4; int i5 = k1 >> 14 & 0x7fff; - Class46 class46_2 = Class46.method572(i5); - if (class46_2.anInt758 != -1) { - Image8 class30_sub2_sub1_sub2_2 = aImageArray1060[class46_2.anInt758]; + LocType type_2 = LocType.method572(i5); + if (type_2.anInt758 != -1) { + Image8 class30_sub2_sub1_sub2_2 = aImageArray1060[type_2.anInt758]; if (class30_sub2_sub1_sub2_2 != null) { - int i6 = (class46_2.anInt744 * 4 - class30_sub2_sub1_sub2_2.anInt1452) / 2; - int j6 = (class46_2.anInt761 * 4 - class30_sub2_sub1_sub2_2.anInt1453) / 2; - class30_sub2_sub1_sub2_2.method361(48 + l * 4 + i6, 48 + (104 - i - class46_2.anInt761) * 4 + j6); + int i6 = (type_2.anInt744 * 4 - class30_sub2_sub1_sub2_2.anInt1452) / 2; + int j6 = (type_2.anInt761 * 4 - class30_sub2_sub1_sub2_2.anInt1453) / 2; + class30_sub2_sub1_sub2_2.method361(48 + l * 4 + i6, 48 + (104 - i - type_2.anInt761) * 4 + j6); } } else { if (i3 == 0 || i3 == 2) { @@ -3096,13 +3094,13 @@ public class Game extends GameShell { int l2 = i2 >> 6 & 3; int j3 = i2 & 0x1f; int l3 = k1 >> 14 & 0x7fff; - Class46 class46_1 = Class46.method572(l3); - if (class46_1.anInt758 != -1) { - Image8 class30_sub2_sub1_sub2_1 = aImageArray1060[class46_1.anInt758]; + LocType type_1 = LocType.method572(l3); + if (type_1.anInt758 != -1) { + Image8 class30_sub2_sub1_sub2_1 = aImageArray1060[type_1.anInt758]; if (class30_sub2_sub1_sub2_1 != null) { - int j5 = (class46_1.anInt744 * 4 - class30_sub2_sub1_sub2_1.anInt1452) / 2; - int k5 = (class46_1.anInt761 * 4 - class30_sub2_sub1_sub2_1.anInt1453) / 2; - class30_sub2_sub1_sub2_1.method361(48 + l * 4 + j5, 48 + (104 - i - class46_1.anInt761) * 4 + k5); + int j5 = (type_1.anInt744 * 4 - class30_sub2_sub1_sub2_1.anInt1452) / 2; + int k5 = (type_1.anInt761 * 4 - class30_sub2_sub1_sub2_1.anInt1453) / 2; + class30_sub2_sub1_sub2_1.method361(48 + l * 4 + j5, 48 + (104 - i - type_1.anInt761) * 4 + k5); } } else if (j3 == 9) { int l4 = 0xeeeeee; @@ -3127,21 +3125,21 @@ public class Game extends GameShell { k1 = aGraph_946.method303(j1, l, i); if (k1 != 0) { int j2 = k1 >> 14 & 0x7fff; - Class46 class46 = Class46.method572(j2); - if (class46.anInt758 != -1) { - Image8 image = aImageArray1060[class46.anInt758]; + LocType type = LocType.method572(j2); + if (type.anInt758 != -1) { + Image8 image = aImageArray1060[type.anInt758]; if (image != null) { - int i4 = (class46.anInt744 * 4 - image.anInt1452) / 2; - int j4 = (class46.anInt761 * 4 - image.anInt1453) / 2; - image.method361(48 + l * 4 + i4, 48 + (104 - i - class46.anInt761) * 4 + j4); + int i4 = (type.anInt744 * 4 - image.anInt1452) / 2; + int j4 = (type.anInt761 * 4 - image.anInt1453) / 2; + image.method361(48 + l * 4 + i4, 48 + (104 - i - type.anInt761) * 4 + j4); } } } } public void method51() { - aImage_966 = new Image8(aClass44_1053, "titlebox", 0); - aImage_967 = new Image8(aClass44_1053, "titlebutton", 0); + aImage_966 = new Image8(aArchive_1053, "titlebox", 0); + aImage_967 = new Image8(aArchive_1053, "titlebutton", 0); aImageArray1152 = new Image8[12]; int j = 0; try { @@ -3150,11 +3148,11 @@ public class Game extends GameShell { } if (j == 0) { for (int k = 0; k < 12; k++) { - aImageArray1152[k] = new Image8(aClass44_1053, "runes", k); + aImageArray1152[k] = new Image8(aArchive_1053, "runes", k); } } else { for (int l = 0; l < 12; l++) { - aImageArray1152[l] = new Image8(aClass44_1053, "runes", 12 + (l & 3)); + aImageArray1152[l] = new Image8(aArchive_1053, "runes", 12 + (l & 3)); } } aImage_1201 = new Image24(128, 265); @@ -3230,7 +3228,7 @@ public class Game extends GameShell { if (anInt1023 == 1) { int j = method54(); if (j != 0 && System.currentTimeMillis() - aLong824 > 0x57e40L) { - signlink.reporterror(aString1173 + " glcfb " + aLong1215 + "," + j + "," + aBoolean960 + "," + aFileStoreArray970[0] + "," + aClass42_Sub1_1068.method552() + "," + anInt918 + "," + anInt1069 + "," + anInt1070); + Signlink.reporterror(aString1173 + " glcfb " + aLong1215 + "," + j + "," + aBoolean960 + "," + aFileStoreArray970[0] + "," + aOnDemand_1068.method552() + "," + anInt918 + "," + anInt1069 + "," + anInt1070); aLong824 = System.currentTimeMillis(); } } @@ -3306,7 +3304,7 @@ public class Game extends GameShell { } public void method56() { - byte[] abyte0 = aClass44_1053.method571("title.dat", null); + byte[] abyte0 = aArchive_1053.method571("title.dat", null); Image24 image = new Image24(abyte0, this); aArea_1110.method237(); image.method346(0, 0); @@ -3353,7 +3351,7 @@ public class Game extends GameShell { image.method346(254, -171); aArea_1115.method237(); image.method346(-180, -171); - image = new Image24(aClass44_1053, "logo", 0); + image = new Image24(aArchive_1053, "logo", 0); aArea_1107.method237(); image.method348(382 - image.anInt1440 / 2 - 128, 18); System.gc(); @@ -3363,13 +3361,13 @@ public class Game extends GameShell { do { OnDemandRequest request; do { - request = aClass42_Sub1_1068.method561(); + request = aOnDemand_1068.method561(); if (request == null) { return; } if (request.anInt1419 == 0) { Model.method460(request.aByteArray1420, request.anInt1421); - if ((aClass42_Sub1_1068.method559(request.anInt1421) & 0x62) != 0) { + if ((aOnDemand_1068.method559(request.anInt1421) & 0x62) != 0) { aBoolean1153 = true; if (anInt1276 != -1) { aBoolean1223 = true; @@ -3377,7 +3375,7 @@ public class Game extends GameShell { } } if (request.anInt1419 == 1 && request.aByteArray1420 != null) { - Class36.method529(request.aByteArray1420); + SeqTransform.method529(request.aByteArray1420); } if (request.anInt1419 == 2 && request.anInt1421 == anInt1227 && request.aByteArray1420 != null) { method21(aBoolean1228, request.aByteArray1420); @@ -3401,8 +3399,8 @@ public class Game extends GameShell { break; } } - } while (request.anInt1419 != 93 || !aClass42_Sub1_1068.method564(request.anInt1421)); - SceneBuilder.method173(new Buffer(request.aByteArray1420), aClass42_Sub1_1068); + } while (request.anInt1419 != 93 || !aOnDemand_1068.method564(request.anInt1421)); + SceneBuilder.method173(new Buffer(request.aByteArray1420), aOnDemand_1068); } while (true); } @@ -3467,7 +3465,7 @@ public class Game extends GameShell { if (abyte0 == null) { return true; } else { - return signlink.wavesave(abyte0, i); + return Signlink.wavesave(abyte0, i); } } @@ -3511,32 +3509,32 @@ public class Game extends GameShell { if (!aBoolean1157) { return; } - synchronized (aClass48_879.lock) { + synchronized (aMouseRecorder_879.lock) { if (aBoolean1205) { - if (super.anInt26 != 0 || aClass48_879.anInt810 >= 40) { + if (super.anInt26 != 0 || aMouseRecorder_879.anInt810 >= 40) { aBuffer_1192.method397(45); aBuffer_1192.method398(0); int j2 = aBuffer_1192.anInt1406; int j3 = 0; - for (int j4 = 0; j4 < aClass48_879.anInt810; j4++) { + for (int j4 = 0; j4 < aMouseRecorder_879.anInt810; j4++) { if (j2 - aBuffer_1192.anInt1406 >= 240) { break; } j3++; - int l4 = aClass48_879.anIntArray807[j4]; + int l4 = aMouseRecorder_879.anIntArray807[j4]; if (l4 < 0) { l4 = 0; } else if (l4 > 502) { l4 = 502; } - int k5 = aClass48_879.anIntArray809[j4]; + int k5 = aMouseRecorder_879.anIntArray809[j4]; if (k5 < 0) { k5 = 0; } else if (k5 > 764) { k5 = 764; } int i6 = l4 * 765 + k5; - if (aClass48_879.anIntArray807[j4] == -1 && aClass48_879.anIntArray809[j4] == -1) { + if (aMouseRecorder_879.anIntArray807[j4] == -1 && aMouseRecorder_879.anIntArray809[j4] == -1) { k5 = -1; l4 = -1; i6 = 0x7ffff; @@ -3565,18 +3563,18 @@ public class Game extends GameShell { } } aBuffer_1192.method407(aBuffer_1192.anInt1406 - j2); - if (j3 >= aClass48_879.anInt810) { - aClass48_879.anInt810 = 0; + if (j3 >= aMouseRecorder_879.anInt810) { + aMouseRecorder_879.anInt810 = 0; } else { - aClass48_879.anInt810 -= j3; - for (int i5 = 0; i5 < aClass48_879.anInt810; i5++) { - aClass48_879.anIntArray809[i5] = aClass48_879.anIntArray809[i5 + j3]; - aClass48_879.anIntArray807[i5] = aClass48_879.anIntArray807[i5 + j3]; + aMouseRecorder_879.anInt810 -= j3; + for (int i5 = 0; i5 < aMouseRecorder_879.anInt810; i5++) { + aMouseRecorder_879.anIntArray809[i5] = aMouseRecorder_879.anIntArray809[i5 + j3]; + aMouseRecorder_879.anIntArray807[i5] = aMouseRecorder_879.anIntArray807[i5 + j3]; } } } } else { - aClass48_879.anInt810 = 0; + aMouseRecorder_879.anInt810 = 0; } } if (super.anInt26 != 0) { @@ -3777,13 +3775,13 @@ public class Game extends GameShell { } public void method63() { - Class30_Sub1 class30_sub1 = (Class30_Sub1) aList_1179.method252(); - for (; class30_sub1 != null; class30_sub1 = (Class30_Sub1) aList_1179.method254()) { - if (class30_sub1.anInt1294 == -1) { - class30_sub1.anInt1302 = 0; - method89(class30_sub1); + SceneLocTemporary loc = (SceneLocTemporary) aList_1179.method252(); + for (; loc != null; loc = (SceneLocTemporary) aList_1179.method254()) { + if (loc.anInt1294 == -1) { + loc.anInt1302 = 0; + method89(loc); } else { - class30_sub1.method329(); + loc.method329(); } } } @@ -3817,7 +3815,7 @@ public class Game extends GameShell { Draw2D.method334(); aArea_1115 = new DrawArea(75, 94, method11()); Draw2D.method334(); - if (aClass44_1053 != null) { + if (aArchive_1053 != null) { method56(); method51(); } @@ -3865,17 +3863,17 @@ public class Game extends GameShell { int k1 = j1 & 0x1f; int l1 = j1 >> 6 & 3; if (k1 == 10 || k1 == 11 || k1 == 22) { - Class46 class46 = Class46.method572(i1); + LocType type = LocType.method572(i1); int i2; int j2; if (l1 == 0 || l1 == 2) { - i2 = class46.anInt744; - j2 = class46.anInt761; + i2 = type.anInt744; + j2 = type.anInt761; } else { - i2 = class46.anInt761; - j2 = class46.anInt744; + i2 = type.anInt761; + j2 = type.anInt744; } - int k2 = class46.anInt768; + int k2 = type.anInt768; if (l1 != 0) { k2 = (k2 << l1 & 0xf) + (k2 >> 4 - l1); } @@ -3890,7 +3888,7 @@ public class Game extends GameShell { return true; } - public Class44 method67(int i, String s, String s1, int j, int k) { + public FileArchive method67(int i, String s, String s1, int j, int k) { byte[] abyte0 = null; int l = 5; try { @@ -3904,11 +3902,11 @@ public class Game extends GameShell { aCRC32_930.update(abyte0); int i1 = (int) aCRC32_930.getValue(); if (i1 != j) { - //abyte0 = null; + abyte0 = null; } } if (abyte0 != null) { - return new Class44(abyte0); + return new FileArchive(abyte0); } int j1 = 0; while (abyte0 == null) { @@ -3957,7 +3955,7 @@ public class Game extends GameShell { aCRC32_930.update(abyte0); int i3 = (int) aCRC32_930.getValue(); if (i3 != j) { - //abyte0 = null; + abyte0 = null; j1++; s2 = "Checksum error: " + i3; } @@ -3970,19 +3968,19 @@ public class Game extends GameShell { } catch (NullPointerException _ex) { s2 = "Null error"; abyte0 = null; - if (!signlink.reporterror) { + if (!Signlink.reporterror) { return null; } } catch (ArrayIndexOutOfBoundsException _ex) { s2 = "Bounds error"; abyte0 = null; - if (!signlink.reporterror) { + if (!Signlink.reporterror) { return null; } } catch (Exception _ex) { s2 = "Unexpected error"; abyte0 = null; - if (!signlink.reporterror) { + if (!Signlink.reporterror) { return null; } } @@ -4006,7 +4004,7 @@ public class Game extends GameShell { aBoolean872 = !aBoolean872; } } - return new Class44(abyte0); + return new FileArchive(abyte0); } public void method68() { @@ -4207,7 +4205,7 @@ public class Game extends GameShell { String s = aStringArray1199[i]; int k1 = s.indexOf("@whi@"); if (k1 != -1) { - long l3 = Class50.method583(s.substring(k1 + 5).trim()); + long l3 = Base37.method583(s.substring(k1 + 5).trim()); if (l == 337) { method41(l3); } @@ -4259,7 +4257,7 @@ public class Game extends GameShell { int l1 = s1.indexOf("@whi@"); if (l1 != -1) { s1 = s1.substring(l1 + 5).trim(); - String s7 = Class50.method587(Class50.method584(Class50.method583(s1))); + String s7 = Base37.method587(Base37.method584(Base37.method583(s1))); boolean flag9 = false; for (int j3 = 0; j3 < anInt891; j3++) { PlayerEntity player_7 = aPlayerArray890[anIntArray892[j3]]; @@ -4664,7 +4662,7 @@ public class Game extends GameShell { String s3 = aStringArray1199[i]; int k2 = s3.indexOf("@whi@"); if (k2 != -1) { - long l4 = Class50.method583(s3.substring(k2 + 5).trim()); + long l4 = Base37.method583(s3.substring(k2 + 5).trim()); int k3 = -1; for (int i4 = 0; i4 < anInt899; i4++) { if (aLongArray955[i4] != l4) { @@ -4769,12 +4767,12 @@ public class Game extends GameShell { } if (l == 1226) { int j1 = i1 >> 14 & 0x7fff; - Class46 class46 = Class46.method572(j1); + LocType type = LocType.method572(j1); String s10; - if (class46.aByteArray777 != null) { - s10 = new String(class46.aByteArray777); + if (type.aByteArray777 != null) { + s10 = new String(type.aByteArray777); } else { - s10 = "It's a " + class46.aString739 + "."; + s10 = "It's a " + type.aString739 + "."; } method77(s10, 0, ""); } @@ -4842,15 +4840,15 @@ public class Game extends GameShell { } j = l; if (k1 == 2 && aGraph_946.method304(anInt918, i1, j1, l) >= 0) { - Class46 class46 = Class46.method572(l1); - if (class46.anIntArray759 != null) { - class46 = class46.method580(); + LocType type = LocType.method572(l1); + if (type.anIntArray759 != null) { + type = type.method580(); } - if (class46 == null) { + if (type == null) { continue; } if (anInt1282 == 1) { - aStringArray1199[anInt1133] = "Use " + aString1286 + " with @cya@" + class46.aString739; + aStringArray1199[anInt1133] = "Use " + aString1286 + " with @cya@" + type.aString739; anIntArray1093[anInt1133] = 62; anIntArray1094[anInt1133] = l; anIntArray1091[anInt1133] = i1; @@ -4858,7 +4856,7 @@ public class Game extends GameShell { anInt1133++; } else if (anInt1136 == 1) { if ((anInt1138 & 4) == 4) { - aStringArray1199[anInt1133] = aString1139 + " @cya@" + class46.aString739; + aStringArray1199[anInt1133] = aString1139 + " @cya@" + type.aString739; anIntArray1093[anInt1133] = 956; anIntArray1094[anInt1133] = l; anIntArray1091[anInt1133] = i1; @@ -4866,10 +4864,10 @@ public class Game extends GameShell { anInt1133++; } } else { - if (class46.aStringArray786 != null) { + if (type.aStringArray786 != null) { for (int i2 = 4; i2 >= 0; i2--) { - if (class46.aStringArray786[i2] != null) { - aStringArray1199[anInt1133] = class46.aStringArray786[i2] + " @cya@" + class46.aString739; + if (type.aStringArray786[i2] != null) { + aStringArray1199[anInt1133] = type.aStringArray786[i2] + " @cya@" + type.aString739; if (i2 == 0) { anIntArray1093[anInt1133] = 502; } @@ -4892,9 +4890,9 @@ public class Game extends GameShell { } } } - aStringArray1199[anInt1133] = "Examine @cya@" + class46.aString739; + aStringArray1199[anInt1133] = "Examine @cya@" + type.aString739; anIntArray1093[anInt1133] = 1226; - anIntArray1094[anInt1133] = class46.anInt754 << 14; + anIntArray1094[anInt1133] = type.anInt754 << 14; anIntArray1091[anInt1133] = i1; anIntArray1092[anInt1133] = j1; anInt1133++; @@ -4937,7 +4935,7 @@ public class Game extends GameShell { method88(i1, l1, player, j1); } if (k1 == 3) { - DoublyLinkedList list = aListArrayArrayArray827[anInt918][i1][j1]; + LinkedList list = aListArrayArrayArray827[anInt918][i1][j1]; if (list != null) { for (ObjStackEntity objStack = (ObjStackEntity) list.method253(); objStack != null; objStack = (ObjStackEntity) list.method255()) { ObjType type = ObjType.method198(objStack.anInt1558); @@ -5005,8 +5003,8 @@ public class Game extends GameShell { public void method72() { System.out.println("============"); System.out.println("flame-cycle:" + anInt1208); - if (aClass42_Sub1_1068 != null) { - System.out.println("Od-cycle:" + aClass42_Sub1_1068.anInt1341); + if (aOnDemand_1068 != null) { + System.out.println("Od-cycle:" + aOnDemand_1068.anInt1341); } System.out.println("loop-cycle:" + anInt1161); System.out.println("draw-cycle:" + anInt1061); @@ -5045,11 +5043,11 @@ public class Game extends GameShell { aBoolean1256 = false; aBoolean1223 = true; if (anInt1064 == 1) { - long l = Class50.method583(aString1212); + long l = Base37.method583(aString1212); method41(l); } if (anInt1064 == 2 && anInt899 > 0) { - long l1 = Class50.method583(aString1212); + long l1 = Base37.method583(aString1212); method35(l1); } if (anInt1064 == 3 && aString1212.length() > 0) { @@ -5057,11 +5055,11 @@ public class Game extends GameShell { aBuffer_1192.method398(0); int k = aBuffer_1192.anInt1406; aBuffer_1192.method404(aLong953); - Class35.method526(aString1212, aBuffer_1192); + Huffman.method526(aString1212, aBuffer_1192); aBuffer_1192.method407(aBuffer_1192.anInt1406 - k); - aString1212 = Class35.method527(aString1212); - aString1212 = Class34.method497(aString1212, 0); - method77(aString1212, 6, Class50.method587(Class50.method584(aLong953))); + aString1212 = Huffman.method527(aString1212); + aString1212 = Censor.method497(aString1212, 0); + method77(aString1212, 6, Base37.method587(Base37.method584(aLong953))); if (anInt845 == 2) { anInt845 = 1; aBoolean1233 = true; @@ -5072,11 +5070,11 @@ public class Game extends GameShell { } } if (anInt1064 == 4 && anInt822 < 100) { - long l2 = Class50.method583(aString1212); + long l2 = Base37.method583(aString1212); method113(l2); } if (anInt1064 == 5 && anInt822 > 0) { - long l3 = Class50.method583(aString1212); + long l3 = Base37.method583(aString1212); method122(l3); } } @@ -5114,7 +5112,7 @@ public class Game extends GameShell { if (j == 13 || j == 10) { if (aString1004.length() > 0) { aBuffer_1192.method397(60); - aBuffer_1192.method404(Class50.method583(aString1004)); + aBuffer_1192.method404(Base37.method583(aString1004)); } anInt1225 = 0; aBoolean1223 = true; @@ -5137,8 +5135,8 @@ public class Game extends GameShell { method72(); } if (aString887.equals("::prefetchmusic")) { - for (int j1 = 0; j1 < aClass42_Sub1_1068.method555(2); j1++) { - aClass42_Sub1_1068.method563((byte) 1, 2, j1); + for (int j1 = 0; j1 < aOnDemand_1068.method555(2); j1++) { + aOnDemand_1068.method563((byte) 1, 2, j1); } } if (aString887.equals("::fpson")) { @@ -5225,11 +5223,11 @@ public class Game extends GameShell { aBuffer_1192.method425(i3); aBuffer_1192.method425(j2); aBuffer_834.anInt1406 = 0; - Class35.method526(aString887, aBuffer_834); + Huffman.method526(aString887, aBuffer_834); aBuffer_1192.method441(0, aBuffer_834.aByteArray1405, aBuffer_834.anInt1406); aBuffer_1192.method407(aBuffer_1192.anInt1406 - j3); - aString887 = Class35.method527(aString887); - aString887 = Class34.method497(aString887, 0); + aString887 = Huffman.method527(aString887); + aString887 = Censor.method497(aString887, 0); aPlayer_1126.aString1506 = aString887; aPlayer_1126.anInt1513 = j2; aPlayer_1126.anInt1531 = i3; @@ -5423,7 +5421,7 @@ public class Game extends GameShell { component.aString248 = ""; component.anInt217 = 0; } else { - component.aString248 = Class50.method587(Class50.method584(aLongArray925[j])); + component.aString248 = Base37.method587(Base37.method584(aLongArray925[j])); component.anInt217 = 1; } return; @@ -5441,7 +5439,7 @@ public class Game extends GameShell { if (aBoolean1031) { for (int k1 = 0; k1 < 7; k1++) { int l1 = anIntArray1065[k1]; - if (l1 >= 0 && !Class38.aClass38Array656[l1].method537()) { + if (l1 >= 0 && !IDKType.aIDKTypeArray656[l1].method537()) { return; } } @@ -5451,7 +5449,7 @@ public class Game extends GameShell { for (int j2 = 0; j2 < 7; j2++) { int k2 = anIntArray1065[j2]; if (k2 >= 0) { - aclass30_sub2_sub4_sub6[i2++] = Class38.aClass38Array656[k2].method538(); + aclass30_sub2_sub4_sub6[i2++] = IDKType.aIDKTypeArray656[k2].method538(); } } Model model = new Model(i2, aclass30_sub2_sub4_sub6); @@ -5528,7 +5526,7 @@ public class Game extends GameShell { } else { s = anInt1006 + " days ago"; } - component.aString248 = "You last logged in " + s + " from: " + signlink.dns; + component.aString248 = "You last logged in " + s + " from: " + Signlink.dns; } else { component.aString248 = ""; } @@ -5781,8 +5779,8 @@ public class Game extends GameShell { } public String method80() { - if (signlink.mainapp != null) { - return signlink.mainapp.getDocumentBase().getHost().toLowerCase(); + if (Signlink.mainapp != null) { + return Signlink.mainapp.getDocumentBase().getHost().toLowerCase(); } if (super.aGameFrame__15 != null) { return "runescape.com"; @@ -5892,7 +5890,7 @@ public class Game extends GameShell { method135(true); } aConnection_1168 = new Connection(this, method19(43594 + anInt958)); - long l = Class50.method583(s); + long l = Base37.method583(s); int i = (int) (l >> 16 & 31L); aBuffer_1192.anInt1406 = 0; aBuffer_1192.method398(14); @@ -5918,7 +5916,7 @@ public class Game extends GameShell { aBuffer_1192.method402(ai[1]); aBuffer_1192.method402(ai[2]); aBuffer_1192.method402(ai[3]); - aBuffer_1192.method402(signlink.uid); + aBuffer_1192.method402(Signlink.uid); aBuffer_1192.method405(s); aBuffer_1192.method405(s1); aBuffer_1192.method423(aBigInteger1032, aBigInteger856); @@ -5957,7 +5955,7 @@ public class Game extends GameShell { aBoolean1205 = aConnection_1168.method268() == 1; aLong1220 = 0L; anInt1022 = 0; - aClass48_879.anInt810 = 0; + aMouseRecorder_879.anInt810 = 0; super.aBoolean17 = true; aBoolean954 = true; aBoolean1157 = true; @@ -6011,7 +6009,7 @@ public class Game extends GameShell { } } } - aList_1179 = new DoublyLinkedList(); + aList_1179 = new LinkedList(); anInt900 = 0; anInt899 = 0; anInt1042 = -1; @@ -6621,32 +6619,32 @@ public class Game extends GameShell { } } - public void method89(Class30_Sub1 class30_sub1) { + public void method89(SceneLocTemporary loc) { int i = 0; int j = -1; int k = 0; int l = 0; - if (class30_sub1.anInt1296 == 0) { - i = aGraph_946.method300(class30_sub1.anInt1295, class30_sub1.anInt1297, class30_sub1.anInt1298); + if (loc.anInt1296 == 0) { + i = aGraph_946.method300(loc.anInt1295, loc.anInt1297, loc.anInt1298); } - if (class30_sub1.anInt1296 == 1) { - i = aGraph_946.method301(class30_sub1.anInt1295, class30_sub1.anInt1297, class30_sub1.anInt1298); + if (loc.anInt1296 == 1) { + i = aGraph_946.method301(loc.anInt1295, loc.anInt1297, loc.anInt1298); } - if (class30_sub1.anInt1296 == 2) { - i = aGraph_946.method302(class30_sub1.anInt1295, class30_sub1.anInt1297, class30_sub1.anInt1298); + if (loc.anInt1296 == 2) { + i = aGraph_946.method302(loc.anInt1295, loc.anInt1297, loc.anInt1298); } - if (class30_sub1.anInt1296 == 3) { - i = aGraph_946.method303(class30_sub1.anInt1295, class30_sub1.anInt1297, class30_sub1.anInt1298); + if (loc.anInt1296 == 3) { + i = aGraph_946.method303(loc.anInt1295, loc.anInt1297, loc.anInt1298); } if (i != 0) { - int i1 = aGraph_946.method304(class30_sub1.anInt1295, class30_sub1.anInt1297, class30_sub1.anInt1298, i); + int i1 = aGraph_946.method304(loc.anInt1295, loc.anInt1297, loc.anInt1298, i); j = i >> 14 & 0x7fff; k = i1 & 0x1f; l = i1 >> 6; } - class30_sub1.anInt1299 = j; - class30_sub1.anInt1301 = k; - class30_sub1.anInt1300 = l; + loc.anInt1299 = j; + loc.anInt1301 = k; + loc.anInt1300 = l; } public void method90() { @@ -6696,7 +6694,7 @@ public class Game extends GameShell { if (anInt1259 == 0 && aBoolean1151 && !aBoolean960) { anInt1227 = anInt956; aBoolean1228 = true; - aClass42_Sub1_1068.method558(2, anInt1227); + aOnDemand_1068.method558(2, anInt1227); } } } @@ -7820,7 +7818,7 @@ public class Game extends GameShell { int j3 = buffer.method427(); int k3 = buffer.anInt1406; if (player.aString1703 != null && player.aBoolean1710) { - long l3 = Class50.method583(player.aString1703); + long l3 = Base37.method583(player.aString1703); boolean flag = false; if (j2 <= 1) { for (int i4 = 0; i4 < anInt822; i4++) { @@ -7836,8 +7834,8 @@ public class Game extends GameShell { aBuffer_834.anInt1406 = 0; buffer.method442(j3, 0, aBuffer_834.aByteArray1405); aBuffer_834.anInt1406 = 0; - String s = Class35.method525(j3, aBuffer_834); - s = Class34.method497(s, 0); + String s = Huffman.method525(j3, aBuffer_834); + s = Censor.method497(s, 0); player.aString1506 = s; player.anInt1513 = i1 >> 8; player.anInt1531 = i1 & 0xff; @@ -7850,7 +7848,7 @@ public class Game extends GameShell { method77(s, 2, player.aString1703); } } catch (Exception exception) { - signlink.reporterror("cde2"); + Signlink.reporterror("cde2"); } } } @@ -7974,7 +7972,7 @@ public class Game extends GameShell { } public void method111(int i) { - signlink.wavevol = i; + Signlink.wavevol = i; } public void method112() { @@ -8038,7 +8036,7 @@ public class Game extends GameShell { method77("Your ignore list is full. Max of 100 hit", 0, ""); return; } - String s = Class50.method587(Class50.method584(l)); + String s = Base37.method587(Base37.method584(l)); for (int j = 0; j < anInt822; j++) { if (aLongArray925[j] == l) { method77(s + " is already on your ignore list", 0, ""); @@ -8074,26 +8072,26 @@ public class Game extends GameShell { public void method115() { if (anInt1023 == 2) { - for (Class30_Sub1 class30_sub1 = (Class30_Sub1) aList_1179.method252(); class30_sub1 != null; class30_sub1 = (Class30_Sub1) aList_1179.method254()) { - if (class30_sub1.anInt1294 > 0) { - class30_sub1.anInt1294--; + for (SceneLocTemporary loc = (SceneLocTemporary) aList_1179.method252(); loc != null; loc = (SceneLocTemporary) aList_1179.method254()) { + if (loc.anInt1294 > 0) { + loc.anInt1294--; } - if (class30_sub1.anInt1294 == 0) { - if (class30_sub1.anInt1299 < 0 || SceneBuilder.method178(class30_sub1.anInt1299, class30_sub1.anInt1301)) { - method142(class30_sub1.anInt1298, class30_sub1.anInt1295, class30_sub1.anInt1300, class30_sub1.anInt1301, class30_sub1.anInt1297, class30_sub1.anInt1296, class30_sub1.anInt1299); - class30_sub1.method329(); + if (loc.anInt1294 == 0) { + if (loc.anInt1299 < 0 || SceneBuilder.method178(loc.anInt1299, loc.anInt1301)) { + method142(loc.anInt1298, loc.anInt1295, loc.anInt1300, loc.anInt1301, loc.anInt1297, loc.anInt1296, loc.anInt1299); + loc.method329(); } } else { - if (class30_sub1.anInt1302 > 0) { - class30_sub1.anInt1302--; + if (loc.anInt1302 > 0) { + loc.anInt1302--; } - if (class30_sub1.anInt1302 == 0 && class30_sub1.anInt1297 >= 1 && class30_sub1.anInt1298 >= 1 && class30_sub1.anInt1297 <= 102 && class30_sub1.anInt1298 <= 102 && (class30_sub1.anInt1291 < 0 || SceneBuilder.method178(class30_sub1.anInt1291, class30_sub1.anInt1293))) { - method142(class30_sub1.anInt1298, class30_sub1.anInt1295, class30_sub1.anInt1292, class30_sub1.anInt1293, class30_sub1.anInt1297, class30_sub1.anInt1296, class30_sub1.anInt1291); - class30_sub1.anInt1302 = -1; - if (class30_sub1.anInt1291 == class30_sub1.anInt1299 && class30_sub1.anInt1299 == -1) { - class30_sub1.method329(); - } else if (class30_sub1.anInt1291 == class30_sub1.anInt1299 && class30_sub1.anInt1292 == class30_sub1.anInt1300 && class30_sub1.anInt1293 == class30_sub1.anInt1301) { - class30_sub1.method329(); + if (loc.anInt1302 == 0 && loc.anInt1297 >= 1 && loc.anInt1298 >= 1 && loc.anInt1297 <= 102 && loc.anInt1298 <= 102 && (loc.anInt1291 < 0 || SceneBuilder.method178(loc.anInt1291, loc.anInt1293))) { + method142(loc.anInt1298, loc.anInt1295, loc.anInt1292, loc.anInt1293, loc.anInt1297, loc.anInt1296, loc.anInt1291); + loc.anInt1302 = -1; + if (loc.anInt1291 == loc.anInt1299 && loc.anInt1299 == -1) { + loc.method329(); + } else if (loc.anInt1291 == loc.anInt1299 && loc.anInt1292 == loc.anInt1300 && loc.anInt1293 == loc.anInt1301) { + loc.method329(); } } } @@ -8389,9 +8387,9 @@ public class Game extends GameShell { } public void method123(boolean flag, int i) { - signlink.midivol = i; + Signlink.midivol = i; if (flag) { - signlink.midi = "voladjust"; + Signlink.midi = "voladjust"; } } @@ -8444,8 +8442,8 @@ public class Game extends GameShell { k1 = aPlayer_1126.anInt1705; } if (j1 == 9) { - for (int l1 = 0; l1 < Class45.anInt733; l1++) { - if (Class45.aBooleanArray735[l1]) { + for (int l1 = 0; l1 < SkillConstants.anInt733; l1++) { + if (SkillConstants.aBooleanArray735[l1]) { k1 += anIntArray1044[l1]; } } @@ -8476,10 +8474,10 @@ public class Game extends GameShell { } if (j1 == 14) { int j2 = ai[l++]; - Class37 class37 = Class37.aClass37Array646[j2]; - int l3 = class37.anInt648; - int i4 = class37.anInt649; - int j4 = class37.anInt650; + VarbitType varbit = VarbitType.aVarbitArray646[j2]; + int l3 = varbit.anInt648; + int i4 = varbit.anInt649; + int j4 = varbit.anInt650; int k4 = anIntArray1232[j4 - i4]; k1 = anIntArray971[l3] >> i4 & k4; } @@ -8569,7 +8567,7 @@ public class Game extends GameShell { } for (int k5 = 0; k5 < 104; k5++) { for (int l5 = 0; l5 < 104; l5++) { - DoublyLinkedList list = aListArrayArrayArray827[anInt918][k5][l5]; + LinkedList list = aListArrayArrayArray827[anInt918][k5][l5]; if (list != null) { int l = (k5 * 4 + 2) - aPlayer_1126.anInt1550 / 32; int j3 = (l5 * 4 + 2) - aPlayer_1126.anInt1551 / 32; @@ -8597,7 +8595,7 @@ public class Game extends GameShell { int j1 = player.anInt1550 / 32 - aPlayer_1126.anInt1550 / 32; int l3 = player.anInt1551 / 32 - aPlayer_1126.anInt1551 / 32; boolean flag1 = false; - long l6 = Class50.method583(player.aString1703); + long l6 = Base37.method583(player.aString1703); for (int k6 = 0; k6 < anInt899; k6++) { if (l6 != aLongArray955[k6] || anIntArray826[k6] == 0) { continue; @@ -8734,28 +8732,28 @@ public class Game extends GameShell { } public void method130(int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2) { - Class30_Sub1 class30_sub1 = null; - for (Class30_Sub1 class30_sub1_1 = (Class30_Sub1) aList_1179.method252(); class30_sub1_1 != null; class30_sub1_1 = (Class30_Sub1) aList_1179.method254()) { - if (class30_sub1_1.anInt1295 != l1 || class30_sub1_1.anInt1297 != i2 || class30_sub1_1.anInt1298 != j1 || class30_sub1_1.anInt1296 != i1) { + SceneLocTemporary loc = null; + for (SceneLocTemporary loc_1 = (SceneLocTemporary) aList_1179.method252(); loc_1 != null; loc_1 = (SceneLocTemporary) aList_1179.method254()) { + if (loc_1.anInt1295 != l1 || loc_1.anInt1297 != i2 || loc_1.anInt1298 != j1 || loc_1.anInt1296 != i1) { continue; } - class30_sub1 = class30_sub1_1; + loc = loc_1; break; } - if (class30_sub1 == null) { - class30_sub1 = new Class30_Sub1(); - class30_sub1.anInt1295 = l1; - class30_sub1.anInt1296 = i1; - class30_sub1.anInt1297 = i2; - class30_sub1.anInt1298 = j1; - method89(class30_sub1); - aList_1179.method249(class30_sub1); + if (loc == null) { + loc = new SceneLocTemporary(); + loc.anInt1295 = l1; + loc.anInt1296 = i1; + loc.anInt1297 = i2; + loc.anInt1298 = j1; + method89(loc); + aList_1179.method249(loc); } - class30_sub1.anInt1291 = k; - class30_sub1.anInt1293 = k1; - class30_sub1.anInt1292 = l; - class30_sub1.anInt1302 = j2; - class30_sub1.anInt1294 = j; + loc.anInt1291 = k; + loc.anInt1293 = k1; + loc.anInt1292 = l; + loc.anInt1302 = j2; + loc.anInt1294 = j; } public boolean method131(Component component) { @@ -8786,8 +8784,8 @@ public class Game extends GameShell { public DataInputStream method132(String s) throws IOException { if (!aBoolean872) { - if (signlink.mainapp != null) { - return signlink.openurl(s); + if (Signlink.mainapp != null) { + return Signlink.openurl(s); } else { return new DataInputStream((new URL(getCodeBase(), s)).openStream()); } @@ -8896,7 +8894,7 @@ public class Game extends GameShell { } } if (j > anInt891) { - signlink.reporterror(aString1173 + " Too many players"); + Signlink.reporterror(aString1173 + " Too many players"); throw new RuntimeException("eek"); } anInt891 = 0; @@ -8948,7 +8946,7 @@ public class Game extends GameShell { char c1 = '\310'; if (anInt833 == 0) { int i = c1 / 2 + 80; - aFont_1270.method382(0x75a9a9, c / 2, aClass42_Sub1_1068.aString1333, i, true); + aFont_1270.method382(0x75a9a9, c / 2, aOnDemand_1068.aString1333, i, true); i = c1 / 2 - 20; aFont_1272.method382(0xffff00, c / 2, "Welcome to RuneScape", i, true); int l = c / 2 - 80; @@ -8970,7 +8968,7 @@ public class Game extends GameShell { j += 30; aFont_1272.method389(true, c / 2 - 90, 0xffffff, "Username: " + aString1173 + ((anInt1216 == 0) & (anInt1161 % 40 < 20) ? "@yel@|" : ""), j); j += 15; - aFont_1272.method389(true, c / 2 - 88, 0xffffff, "Password: " + Class50.method588(aString1174) + ((anInt1216 == 1) & (anInt1161 % 40 < 20) ? "@yel@|" : ""), j); + aFont_1272.method389(true, c / 2 - 88, 0xffffff, "Password: " + Base37.method588(aString1174) + ((anInt1216 == 1) & (anInt1161 % 40 < 20) ? "@yel@|" : ""), j); if (!flag) { int i1 = c / 2 - 80; int l1 = c1 / 2 + 50; @@ -9048,7 +9046,7 @@ public class Game extends GameShell { int k11 = buffer.method410(); int l13 = buffer.method410(); if (j3 >= 0 && i6 >= 0 && j3 < 104 && i6 < 104) { - DoublyLinkedList list_1 = aListArrayArrayArray827[anInt918][j3][i6]; + LinkedList list_1 = aListArrayArrayArray827[anInt918][j3][i6]; if (list_1 != null) { for (ObjStackEntity objStack_3 = (ObjStackEntity) list_1.method252(); objStack_3 != null; objStack_3 = (ObjStackEntity) list_1.method254()) { if (objStack_3.anInt1558 != (l8 & 0x7fff) || objStack_3.anInt1559 != k11) { @@ -9089,7 +9087,7 @@ public class Game extends GameShell { class30_sub2_sub4_sub2_2.anInt1558 = i1; class30_sub2_sub4_sub2_2.anInt1559 = j14; if (aListArrayArrayArray827[anInt918][k6][j9] == null) { - aListArrayArrayArray827[anInt918][k6][j9] = new DoublyLinkedList(); + aListArrayArrayArray827[anInt918][k6][j9] = new LinkedList(); } aListArrayArrayArray827[anInt918][k6][j9].method249(class30_sub2_sub4_sub2_2); method25(k6, j9); @@ -9102,7 +9100,7 @@ public class Game extends GameShell { int l6 = anInt1269 + (j1 & 7); int k9 = buffer.method410(); if (i4 >= 0 && l6 >= 0 && i4 < 104 && l6 < 104) { - DoublyLinkedList list = aListArrayArrayArray827[anInt918][i4][l6]; + LinkedList list = aListArrayArrayArray827[anInt918][i4][l6]; if (list != null) { for (ObjStackEntity objStack = (ObjStackEntity) list.method252(); objStack != null; objStack = (ObjStackEntity) list.method254()) { if (objStack.anInt1558 != (k9 & 0x7fff)) { @@ -9161,9 +9159,9 @@ public class Game extends GameShell { } } if (j16 == 3) { - Class49 class49 = aGraph_946.method299(i7, j4, anInt918); - if (class49 != null) { - class49.aEntity_814 = new LocEntity(class49.anInt815 >> 14 & 0x7fff, k14, 22, i19, l19, j18, k20, j17, false); + SceneGroundDecoration groundDecoration = aGraph_946.method299(i7, j4, anInt918); + if (groundDecoration != null) { + groundDecoration.aEntity_814 = new LocEntity(groundDecoration.anInt815 >> 14 & 0x7fff, k14, 22, i19, l19, j18, k20, j17, false); } } } @@ -9192,22 +9190,22 @@ public class Game extends GameShell { player = aPlayerArray890[i10]; } if (player != null) { - Class46 class46 = Class46.method572(l21); + LocType type = LocType.method572(l21); int i22 = anIntArrayArrayArray1214[anInt918][k4][j7]; int j22 = anIntArrayArrayArray1214[anInt918][k4 + 1][j7]; int k22 = anIntArrayArrayArray1214[anInt918][k4 + 1][j7 + 1]; int l22 = anIntArrayArrayArray1214[anInt918][k4][j7 + 1]; - Model model = class46.method578(j19, i20, i22, j22, k22, l22, -1); + Model model = type.method578(j19, i20, i22, j22, k22, l22, -1); if (model != null) { method130(k17 + 1, -1, 0, l20, j7, 0, anInt918, k4, l14 + 1); player.anInt1707 = l14 + anInt1161; player.anInt1708 = k17 + anInt1161; player.aModel_1714 = model; - int i23 = class46.anInt744; - int j23 = class46.anInt761; + int i23 = type.anInt744; + int j23 = type.anInt761; if (i20 == 1 || i20 == 3) { - i23 = class46.anInt761; - j23 = class46.anInt744; + i23 = type.anInt761; + j23 = type.anInt744; } player.anInt1711 = k4 * 128 + i23 * 64; player.anInt1713 = j7 * 128 + j23 * 64; @@ -9269,7 +9267,7 @@ public class Game extends GameShell { objStack_1.anInt1558 = k2; objStack_1.anInt1559 = j5; if (aListArrayArrayArray827[anInt918][l10][i13] == null) { - aListArrayArrayArray827[anInt918][l10][i13] = new DoublyLinkedList(); + aListArrayArrayArray827[anInt918][l10][i13] = new LinkedList(); } aListArrayArrayArray827[anInt918][l10][i13].method249(objStack_1); method25(l10, i13); @@ -9324,7 +9322,7 @@ public class Game extends GameShell { } } if (k > anInt836) { - signlink.reporterror(aString1173 + " Too many npcs"); + Signlink.reporterror(aString1173 + " Too many npcs"); throw new RuntimeException("eek"); } anInt836 = 0; @@ -9513,9 +9511,9 @@ public class Game extends GameShell { int l2 = i3 >> 6; if (j1 == 0) { aGraph_946.method291(i1, j, i); - Class46 class46 = Class46.method572(j2); - if (class46.aBoolean767) { - aCollisionMapArray1230[j].method215(l2, k2, class46.aBoolean757, i1, i); + LocType type = LocType.method572(j2); + if (type.aBoolean767) { + aCollisionMapArray1230[j].method215(l2, k2, type.aBoolean757, i1, i); } } if (j1 == 1) { @@ -9523,18 +9521,18 @@ public class Game extends GameShell { } if (j1 == 2) { aGraph_946.method293(j, i1, i); - Class46 class46_1 = Class46.method572(j2); - if (i1 + class46_1.anInt744 > 103 || i + class46_1.anInt744 > 103 || i1 + class46_1.anInt761 > 103 || i + class46_1.anInt761 > 103) { + LocType type_1 = LocType.method572(j2); + if (i1 + type_1.anInt744 > 103 || i + type_1.anInt744 > 103 || i1 + type_1.anInt761 > 103 || i + type_1.anInt761 > 103) { return; } - if (class46_1.aBoolean767) { - aCollisionMapArray1230[j].method216(l2, class46_1.anInt744, i1, i, class46_1.anInt761, class46_1.aBoolean757); + if (type_1.aBoolean767) { + aCollisionMapArray1230[j].method216(l2, type_1.anInt744, i1, i, type_1.anInt761, type_1.aBoolean757); } } if (j1 == 3) { aGraph_946.method294(j, i, i1); - Class46 class46_2 = Class46.method572(j2); - if (class46_2.aBoolean767 && class46_2.aBoolean778) { + LocType type_2 = LocType.method572(j2); + if (type_2.aBoolean767 && type_2.aBoolean778) { aCollisionMapArray1230[j].method218(i, i1); } } @@ -9562,12 +9560,12 @@ public class Game extends GameShell { } } if (buffer.anInt1406 != i) { - signlink.reporterror("Error packet size mismatch in getplayer pos:" + buffer.anInt1406 + " psize:" + i); + Signlink.reporterror("Error packet size mismatch in getplayer pos:" + buffer.anInt1406 + " psize:" + i); throw new RuntimeException("eek"); } for (int i1 = 0; i1 < anInt891; i1++) { if (aPlayerArray890[anIntArray892[i1]] == null) { - signlink.reporterror(aString1173 + " null entry in pl list - pos:" + i1 + " size:" + anInt891); + Signlink.reporterror(aString1173 + " null entry in pl list - pos:" + i1 + " size:" + anInt891); throw new RuntimeException("eek"); } } @@ -9615,7 +9613,7 @@ public class Game extends GameShell { if (aISAACCipher_1000 != null) { anInt1008 = anInt1008 - aISAACCipher_1000.method246() & 0xff; } - anInt1007 = Class31.anIntArray553[anInt1008]; + anInt1007 = PacketConstants.anIntArray553[anInt1008]; i--; } if (anInt1007 == -1) { @@ -9659,7 +9657,7 @@ public class Game extends GameShell { anInt1193 = aBuffer_1083.method440(); anInt1006 = aBuffer_1083.method410(); if (anInt1193 != 0 && anInt857 == -1) { - signlink.dnslookup(Class50.method586(anInt1193)); + Signlink.dnslookup(Base37.method586(anInt1193)); method147(); char c = '\u028A'; if (anInt1167 != 201 || anInt1120 == 1) { @@ -9689,9 +9687,9 @@ public class Game extends GameShell { } } } - for (Class30_Sub1 class30_sub1 = (Class30_Sub1) aList_1179.method252(); class30_sub1 != null; class30_sub1 = (Class30_Sub1) aList_1179.method254()) { - if (class30_sub1.anInt1297 >= anInt1268 && class30_sub1.anInt1297 < anInt1268 + 8 && class30_sub1.anInt1298 >= anInt1269 && class30_sub1.anInt1298 < anInt1269 + 8 && class30_sub1.anInt1295 == anInt918) { - class30_sub1.anInt1294 = 0; + for (SceneLocTemporary loc = (SceneLocTemporary) aList_1179.method252(); loc != null; loc = (SceneLocTemporary) aList_1179.method254()) { + if (loc.anInt1297 >= anInt1268 && loc.anInt1297 < anInt1268 + 8 && loc.anInt1298 >= anInt1269 && loc.anInt1298 < anInt1269 + 8 && loc.anInt1295 == anInt918) { + loc.anInt1294 = 0; } } anInt1008 = -1; @@ -9785,7 +9783,7 @@ public class Game extends GameShell { if (i2 != anInt956 && aBoolean1151 && !aBoolean960 && anInt1259 == 0) { anInt1227 = i2; aBoolean1228 = true; - aClass42_Sub1_1068.method558(2, anInt1227); + aOnDemand_1068.method558(2, anInt1227); } anInt956 = i2; anInt1008 = -1; @@ -9797,7 +9795,7 @@ public class Game extends GameShell { if (aBoolean1151 && !aBoolean960) { anInt1227 = j2; aBoolean1228 = false; - aClass42_Sub1_1068.method558(2, anInt1227); + aOnDemand_1068.method558(2, anInt1227); anInt1259 = k10; } anInt1008 = -1; @@ -9883,13 +9881,13 @@ public class Game extends GameShell { anIntArray1235[k16] = -1; anIntArray1236[k16] = -1; } else { - int k28 = anIntArray1235[k16] = aClass42_Sub1_1068.method562(0, j26, l23); + int k28 = anIntArray1235[k16] = aOnDemand_1068.method562(0, j26, l23); if (k28 != -1) { - aClass42_Sub1_1068.method558(3, k28); + aOnDemand_1068.method558(3, k28); } - int j30 = anIntArray1236[k16] = aClass42_Sub1_1068.method562(1, j26, l23); + int j30 = anIntArray1236[k16] = aOnDemand_1068.method562(1, j26, l23); if (j30 != -1) { - aClass42_Sub1_1068.method558(3, j30); + aOnDemand_1068.method558(3, j30); } } k16++; @@ -9930,13 +9928,13 @@ public class Game extends GameShell { int i29 = anIntArray1234[l26] = ai[l26]; int l30 = i29 >> 8 & 0xff; int l31 = i29 & 0xff; - int j32 = anIntArray1235[l26] = aClass42_Sub1_1068.method562(0, l31, l30); + int j32 = anIntArray1235[l26] = aOnDemand_1068.method562(0, l31, l30); if (j32 != -1) { - aClass42_Sub1_1068.method558(3, j32); + aOnDemand_1068.method558(3, j32); } - int i33 = anIntArray1236[l26] = aClass42_Sub1_1068.method562(1, l31, l30); + int i33 = anIntArray1236[l26] = aOnDemand_1068.method562(1, l31, l30); if (i33 != -1) { - aClass42_Sub1_1068.method558(3, i33); + aOnDemand_1068.method558(3, i33); } } } @@ -9996,11 +9994,11 @@ public class Game extends GameShell { } } } - for (Class30_Sub1 class30_sub1_1 = (Class30_Sub1) aList_1179.method252(); class30_sub1_1 != null; class30_sub1_1 = (Class30_Sub1) aList_1179.method254()) { - class30_sub1_1.anInt1297 -= i17; - class30_sub1_1.anInt1298 -= j21; - if (class30_sub1_1.anInt1297 < 0 || class30_sub1_1.anInt1298 < 0 || class30_sub1_1.anInt1297 >= 104 || class30_sub1_1.anInt1298 >= 104) { - class30_sub1_1.method329(); + for (SceneLocTemporary loc_1 = (SceneLocTemporary) aList_1179.method252(); loc_1 != null; loc_1 = (SceneLocTemporary) aList_1179.method254()) { + loc_1.anInt1297 -= i17; + loc_1.anInt1298 -= j21; + if (loc_1.anInt1297 < 0 || loc_1.anInt1298 < 0 || loc_1.anInt1297 >= 104 || loc_1.anInt1298 >= 104) { + loc_1.method329(); } } if (anInt1261 != 0) { @@ -10097,7 +10095,7 @@ public class Game extends GameShell { String s = aBuffer_1083.method415(); if (s.endsWith(":tradereq:")) { String s3 = s.substring(0, s.indexOf(":")); - long l17 = Class50.method583(s3); + long l17 = Base37.method583(s3); boolean flag2 = false; for (int j27 = 0; j27 < anInt822; j27++) { if (aLongArray925[j27] != l17) { @@ -10111,7 +10109,7 @@ public class Game extends GameShell { } } else if (s.endsWith(":duelreq:")) { String s4 = s.substring(0, s.indexOf(":")); - long l18 = Class50.method583(s4); + long l18 = Base37.method583(s4); boolean flag3 = false; for (int k27 = 0; k27 < anInt822; k27++) { if (aLongArray925[k27] != l18) { @@ -10125,7 +10123,7 @@ public class Game extends GameShell { } } else if (s.endsWith(":chalreq:")) { String s5 = s.substring(0, s.indexOf(":")); - long l19 = Class50.method583(s5); + long l19 = Base37.method583(s5); boolean flag4 = false; for (int l27 = 0; l27 < anInt822; l27++) { if (aLongArray925[l27] != l19) { @@ -10161,7 +10159,7 @@ public class Game extends GameShell { if (anInt1008 == 50) { long l4 = aBuffer_1083.method414(); int i18 = aBuffer_1083.method408(); - String s7 = Class50.method587(Class50.method584(l4)); + String s7 = Base37.method587(Base37.method584(l4)); for (int k24 = 0; k24 < anInt899; k24++) { if (l4 != aLongArray955[k24]) { continue; @@ -10323,19 +10321,19 @@ public class Game extends GameShell { try { anIntArray1240[anInt1169] = j18; anInt1169 = (anInt1169 + 1) % 100; - String s9 = Class35.method525(anInt1007 - 13, aBuffer_1083); + String s9 = Huffman.method525(anInt1007 - 13, aBuffer_1083); if (l21 != 3) { - s9 = Class34.method497(s9, 0); + s9 = Censor.method497(s9, 0); } if (l21 == 2 || l21 == 3) { - method77(s9, 7, "@cr2@" + Class50.method587(Class50.method584(l5))); + method77(s9, 7, "@cr2@" + Base37.method587(Base37.method584(l5))); } else if (l21 == 1) { - method77(s9, 7, "@cr1@" + Class50.method587(Class50.method584(l5))); + method77(s9, 7, "@cr1@" + Base37.method587(Base37.method584(l5))); } else { - method77(s9, 3, Class50.method587(Class50.method584(l5))); + method77(s9, 3, Base37.method587(Base37.method584(l5))); } } catch (Exception exception1) { - signlink.reporterror("cde1"); + Signlink.reporterror("cde1"); } } anInt1008 = -1; @@ -10683,7 +10681,7 @@ public class Game extends GameShell { anInt1008 = -1; return true; } - signlink.reporterror("T1 - " + anInt1008 + "," + anInt1007 + " - " + anInt842 + "," + anInt843); + Signlink.reporterror("T1 - " + anInt1008 + "," + anInt1007 + " - " + anInt842 + "," + anInt843); method44(); } catch (IOException _ex) { method68(); @@ -10692,7 +10690,7 @@ public class Game extends GameShell { for (int j15 = 0; j15 < anInt1007 && j15 < 50; j15++) { s2.append(aBuffer_1083.aByteArray1405[j15]).append(","); } - signlink.reporterror(s2.toString()); + Signlink.reporterror(s2.toString()); method44(); exception.printStackTrace(); } diff --git a/src/main/java/Hashtable.java b/src/main/java/Hashtable.java index 10c5f07..3bf8ee8 100644 --- a/src/main/java/Hashtable.java +++ b/src/main/java/Hashtable.java @@ -5,38 +5,38 @@ public class Hashtable { public final int anInt39; - public final Class30[] aClass30Array40; + public final LinkedListNode[] aNodeArray40; public Hashtable(int j) { anInt39 = j; - aClass30Array40 = new Class30[j]; + aNodeArray40 = new LinkedListNode[j]; for (int k = 0; k < j; k++) { - Class30 class30 = aClass30Array40[k] = new Class30(); - class30.aClass30_549 = class30; - class30.aClass30_550 = class30; + LinkedListNode node = aNodeArray40[k] = new LinkedListNode(); + node.aNode_549 = node; + node.aNode_550 = node; } } - public Class30 method148(long l) { - Class30 class30 = aClass30Array40[(int) (l & (long) (anInt39 - 1))]; - for (Class30 class30_1 = class30.aClass30_549; class30_1 != class30; class30_1 = class30_1.aClass30_549) { - if (class30_1.aLong548 == l) { - return class30_1; + public LinkedListNode method148(long l) { + LinkedListNode node = aNodeArray40[(int) (l & (long) (anInt39 - 1))]; + for (LinkedListNode node_1 = node.aNode_549; node_1 != node; node_1 = node_1.aNode_549) { + if (node_1.aLong548 == l) { + return node_1; } } return null; } - public void method149(Class30 class30, long l) { - if (class30.aClass30_550 != null) { - class30.method329(); + public void method149(LinkedListNode node, long l) { + if (node.aNode_550 != null) { + node.method329(); } - Class30 class30_1 = aClass30Array40[(int) (l & (long) (anInt39 - 1))]; - class30.aClass30_550 = class30_1.aClass30_550; - class30.aClass30_549 = class30_1; - class30.aClass30_550.aClass30_549 = class30; - class30.aClass30_549.aClass30_550 = class30; - class30.aLong548 = l; + LinkedListNode node_1 = aNodeArray40[(int) (l & (long) (anInt39 - 1))]; + node.aNode_550 = node_1.aNode_550; + node.aNode_549 = node_1; + node.aNode_550.aNode_549 = node; + node.aNode_549.aNode_550 = node; + node.aLong548 = l; } } diff --git a/src/main/java/Class35.java b/src/main/java/Huffman.java similarity index 99% rename from src/main/java/Class35.java rename to src/main/java/Huffman.java index 6e06c8e..eafd987 100644 --- a/src/main/java/Class35.java +++ b/src/main/java/Huffman.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class35 { +public class Huffman { public static final char[] aCharArray631 = new char[100]; public static final Buffer A_BUFFER___632 = new Buffer(new byte[100]); diff --git a/src/main/java/Class38.java b/src/main/java/IDKType.java similarity index 87% rename from src/main/java/Class38.java rename to src/main/java/IDKType.java index ae76ec2..97bbf1e 100644 --- a/src/main/java/Class38.java +++ b/src/main/java/IDKType.java @@ -2,10 +2,10 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class38 { +public class IDKType { public static int anInt655; - public static Class38[] aClass38Array656; + public static IDKType[] aIDKTypeArray656; public int anInt657 = -1; public int[] anIntArray658; public final int[] anIntArray659 = new int[6]; @@ -13,20 +13,20 @@ public class Class38 { public final int[] anIntArray661 = {-1, -1, -1, -1, -1}; public boolean aBoolean662 = false; - public Class38() { + public IDKType() { } - public static void method535(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("idk.dat", null)); + public static void method535(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("idk.dat", null)); anInt655 = buffer.method410(); - if (aClass38Array656 == null) { - aClass38Array656 = new Class38[anInt655]; + if (aIDKTypeArray656 == null) { + aIDKTypeArray656 = new IDKType[anInt655]; } for (int j = 0; j < anInt655; j++) { - if (aClass38Array656[j] == null) { - aClass38Array656[j] = new Class38(); + if (aIDKTypeArray656[j] == null) { + aIDKTypeArray656[j] = new IDKType(); } - aClass38Array656[j].method536(buffer); + aIDKTypeArray656[j].method536(buffer); } } diff --git a/src/main/java/Image24.java b/src/main/java/Image24.java index fc4590b..caea618 100644 --- a/src/main/java/Image24.java +++ b/src/main/java/Image24.java @@ -42,9 +42,9 @@ public class Image24 extends Draw2D { } } - public Image24(Class44 class44, String s, int i) { - Buffer buffer = new Buffer(class44.method571(s + ".dat", null)); - Buffer buffer_1 = new Buffer(class44.method571("index.dat", null)); + public Image24(FileArchive archive, String s, int i) { + Buffer buffer = new Buffer(archive.method571(s + ".dat", null)); + Buffer buffer_1 = new Buffer(archive.method571("index.dat", null)); buffer_1.anInt1406 = buffer.method410(); anInt1444 = buffer_1.method410(); anInt1445 = buffer_1.method410(); diff --git a/src/main/java/Image8.java b/src/main/java/Image8.java index 68bbf57..cd9043a 100644 --- a/src/main/java/Image8.java +++ b/src/main/java/Image8.java @@ -13,9 +13,9 @@ public class Image8 extends Draw2D { public int anInt1456; public int anInt1457; - public Image8(Class44 class44, String s, int i) { - Buffer buffer = new Buffer(class44.method571(s + ".dat", null)); - Buffer buffer_1 = new Buffer(class44.method571("index.dat", null)); + public Image8(FileArchive archive, String s, int i) { + Buffer buffer = new Buffer(archive.method571(s + ".dat", null)); + Buffer buffer_1 = new Buffer(archive.method571("index.dat", null)); buffer_1.anInt1406 = buffer.method410(); anInt1456 = buffer_1.method410(); anInt1457 = buffer_1.method410(); diff --git a/src/main/java/LRUCache.java b/src/main/java/LRUCache.java index fbbf440..1ee0b8c 100644 --- a/src/main/java/LRUCache.java +++ b/src/main/java/LRUCache.java @@ -6,51 +6,51 @@ public class LRUCache { public int anInt298; public int anInt299; - public final Class30_Sub2 aClass30_Sub2_300 = new Class30_Sub2(); + public final DoublyLinkedListNode aNode_300 = new DoublyLinkedListNode(); public final int anInt301; public int anInt302; public final Hashtable aHashtable_303 = new Hashtable(1024); - public final LinkedList aLinkedList_304 = new LinkedList(); + public final DoublyLinkedList aDoublyLinkedList_304 = new DoublyLinkedList(); public LRUCache(int i) { anInt301 = i; anInt302 = i; } - public Class30_Sub2 method222(long l) { - Class30_Sub2 class30_sub2 = (Class30_Sub2) aHashtable_303.method148(l); - if (class30_sub2 != null) { - aLinkedList_304.method150(class30_sub2); + public DoublyLinkedListNode method222(long l) { + DoublyLinkedListNode node = (DoublyLinkedListNode) aHashtable_303.method148(l); + if (node != null) { + aDoublyLinkedList_304.method150(node); anInt299++; } else { anInt298++; } - return class30_sub2; + return node; } - public void method223(Class30_Sub2 class30_sub2, long l) { + public void method223(DoublyLinkedListNode node, long l) { if (anInt302 == 0) { - Class30_Sub2 class30_sub2_1 = aLinkedList_304.method151(); - class30_sub2_1.method329(); - class30_sub2_1.method330(); - if (class30_sub2_1 == aClass30_Sub2_300) { - Class30_Sub2 class30_sub2_2 = aLinkedList_304.method151(); - class30_sub2_2.method329(); - class30_sub2_2.method330(); + DoublyLinkedListNode node_1 = aDoublyLinkedList_304.method151(); + node_1.method329(); + node_1.method330(); + if (node_1 == aNode_300) { + DoublyLinkedListNode node_2 = aDoublyLinkedList_304.method151(); + node_2.method329(); + node_2.method330(); } } else { anInt302--; } - aHashtable_303.method149(class30_sub2, l); - aLinkedList_304.method150(class30_sub2); + aHashtable_303.method149(node, l); + aDoublyLinkedList_304.method150(node); } public void method224() { do { - Class30_Sub2 class30_sub2 = aLinkedList_304.method151(); - if (class30_sub2 != null) { - class30_sub2.method329(); - class30_sub2.method330(); + DoublyLinkedListNode node = aDoublyLinkedList_304.method151(); + if (node != null) { + node.method329(); + node.method330(); } else { anInt302 = anInt301; return; diff --git a/src/main/java/LinkedList.java b/src/main/java/LinkedList.java index eb0ca56..b95f203 100644 --- a/src/main/java/LinkedList.java +++ b/src/main/java/LinkedList.java @@ -4,63 +4,99 @@ public class LinkedList { - public final Class30_Sub2 aClass30_Sub2_43; - public Class30_Sub2 aClass30_Sub2_44; + public final LinkedListNode aNode_346; + public LinkedListNode aNode_347; public LinkedList() { - aClass30_Sub2_43 = new Class30_Sub2(); - aClass30_Sub2_43.aClass30_Sub2_1303 = aClass30_Sub2_43; - aClass30_Sub2_43.aClass30_Sub2_1304 = aClass30_Sub2_43; + aNode_346 = new LinkedListNode(); + aNode_346.aNode_549 = aNode_346; + aNode_346.aNode_550 = aNode_346; } - public void method150(Class30_Sub2 class30_sub2) { - if (class30_sub2.aClass30_Sub2_1304 != null) { - class30_sub2.method330(); + public void method249(LinkedListNode node) { + if (node.aNode_550 != null) { + node.method329(); } - class30_sub2.aClass30_Sub2_1304 = aClass30_Sub2_43.aClass30_Sub2_1304; - class30_sub2.aClass30_Sub2_1303 = aClass30_Sub2_43; - class30_sub2.aClass30_Sub2_1304.aClass30_Sub2_1303 = class30_sub2; - class30_sub2.aClass30_Sub2_1303.aClass30_Sub2_1304 = class30_sub2; + node.aNode_550 = aNode_346.aNode_550; + node.aNode_549 = aNode_346; + node.aNode_550.aNode_549 = node; + node.aNode_549.aNode_550 = node; } - public Class30_Sub2 method151() { - Class30_Sub2 class30_sub2 = aClass30_Sub2_43.aClass30_Sub2_1303; - if (class30_sub2 == aClass30_Sub2_43) { + public void method250(LinkedListNode node) { + if (node.aNode_550 != null) { + node.method329(); + } + node.aNode_550 = aNode_346; + node.aNode_549 = aNode_346.aNode_549; + node.aNode_550.aNode_549 = node; + node.aNode_549.aNode_550 = node; + } + + public LinkedListNode method251() { + LinkedListNode node = aNode_346.aNode_549; + if (node == aNode_346) { return null; } else { - class30_sub2.method330(); - return class30_sub2; + node.method329(); + return node; } } - public Class30_Sub2 method152() { - Class30_Sub2 class30_sub2 = aClass30_Sub2_43.aClass30_Sub2_1303; - if (class30_sub2 == aClass30_Sub2_43) { - aClass30_Sub2_44 = null; + public LinkedListNode method252() { + LinkedListNode node = aNode_346.aNode_549; + if (node == aNode_346) { + aNode_347 = null; return null; } else { - aClass30_Sub2_44 = class30_sub2.aClass30_Sub2_1303; - return class30_sub2; + aNode_347 = node.aNode_549; + return node; } } - public Class30_Sub2 method153() { - Class30_Sub2 class30_sub2 = aClass30_Sub2_44; - if (class30_sub2 == aClass30_Sub2_43) { - aClass30_Sub2_44 = null; + public LinkedListNode method253() { + LinkedListNode node = aNode_346.aNode_550; + if (node == aNode_346) { + aNode_347 = null; return null; } else { - aClass30_Sub2_44 = class30_sub2.aClass30_Sub2_1303; - return class30_sub2; + aNode_347 = node.aNode_550; + return node; } } - public int method154() { - int i = 0; - for (Class30_Sub2 class30_sub2 = aClass30_Sub2_43.aClass30_Sub2_1303; class30_sub2 != aClass30_Sub2_43; class30_sub2 = class30_sub2.aClass30_Sub2_1303) { - i++; + public LinkedListNode method254() { + LinkedListNode node = aNode_347; + if (node == aNode_346) { + aNode_347 = null; + return null; + } else { + aNode_347 = node.aNode_549; + return node; } - return i; + } + + public LinkedListNode method255() { + LinkedListNode node = aNode_347; + if (node == aNode_346) { + aNode_347 = null; + return null; + } + aNode_347 = node.aNode_550; + return node; + } + + public void method256() { + if (aNode_346.aNode_549 == aNode_346) { + return; + } + do { + LinkedListNode node = aNode_346.aNode_549; + if (node == aNode_346) { + return; + } + node.method329(); + } while (true); } } diff --git a/src/main/java/LinkedListNode.java b/src/main/java/LinkedListNode.java new file mode 100644 index 0000000..c5f9e2f --- /dev/null +++ b/src/main/java/LinkedListNode.java @@ -0,0 +1,23 @@ +// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. +// Jad home page: http://www.kpdus.com/jad.html +// Decompiler options: packimports(3) + +public class LinkedListNode { + + public long aLong548; + public LinkedListNode aNode_549; + public LinkedListNode aNode_550; + + public LinkedListNode() { + } + + public void method329() { + if (aNode_550 != null) { + aNode_550.aNode_549 = aNode_549; + aNode_549.aNode_550 = aNode_550; + aNode_549 = null; + aNode_550 = null; + } + } + +} diff --git a/src/main/java/LocEntity.java b/src/main/java/LocEntity.java index 9f828a2..f395809 100644 --- a/src/main/java/LocEntity.java +++ b/src/main/java/LocEntity.java @@ -36,10 +36,10 @@ public class LocEntity extends Entity { anInt1608 -= (int) (Math.random() * (double) aType_1607.method258(anInt1599)); } } - Class46 class46 = Class46.method572(anInt1610); - anInt1601 = class46.anInt774; - anInt1602 = class46.anInt749; - anIntArray1600 = class46.anIntArray759; + LocType type = LocType.method572(anInt1610); + anInt1601 = type.anInt774; + anInt1602 = type.anInt749; + anIntArray1600 = type.anIntArray759; } @Override @@ -68,26 +68,26 @@ public class LocEntity extends Entity { j = aType_1607.anIntArray353[anInt1599]; } } - Class46 class46; + LocType type; if (anIntArray1600 != null) { - class46 = method457(); + type = method457(); } else { - class46 = Class46.method572(anInt1610); + type = LocType.method572(anInt1610); } - if (class46 == null) { + if (type == null) { return null; } else { - return class46.method578(anInt1611, anInt1612, anInt1603, anInt1604, anInt1605, anInt1606, j); + return type.method578(anInt1611, anInt1612, anInt1603, anInt1604, anInt1605, anInt1606, j); } } - public Class46 method457() { + public LocType method457() { int i = -1; if (anInt1601 != -1) { - Class37 class37 = Class37.aClass37Array646[anInt1601]; - int k = class37.anInt648; - int l = class37.anInt649; - int i1 = class37.anInt650; + VarbitType varbit = VarbitType.aVarbitArray646[anInt1601]; + int k = varbit.anInt648; + int l = varbit.anInt649; + int i1 = varbit.anInt650; int j1 = Game.anIntArray1232[i1 - l]; i = aGame1609.anIntArray971[k] >> l & j1; } else if (anInt1602 != -1) { @@ -96,7 +96,7 @@ public class LocEntity extends Entity { if (i < 0 || i >= anIntArray1600.length || anIntArray1600[i] == -1) { return null; } else { - return Class46.method572(anIntArray1600[i]); + return LocType.method572(anIntArray1600[i]); } } diff --git a/src/main/java/Class46.java b/src/main/java/LocType.java similarity index 91% rename from src/main/java/Class46.java rename to src/main/java/LocType.java index fb31570..a74d5ff 100644 --- a/src/main/java/Class46.java +++ b/src/main/java/LocType.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class46 { +public class LocType { public static final Model[] A_MODEL_ARRAY_741 = new Model[4]; public static boolean aBoolean752; @@ -12,7 +12,7 @@ public class Class46 { public static Game aGame765; public static int anInt771; public static LRUCache aCache_780 = new LRUCache(30); - public static Class46[] aClass46Array782; + public static LocType[] aTypeArray782; public static LRUCache aCache_785 = new LRUCache(500); public boolean aBoolean736; @@ -53,35 +53,35 @@ public class Class46 { public int[] anIntArray784; public String[] aStringArray786; - public Class46() { + public LocType() { } - public static Class46 method572(int i) { + public static LocType method572(int i) { for (int j = 0; j < 20; j++) { - if (aClass46Array782[j].anInt754 == i) { - return aClass46Array782[j]; + if (aTypeArray782[j].anInt754 == i) { + return aTypeArray782[j]; } } anInt771 = (anInt771 + 1) % 20; - Class46 class46 = aClass46Array782[anInt771]; + LocType type = aTypeArray782[anInt771]; aBuffer_753.anInt1406 = anIntArray755[i]; - class46.anInt754 = i; - class46.method573(); - class46.method582(aBuffer_753); - return class46; + type.anInt754 = i; + type.method573(); + type.method582(aBuffer_753); + return type; } public static void method575() { aCache_785 = null; aCache_780 = null; anIntArray755 = null; - aClass46Array782 = null; + aTypeArray782 = null; aBuffer_753 = null; } - public static void method576(Class44 class44) { - aBuffer_753 = new Buffer(class44.method571("loc.dat", null)); - Buffer buffer = new Buffer(class44.method571("loc.idx", null)); + public static void method576(FileArchive archive) { + aBuffer_753 = new Buffer(archive.method571("loc.dat", null)); + Buffer buffer = new Buffer(archive.method571("loc.idx", null)); anInt756 = buffer.method410(); anIntArray755 = new int[anInt756]; int i = 2; @@ -89,9 +89,9 @@ public class Class46 { anIntArray755[j] = i; i += buffer.method410(); } - aClass46Array782 = new Class46[20]; + aTypeArray782 = new LocType[20]; for (int k = 0; k < 20; k++) { - aClass46Array782[k] = new Class46(); + aTypeArray782[k] = new LocType(); } } @@ -134,12 +134,12 @@ public class Class46 { anIntArray759 = null; } - public void method574(Class42_Sub1 class42_sub1) { + public void method574(OnDemand onDemand) { if (anIntArray773 == null) { return; } for (int k : anIntArray773) { - class42_sub1.method560(k & 0xffff, 0); + onDemand.method560(k & 0xffff, 0); } } @@ -199,13 +199,13 @@ public class Class46 { return flag1; } - public Class46 method580() { + public LocType method580() { int i = -1; if (anInt774 != -1) { - Class37 class37 = Class37.aClass37Array646[anInt774]; - int j = class37.anInt648; - int k = class37.anInt649; - int l = class37.anInt650; + VarbitType varbit = VarbitType.aVarbitArray646[anInt774]; + int j = varbit.anInt648; + int k = varbit.anInt649; + int l = varbit.anInt650; int i1 = Game.anIntArray1232[l - k]; i = aGame765.anIntArray971[j] >> k & i1; } else if (anInt749 != -1) { @@ -296,7 +296,7 @@ public class Class46 { flag = anInt748 != 128 || anInt772 != 128 || anInt740 != 128; boolean flag2; flag2 = anInt738 != 0 || anInt745 != 0 || anInt783 != 0; - Model model_3 = new Model(anIntArray784 == null, Class36.method532(k), l == 0 && k == -1 && !flag && !flag2, model); + Model model_3 = new Model(anIntArray784 == null, SeqTransform.method532(k), l == 0 && k == -1 && !flag && !flag2, model); if (k != -1) { model_3.method469(); model_3.method470(k); diff --git a/src/main/java/Model.java b/src/main/java/Model.java index ab76feb..21f0c6a 100644 --- a/src/main/java/Model.java +++ b/src/main/java/Model.java @@ -11,7 +11,7 @@ public class Model extends Entity { public static int[] anIntArray1624 = new int[2000]; public static int[] anIntArray1625 = new int[2000]; public static ModelHeader[] aHeaderArray1661; - public static Class42 aClass42_1662; + public static OnDemand aClass42_1662; public static boolean[] aBooleanArray1663 = new boolean[4096]; public static boolean[] aBooleanArray1664 = new boolean[4096]; public static int[] anIntArray1665 = new int[4096]; @@ -77,7 +77,7 @@ public class Model extends Entity { public int[][] anIntArrayArray1657; public int[][] anIntArrayArray1658; public boolean aBoolean1659 = false; - public Class33[] aClass33Array1660; + public VertexNormal[] aNormalArray1660; public Model() { } @@ -537,16 +537,16 @@ public class Model extends Entity { anIntArray1637[i1] = model.anIntArray1637[i1]; } } - super.aClass33Array1425 = new Class33[anInt1626]; + super.aNormalArray1425 = new VertexNormal[anInt1626]; for (int j1 = 0; j1 < anInt1626; j1++) { - Class33 class33 = super.aClass33Array1425[j1] = new Class33(); - Class33 class33_1 = model.aClass33Array1425[j1]; - class33.anInt602 = class33_1.anInt602; - class33.anInt603 = class33_1.anInt603; - class33.anInt604 = class33_1.anInt604; - class33.anInt605 = class33_1.anInt605; + VertexNormal normal = super.aNormalArray1425[j1] = new VertexNormal(); + VertexNormal normal_1 = model.aNormalArray1425[j1]; + normal.anInt602 = normal_1.anInt602; + normal.anInt603 = normal_1.anInt603; + normal.anInt604 = normal_1.anInt604; + normal.anInt605 = normal_1.anInt605; } - aClass33Array1660 = model.aClass33Array1660; + aNormalArray1660 = model.aNormalArray1660; } else { anIntArray1634 = model.anIntArray1634; anIntArray1635 = model.anIntArray1635; @@ -599,7 +599,7 @@ public class Model extends Entity { anIntArray1692 = null; } - public static void method459(int i, Class42 class42) { + public static void method459(int i, OnDemand class42) { aHeaderArray1661 = new ModelHeader[i]; aClass42_1662 = class42; } @@ -933,17 +933,17 @@ public class Model extends Entity { if (i == -1) { return; } - Class36 class36 = Class36.method531(i); - if (class36 == null) { + SeqTransform transform = SeqTransform.method531(i); + if (transform == null) { return; } - SeqSkeleton skeleton = class36.aSkeleton_637; + SeqSkeleton skeleton = transform.aSkeleton_637; anInt1681 = 0; anInt1682 = 0; anInt1683 = 0; - for (int k = 0; k < class36.anInt638; k++) { - int l = class36.anIntArray639[k]; - method472(skeleton.anIntArray342[l], skeleton.anIntArrayArray343[l], class36.anIntArray640[k], class36.anIntArray641[k], class36.anIntArray642[k]); + for (int k = 0; k < transform.anInt638; k++) { + int l = transform.anIntArray639[k]; + method472(skeleton.anIntArray342[l], skeleton.anIntArrayArray343[l], transform.anIntArray640[k], transform.anIntArray641[k], transform.anIntArray642[k]); } } @@ -955,27 +955,27 @@ public class Model extends Entity { method470(k); return; } - Class36 class36 = Class36.method531(k); - if (class36 == null) { + SeqTransform transform = SeqTransform.method531(k); + if (transform == null) { return; } - Class36 class36_1 = Class36.method531(j); - if (class36_1 == null) { + SeqTransform transform_1 = SeqTransform.method531(j); + if (transform_1 == null) { method470(k); return; } - SeqSkeleton skeleton = class36.aSkeleton_637; + SeqSkeleton skeleton = transform.aSkeleton_637; anInt1681 = 0; anInt1682 = 0; anInt1683 = 0; int l = 0; int i1 = ai[l++]; - for (int j1 = 0; j1 < class36.anInt638; j1++) { + for (int j1 = 0; j1 < transform.anInt638; j1++) { int k1; - for (k1 = class36.anIntArray639[j1]; k1 > i1; i1 = ai[l++]) { + for (k1 = transform.anIntArray639[j1]; k1 > i1; i1 = ai[l++]) { } if (k1 != i1 || skeleton.anIntArray342[k1] == 0) { - method472(skeleton.anIntArray342[k1], skeleton.anIntArrayArray343[k1], class36.anIntArray640[j1], class36.anIntArray641[j1], class36.anIntArray642[j1]); + method472(skeleton.anIntArray342[k1], skeleton.anIntArrayArray343[k1], transform.anIntArray640[j1], transform.anIntArray641[j1], transform.anIntArray642[j1]); } } anInt1681 = 0; @@ -983,12 +983,12 @@ public class Model extends Entity { anInt1683 = 0; l = 0; i1 = ai[l++]; - for (int l1 = 0; l1 < class36_1.anInt638; l1++) { + for (int l1 = 0; l1 < transform_1.anInt638; l1++) { int i2; - for (i2 = class36_1.anIntArray639[l1]; i2 > i1; i1 = ai[l++]) { + for (i2 = transform_1.anIntArray639[l1]; i2 > i1; i1 = ai[l++]) { } if (i2 == i1 || skeleton.anIntArray342[i2] == 0) { - method472(skeleton.anIntArray342[i2], skeleton.anIntArrayArray343[i2], class36_1.anIntArray640[l1], class36_1.anIntArray641[l1], class36_1.anIntArray642[l1]); + method472(skeleton.anIntArray342[i2], skeleton.anIntArrayArray343[i2], transform_1.anIntArray640[l1], transform_1.anIntArray641[l1], transform_1.anIntArray642[l1]); } } } @@ -1172,10 +1172,10 @@ public class Model extends Entity { anIntArray1635 = new int[anInt1630]; anIntArray1636 = new int[anInt1630]; } - if (super.aClass33Array1425 == null) { - super.aClass33Array1425 = new Class33[anInt1626]; + if (super.aNormalArray1425 == null) { + super.aNormalArray1425 = new VertexNormal[anInt1626]; for (int l1 = 0; l1 < anInt1626; l1++) { - super.aClass33Array1425[l1] = new Class33(); + super.aNormalArray1425[l1] = new VertexNormal(); } } for (int i2 = 0; i2 < anInt1630; i2++) { @@ -1203,21 +1203,21 @@ public class Model extends Entity { i5 = (i5 * 256) / k5; j5 = (j5 * 256) / k5; if (anIntArray1637 == null || (anIntArray1637[i2] & 1) == 0) { - Class33 class33_2 = super.aClass33Array1425[j2]; - class33_2.anInt602 += l4; - class33_2.anInt603 += i5; - class33_2.anInt604 += j5; - class33_2.anInt605++; - class33_2 = super.aClass33Array1425[l2]; - class33_2.anInt602 += l4; - class33_2.anInt603 += i5; - class33_2.anInt604 += j5; - class33_2.anInt605++; - class33_2 = super.aClass33Array1425[i3]; - class33_2.anInt602 += l4; - class33_2.anInt603 += i5; - class33_2.anInt604 += j5; - class33_2.anInt605++; + VertexNormal normal_2 = super.aNormalArray1425[j2]; + normal_2.anInt602 += l4; + normal_2.anInt603 += i5; + normal_2.anInt604 += j5; + normal_2.anInt605++; + normal_2 = super.aNormalArray1425[l2]; + normal_2.anInt602 += l4; + normal_2.anInt603 += i5; + normal_2.anInt604 += j5; + normal_2.anInt605++; + normal_2 = super.aNormalArray1425[i3]; + normal_2.anInt602 += l4; + normal_2.anInt603 += i5; + normal_2.anInt604 += j5; + normal_2.anInt605++; } else { int l5 = i + (k * l4 + l * i5 + i1 * j5) / (k1 + k1 / 2); anIntArray1634[i2] = method481(anIntArray1640[i2], l5, anIntArray1637[i2]); @@ -1226,14 +1226,14 @@ public class Model extends Entity { if (flag) { method480(i, k1, k, l, i1); } else { - aClass33Array1660 = new Class33[anInt1626]; + aNormalArray1660 = new VertexNormal[anInt1626]; for (int k2 = 0; k2 < anInt1626; k2++) { - Class33 class33 = super.aClass33Array1425[k2]; - Class33 class33_1 = aClass33Array1660[k2] = new Class33(); - class33_1.anInt602 = class33.anInt602; - class33_1.anInt603 = class33.anInt603; - class33_1.anInt604 = class33.anInt604; - class33_1.anInt605 = class33.anInt605; + VertexNormal normal = super.aNormalArray1425[k2]; + VertexNormal normal_1 = aNormalArray1660[k2] = new VertexNormal(); + normal_1.anInt602 = normal.anInt602; + normal_1.anInt603 = normal.anInt603; + normal_1.anInt604 = normal.anInt604; + normal_1.anInt605 = normal.anInt605; } } if (flag) { @@ -1250,31 +1250,31 @@ public class Model extends Entity { int j2 = anIntArray1633[j1]; if (anIntArray1637 == null) { int i3 = anIntArray1640[j1]; - Class33 class33 = super.aClass33Array1425[k1]; - int k2 = i + (k * class33.anInt602 + l * class33.anInt603 + i1 * class33.anInt604) / (j * class33.anInt605); + VertexNormal normal = super.aNormalArray1425[k1]; + int k2 = i + (k * normal.anInt602 + l * normal.anInt603 + i1 * normal.anInt604) / (j * normal.anInt605); anIntArray1634[j1] = method481(i3, k2, 0); - class33 = super.aClass33Array1425[i2]; - k2 = i + (k * class33.anInt602 + l * class33.anInt603 + i1 * class33.anInt604) / (j * class33.anInt605); + normal = super.aNormalArray1425[i2]; + k2 = i + (k * normal.anInt602 + l * normal.anInt603 + i1 * normal.anInt604) / (j * normal.anInt605); anIntArray1635[j1] = method481(i3, k2, 0); - class33 = super.aClass33Array1425[j2]; - k2 = i + (k * class33.anInt602 + l * class33.anInt603 + i1 * class33.anInt604) / (j * class33.anInt605); + normal = super.aNormalArray1425[j2]; + k2 = i + (k * normal.anInt602 + l * normal.anInt603 + i1 * normal.anInt604) / (j * normal.anInt605); anIntArray1636[j1] = method481(i3, k2, 0); } else if ((anIntArray1637[j1] & 1) == 0) { int j3 = anIntArray1640[j1]; int k3 = anIntArray1637[j1]; - Class33 class33_1 = super.aClass33Array1425[k1]; - int l2 = i + (k * class33_1.anInt602 + l * class33_1.anInt603 + i1 * class33_1.anInt604) / (j * class33_1.anInt605); + VertexNormal normal_1 = super.aNormalArray1425[k1]; + int l2 = i + (k * normal_1.anInt602 + l * normal_1.anInt603 + i1 * normal_1.anInt604) / (j * normal_1.anInt605); anIntArray1634[j1] = method481(j3, l2, k3); - class33_1 = super.aClass33Array1425[i2]; - l2 = i + (k * class33_1.anInt602 + l * class33_1.anInt603 + i1 * class33_1.anInt604) / (j * class33_1.anInt605); + normal_1 = super.aNormalArray1425[i2]; + l2 = i + (k * normal_1.anInt602 + l * normal_1.anInt603 + i1 * normal_1.anInt604) / (j * normal_1.anInt605); anIntArray1635[j1] = method481(j3, l2, k3); - class33_1 = super.aClass33Array1425[j2]; - l2 = i + (k * class33_1.anInt602 + l * class33_1.anInt603 + i1 * class33_1.anInt604) / (j * class33_1.anInt605); + normal_1 = super.aNormalArray1425[j2]; + l2 = i + (k * normal_1.anInt602 + l * normal_1.anInt603 + i1 * normal_1.anInt604) / (j * normal_1.anInt605); anIntArray1636[j1] = method481(j3, l2, k3); } } - super.aClass33Array1425 = null; - aClass33Array1660 = null; + super.aNormalArray1425 = null; + aNormalArray1660 = null; anIntArray1655 = null; anIntArray1656 = null; if (anIntArray1637 != null) { diff --git a/src/main/java/Class48.java b/src/main/java/MouseRecorder.java similarity index 89% rename from src/main/java/Class48.java rename to src/main/java/MouseRecorder.java index bfdbce9..27f1d55 100644 --- a/src/main/java/Class48.java +++ b/src/main/java/MouseRecorder.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class48 implements Runnable { +public class MouseRecorder implements Runnable { public final Object lock = new Object(); public final Game aGame805; @@ -11,7 +11,7 @@ public class Class48 implements Runnable { public final int[] anIntArray809 = new int[500]; public int anInt810; - public Class48(Game game1) { + public MouseRecorder(Game game1) { aGame805 = game1; } diff --git a/src/main/java/NPCEntity.java b/src/main/java/NPCEntity.java index e97a403..d61a1ab 100644 --- a/src/main/java/NPCEntity.java +++ b/src/main/java/NPCEntity.java @@ -40,7 +40,7 @@ public class NPCEntity extends PathingEntity { Model model_1 = type.method266(); if (model_1 != null) { int j = type.aType_407.anIntArray353[super.anInt1521]; - Model class30_sub2_sub4_sub6_2 = new Model(true, Class36.method532(j), false, model_1); + Model class30_sub2_sub4_sub6_2 = new Model(true, SeqTransform.method532(j), false, model_1); class30_sub2_sub4_sub6_2.method475(0, -super.anInt1524, 0); class30_sub2_sub4_sub6_2.method469(); class30_sub2_sub4_sub6_2.method470(j); diff --git a/src/main/java/NPCType.java b/src/main/java/NPCType.java index be64c54..4f8ae99 100644 --- a/src/main/java/NPCType.java +++ b/src/main/java/NPCType.java @@ -59,9 +59,9 @@ public class NPCType { return type; } - public static void method162(Class44 class44) { - aBuffer_60 = new Buffer(class44.method571("npc.dat", null)); - Buffer buffer = new Buffer(class44.method571("npc.idx", null)); + public static void method162(FileArchive archive) { + aBuffer_60 = new Buffer(archive.method571("npc.dat", null)); + Buffer buffer = new Buffer(archive.method571("npc.idx", null)); anInt62 = buffer.method410(); anIntArray72 = new int[anInt62]; int i = 2; @@ -124,10 +124,10 @@ public class NPCType { public NPCType method161() { int j = -1; if (anInt57 != -1) { - Class37 class37 = Class37.aClass37Array646[anInt57]; - int k = class37.anInt648; - int l = class37.anInt649; - int i1 = class37.anInt650; + VarbitType varbit = VarbitType.aVarbitArray646[anInt57]; + int k = varbit.anInt648; + int l = varbit.anInt649; + int i1 = varbit.anInt650; int j1 = Game.anIntArray1232[i1 - l]; j = aGame82.anIntArray971[k] >> l & j1; } else if (anInt59 != -1) { @@ -179,7 +179,7 @@ public class NPCType { aCache_95.method223(model, aLong78); } Model model_1 = Model.A_MODEL___1621; - model_1.method464(model, Class36.method532(k) & Class36.method532(j)); + model_1.method464(model, SeqTransform.method532(k) & SeqTransform.method532(j)); if (k != -1 && j != -1) { model_1.method471(ai, j, k); } else if (k != -1) { diff --git a/src/main/java/ObjType.java b/src/main/java/ObjType.java index 90d8790..c834c14 100644 --- a/src/main/java/ObjType.java +++ b/src/main/java/ObjType.java @@ -64,9 +64,9 @@ public class ObjType { aBuffer_183 = null; } - public static void method193(Class44 class44) { - aBuffer_183 = new Buffer(class44.method571("obj.dat", null)); - Buffer buffer = new Buffer(class44.method571("obj.idx", null)); + public static void method193(FileArchive archive) { + aBuffer_183 = new Buffer(archive.method571("obj.dat", null)); + Buffer buffer = new Buffer(archive.method571("obj.idx", null)); anInt203 = buffer.method410(); anIntArray195 = new int[anInt203]; int i = 2; diff --git a/src/main/java/Class42_Sub1.java b/src/main/java/OnDemand.java similarity index 92% rename from src/main/java/Class42_Sub1.java rename to src/main/java/OnDemand.java index b20fddb..261bd03 100644 --- a/src/main/java/Class42_Sub1.java +++ b/src/main/java/OnDemand.java @@ -2,8 +2,6 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -import sign.signlink; - import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; @@ -12,10 +10,10 @@ import java.net.Socket; import java.util.zip.CRC32; import java.util.zip.GZIPInputStream; -public class Class42_Sub1 extends Class42 implements Runnable { +public class OnDemand implements Runnable { public int anInt1330; - public final DoublyLinkedList aList_1331 = new DoublyLinkedList(); + public final LinkedList aList_1331 = new LinkedList(); public int anInt1332; public String aString1333 = ""; public int anInt1334; @@ -26,7 +24,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { public int anInt1341; public final byte[][] aByteArrayArray1342 = new byte[4][]; public Game aGame1343; - public final DoublyLinkedList aList_1344 = new DoublyLinkedList(); + public final LinkedList aList_1344 = new LinkedList(); public int anInt1346; public int anInt1347; public int[] anIntArray1348; @@ -37,24 +35,24 @@ public class Class42_Sub1 extends Class42 implements Runnable { public OutputStream anOutputStream1354; public int[] anIntArray1356; public boolean aBoolean1357 = false; - public final DoublyLinkedList aList_1358 = new DoublyLinkedList(); + public final LinkedList aList_1358 = new LinkedList(); public final byte[] aByteArray1359 = new byte[65000]; public int[] anIntArray1360; - public final LinkedList aLinkedList_1361 = new LinkedList(); + public final DoublyLinkedList aDoublyLinkedList_1361 = new DoublyLinkedList(); public InputStream anInputStream1362; public Socket aSocket1363; public final int[][] anIntArrayArray1364 = new int[4][]; public final int[][] anIntArrayArray1365 = new int[4][]; public int anInt1366; public int anInt1367; - public final DoublyLinkedList aList_1368 = new DoublyLinkedList(); + public final LinkedList aList_1368 = new LinkedList(); public OnDemandRequest aRequest_1369; - public final DoublyLinkedList aList_1370 = new DoublyLinkedList(); + public final LinkedList aList_1370 = new LinkedList(); public int[] anIntArray1371; public byte[] aByteArray1372; public int anInt1373; - public Class42_Sub1() { + public OnDemand() { } public boolean method549(int i, int j, byte[] abyte0) { @@ -95,7 +93,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { if (aRequest_1369 != null) { anInt1373 = 0; if (l1 == 0) { - signlink.reporterror("Rej: " + l + "," + j1); + Signlink.reporterror("Rej: " + l + "," + j1); aRequest_1369.aByteArray1420 = null; if (aRequest_1369.aBoolean1422) { synchronized (aList_1358) { @@ -160,10 +158,10 @@ public class Class42_Sub1 extends Class42 implements Runnable { } } - public void method551(Class44 class44, Game game1) { + public void method551(FileArchive archive, Game game1) { String[] as = {"model_version", "anim_version", "midi_version", "map_version"}; for (int i = 0; i < 4; i++) { - byte[] abyte0 = class44.method571(as[i], null); + byte[] abyte0 = archive.method571(as[i], null); int j = abyte0.length / 2; Buffer buffer = new Buffer(abyte0); anIntArrayArray1364[i] = new int[j]; @@ -174,7 +172,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { } String[] as1 = {"model_crc", "anim_crc", "midi_crc", "map_crc"}; for (int k = 0; k < 4; k++) { - byte[] abyte1 = class44.method571(as1[k], null); + byte[] abyte1 = archive.method571(as1[k], null); int i1 = abyte1.length / 4; Buffer buffer_1 = new Buffer(abyte1); anIntArrayArray1365[k] = new int[i1]; @@ -182,7 +180,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { anIntArrayArray1365[k][l1] = buffer_1.method413(); } } - byte[] abyte2 = class44.method571("model_index", null); + byte[] abyte2 = archive.method571("model_index", null); int j1 = anIntArrayArray1364[0].length; aByteArray1372 = new byte[j1]; for (int k1 = 0; k1 < j1; k1++) { @@ -192,7 +190,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { aByteArray1372[k1] = 0; } } - abyte2 = class44.method571("map_index", null); + abyte2 = archive.method571("map_index", null); Buffer class30_sub2_sub2_2 = new Buffer(abyte2); j1 = abyte2.length / 7; anIntArray1371 = new int[j1]; @@ -205,14 +203,14 @@ public class Class42_Sub1 extends Class42 implements Runnable { anIntArray1337[i2] = class30_sub2_sub2_2.method410(); anIntArray1356[i2] = class30_sub2_sub2_2.method408(); } - abyte2 = class44.method571("anim_index", null); + abyte2 = archive.method571("anim_index", null); class30_sub2_sub2_2 = new Buffer(abyte2); j1 = abyte2.length / 2; anIntArray1360 = new int[j1]; for (int j2 = 0; j2 < j1; j2++) { anIntArray1360[j2] = class30_sub2_sub2_2.method410(); } - abyte2 = class44.method571("midi_index", null); + abyte2 = archive.method571("midi_index", null); class30_sub2_sub2_2 = new Buffer(abyte2); j1 = abyte2.length; anIntArray1348 = new int[j1]; @@ -225,8 +223,8 @@ public class Class42_Sub1 extends Class42 implements Runnable { } public int method552() { - synchronized (aLinkedList_1361) { - return aLinkedList_1361.method154(); + synchronized (aDoublyLinkedList_1361) { + return aDoublyLinkedList_1361.method154(); } } @@ -303,8 +301,8 @@ public class Class42_Sub1 extends Class42 implements Runnable { if (anIntArrayArray1364[i][j] == 0) { return; } - synchronized (aLinkedList_1361) { - for (OnDemandRequest request = (OnDemandRequest) aLinkedList_1361.method152(); request != null; request = (OnDemandRequest) aLinkedList_1361.method153()) { + synchronized (aDoublyLinkedList_1361) { + for (OnDemandRequest request = (OnDemandRequest) aDoublyLinkedList_1361.method152(); request != null; request = (OnDemandRequest) aDoublyLinkedList_1361.method153()) { if (request.anInt1419 == i && request.anInt1421 == j) { return; } @@ -316,7 +314,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { synchronized (aList_1370) { aList_1370.method249(request_1); } - aLinkedList_1361.method150(request_1); + aDoublyLinkedList_1361.method150(request_1); } } @@ -406,7 +404,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { } } } catch (Exception exception) { - signlink.reporterror("od_ex " + exception.getMessage()); + Signlink.reporterror("od_ex " + exception.getMessage()); } } @@ -440,7 +438,7 @@ public class Class42_Sub1 extends Class42 implements Runnable { if (request == null) { return null; } - synchronized (aLinkedList_1361) { + synchronized (aDoublyLinkedList_1361) { request.method330(); } if (request.aByteArray1420 == null) { @@ -483,7 +481,6 @@ public class Class42_Sub1 extends Class42 implements Runnable { return -1; } - @Override public void method548(int i) { method558(0, i); } diff --git a/src/main/java/OnDemandRequest.java b/src/main/java/OnDemandRequest.java index 34e570c..ca38ee3 100644 --- a/src/main/java/OnDemandRequest.java +++ b/src/main/java/OnDemandRequest.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class OnDemandRequest extends Class30_Sub2 { +public class OnDemandRequest extends DoublyLinkedListNode { public int anInt1419; public byte[] aByteArray1420; diff --git a/src/main/java/Class31.java b/src/main/java/PacketConstants.java similarity index 98% rename from src/main/java/Class31.java rename to src/main/java/PacketConstants.java index 5473514..acee045 100644 --- a/src/main/java/Class31.java +++ b/src/main/java/PacketConstants.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class31 { +public class PacketConstants { public static final int[] anIntArray552 = {6, 21, 25, 33, 254, 127, 183, 87, 216, 215, 211, 48, 15, 195, 149, 233, 162, 102, 104, 179, 222, 103, 224, 81, 152, 89, 45, 11, 197, 187, 210, 37, 135, 220, 137, 128, 63, 188, 207, 144, 201, 161, 28, 192, 206, 32, 115, 57, 196, 22, 132, 226, 227, 169, 237, 105, 174, 109, 5, 55, 205, 156, 8, 34, 113, 176, 209, 3, 50, 117, 122, 189, 101, 142, 246, 163, 238, 76, 74, 84, 91, 217, 58, 23, 118, 66, 35, 164, 114, 138, 96, 110, 29, 235, 147, 249, 214, 198, 242, 56, 94, 248, 59, 253, 150, 16, 13, 46, 24, 130, 232, 153, 167, 229, 79, 134, 26, 191, 0, 213, 204, 241, 160, 39, 180, 49, 250, 47, 140, 193, 202, 108, 120, 247, 106, 194, 65, 27, 93, 143, 186, 171, 125, 54, 155, 190, 139, 165, 77, 178, 72, 99, 61, 141, 116, 100, 80, 184, 154, 145, 131, 12, 90, 42, 255, 75, 44, 78, 172, 107, 52, 7, 119, 146, 38, 218, 10, 223, 182, 240, 159, 88, 158, 64, 221, 200, 1, 43, 252, 62, 40, 230, 129, 18, 111, 51, 17, 53, 136, 20, 60, 225, 30, 9, 239, 97, 234, 41, 203, 236, 36, 185, 212, 19, 245, 251, 208, 175, 243, 86, 2, 69, 181, 151, 14, 166, 70, 98, 124, 126, 67, 157, 199, 112, 123, 177, 82, 168, 71, 170, 95, 31, 92, 4, 231, 219, 73, 85, 244, 148, 173, 228, 121, 83, 133, 68, 0}; public static final int[] anIntArray553 = {0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2, 4, 3, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 6, 0, 0, 9, 0, 0, -2, 0, 0, 0, 0, 0, 0, -2, 1, 0, 0, 2, -2, 0, 0, 0, 0, 6, 3, 2, 4, 2, 4, 0, 0, 0, 4, 0, -2, 0, 0, 7, 2, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 2, 0, 0, -1, 4, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 15, 0, 0, 0, 4, 4, 0, 0, 0, -2, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 14, 0, 0, 0, 4, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 2, 0, 6, 0, 0, 0, 0, 3, 0, 0, 5, 0, 10, 6, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 4, 0, 0, 0, 0, 0, 3, 0, 2, 0, 0, 0, 0, 0, -2, 7, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, -2, 0, 0, 0, 0, 6, 0, 4, 3, 0, 0, 0, -1, 6, 0, 0}; diff --git a/src/main/java/PlayerEntity.java b/src/main/java/PlayerEntity.java index 620ac93..3fd332c 100644 --- a/src/main/java/PlayerEntity.java +++ b/src/main/java/PlayerEntity.java @@ -51,7 +51,7 @@ public class PlayerEntity extends PathingEntity { SpotAnimType type = SpotAnimType.aTypeArray403[super.anInt1520]; Model class30_sub2_sub4_sub6_2 = type.method266(); if (class30_sub2_sub4_sub6_2 != null) { - Model model_3 = new Model(true, Class36.method532(super.anInt1521), false, class30_sub2_sub4_sub6_2); + Model model_3 = new Model(true, SeqTransform.method532(super.anInt1521), false, class30_sub2_sub4_sub6_2); model_3.method475(0, -super.anInt1524, 0); model_3.method469(); model_3.method470(type.aType_407.anIntArray353[super.anInt1521]); @@ -161,7 +161,7 @@ public class PlayerEntity extends PathingEntity { if (super.anInt1505 == 65535) { super.anInt1505 = -1; } - aString1703 = Class50.method587(Class50.method584(buffer.method414())); + aString1703 = Base37.method587(Base37.method584(buffer.method414())); anInt1705 = buffer.method408(); anInt1723 = buffer.method410(); aBoolean1710 = true; @@ -229,7 +229,7 @@ public class PlayerEntity extends PathingEntity { if (j1 >= 0 && i2 == 5) { k2 = j1; } - if (k2 >= 256 && k2 < 512 && !Class38.aClass38Array656[k2 - 256].method537()) { + if (k2 >= 256 && k2 < 512 && !IDKType.aIDKTypeArray656[k2 - 256].method537()) { flag = true; } if (k2 >= 512 && !ObjType.method198(k2 - 512).method195(anInt1702)) { @@ -257,7 +257,7 @@ public class PlayerEntity extends PathingEntity { i3 = j1; } if (i3 >= 256 && i3 < 512) { - Model model_3 = Class38.aClass38Array656[i3 - 256].method538(); + Model model_3 = IDKType.aIDKTypeArray656[i3 - 256].method538(); if (model_3 != null) { aclass30_sub2_sub4_sub6[j2++] = model_3; } @@ -287,7 +287,7 @@ public class PlayerEntity extends PathingEntity { return model_1; } Model class30_sub2_sub4_sub6_2 = Model.A_MODEL___1621; - class30_sub2_sub4_sub6_2.method464(model_1, Class36.method532(k) & Class36.method532(i1)); + class30_sub2_sub4_sub6_2.method464(model_1, SeqTransform.method532(k) & SeqTransform.method532(i1)); if (k != -1 && i1 != -1) { class30_sub2_sub4_sub6_2.method471(SeqType.aTypeArray351[super.anInt1526].anIntArray357, i1, k); } else if (k != -1) { @@ -314,7 +314,7 @@ public class PlayerEntity extends PathingEntity { boolean flag = false; for (int i = 0; i < 12; i++) { int j = anIntArray1717[i]; - if (j >= 256 && j < 512 && !Class38.aClass38Array656[j - 256].method539()) { + if (j >= 256 && j < 512 && !IDKType.aIDKTypeArray656[j - 256].method539()) { flag = true; } if (j >= 512 && !ObjType.method198(j - 512).method192(anInt1702)) { @@ -329,7 +329,7 @@ public class PlayerEntity extends PathingEntity { for (int l = 0; l < 12; l++) { int i1 = anIntArray1717[l]; if (i1 >= 256 && i1 < 512) { - Model model_1 = Class38.aClass38Array656[i1 - 256].method540(); + Model model_1 = IDKType.aIDKTypeArray656[i1 - 256].method540(); if (model_1 != null) { aclass30_sub2_sub4_sub6[k++] = model_1; } diff --git a/src/main/java/ProjectileEntity.java b/src/main/java/ProjectileEntity.java index 9b4c617..8cdb5ae 100644 --- a/src/main/java/ProjectileEntity.java +++ b/src/main/java/ProjectileEntity.java @@ -72,7 +72,7 @@ public class ProjectileEntity extends Entity { if (aType_1592.aType_407 != null) { j = aType_1592.aType_407.anIntArray353[anInt1593]; } - Model model_1 = new Model(true, Class36.method532(j), false, model); + Model model_1 = new Model(true, SeqTransform.method532(j), false, model); if (j != -1) { model_1.method469(); model_1.method470(j); diff --git a/src/main/java/SceneBuilder.java b/src/main/java/SceneBuilder.java index 130d703..f5e08fa 100644 --- a/src/main/java/SceneBuilder.java +++ b/src/main/java/SceneBuilder.java @@ -68,7 +68,7 @@ public class SceneBuilder { return i_109_; } - public static void method173(Buffer buffer, Class42_Sub1 class42_sub1) { + public static void method173(Buffer buffer, OnDemand onDemand) { int i_110_ = -1; for (; ; ) { int i_111_ = buffer.method422(); @@ -76,8 +76,8 @@ public class SceneBuilder { break; } i_110_ += i_111_; - Class46 class46 = Class46.method572(i_110_); - class46.method574(class42_sub1); + LocType type = LocType.method572(i_110_); + type.method574(onDemand); for (; ; ) { int i_112_ = buffer.method422(); if (i_112_ == 0) { @@ -103,14 +103,14 @@ public class SceneBuilder { } public static boolean method178(int i, int i_159_) { - Class46 class46 = Class46.method572(i); + LocType type = LocType.method572(i); if (i_159_ == 11) { i_159_ = 10; } if (i_159_ >= 5 && i_159_ <= 8) { i_159_ = 4; } - return class46.method577(i_159_); + return type.method577(i_159_); } public static int method184(int i, int i_216_, int i_217_, int i_218_) { @@ -144,29 +144,29 @@ public class SceneBuilder { int i_235_ = is[i_228_][i_229_ + 1][i_226_ + 1]; int i_236_ = is[i_228_][i_229_][i_226_ + 1]; int i_237_ = i_233_ + i_234_ + i_235_ + i_236_ >> 2; - Class46 class46 = Class46.method572(i_230_); + LocType type = LocType.method572(i_230_); int i_238_ = i_229_ + (i_226_ << 7) + (i_230_ << 14) + 1073741824; - if (!class46.aBoolean778) { + if (!type.aBoolean778) { i_238_ += -2147483648; } byte i_239_ = (byte) ((i << 6) + i_227_); if (i_227_ == 22) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(22, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(22, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, 22, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, 22, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method280(i_231_, i_237_, i_226_, entity, i_239_, i_238_, i_229_); - if (class46.aBoolean767 && class46.aBoolean778) { + if (type.aBoolean767 && type.aBoolean778) { collisionMap.method213(i_226_, i_229_); } } else if (i_227_ == 10 || i_227_ == 11) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(10, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(10, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, 10, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, 10, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } if (entity != null) { int i_240_ = 0; @@ -176,89 +176,89 @@ public class SceneBuilder { int i_241_; int i_242_; if (i == 1 || i == 3) { - i_241_ = class46.anInt761; - i_242_ = class46.anInt744; + i_241_ = type.anInt761; + i_242_ = type.anInt744; } else { - i_241_ = class46.anInt744; - i_242_ = class46.anInt761; + i_241_ = type.anInt744; + i_242_ = type.anInt761; } graph.method284(i_238_, i_239_, i_237_, i_242_, entity, i_241_, i_231_, i_240_, i_226_, i_229_); } - if (class46.aBoolean767) { - collisionMap.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i_229_, i_226_, i); + if (type.aBoolean767) { + collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_229_, i_226_, i); } } else if (i_227_ >= 12) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(i_227_, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(i_227_, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, i_227_, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, i_227_, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method284(i_238_, i_239_, i_237_, 1, entity, 1, i_231_, 0, i_226_, i_229_); - if (class46.aBoolean767) { - collisionMap.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i_229_, i_226_, i); + if (type.aBoolean767) { + collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_229_, i_226_, i); } } else if (i_227_ == 0) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(0, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(0, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, 0, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, 0, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method282(anIntArray152[i], entity, i_238_, i_226_, i_239_, i_229_, null, i_237_, 0, i_231_); - if (class46.aBoolean767) { - collisionMap.method211(i_226_, i, i_229_, i_227_, class46.aBoolean757); + if (type.aBoolean767) { + collisionMap.method211(i_226_, i, i_229_, i_227_, type.aBoolean757); } } else if (i_227_ == 1) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(1, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(1, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, 1, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, 1, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method282(anIntArray140[i], entity, i_238_, i_226_, i_239_, i_229_, null, i_237_, 0, i_231_); - if (class46.aBoolean767) { - collisionMap.method211(i_226_, i, i_229_, i_227_, class46.aBoolean757); + if (type.aBoolean767) { + collisionMap.method211(i_226_, i, i_229_, i_227_, type.aBoolean757); } } else if (i_227_ == 2) { int i_243_ = i + 1 & 0x3; Entity entity; Entity entity_244_; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(2, 4 + i, i_233_, i_234_, i_235_, i_236_, -1); - entity_244_ = class46.method578(2, i_243_, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(2, 4 + i, i_233_, i_234_, i_235_, i_236_, -1); + entity_244_ = type.method578(2, i_243_, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, 4 + i, 2, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); - entity_244_ = new LocEntity(i_230_, i_243_, 2, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, 4 + i, 2, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); + entity_244_ = new LocEntity(i_230_, i_243_, 2, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method282(anIntArray152[i], entity, i_238_, i_226_, i_239_, i_229_, entity_244_, i_237_, anIntArray152[i_243_], i_231_); - if (class46.aBoolean767) { - collisionMap.method211(i_226_, i, i_229_, i_227_, class46.aBoolean757); + if (type.aBoolean767) { + collisionMap.method211(i_226_, i, i_229_, i_227_, type.aBoolean757); } } else if (i_227_ == 3) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(3, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(3, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, 3, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, 3, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method282(anIntArray140[i], entity, i_238_, i_226_, i_239_, i_229_, null, i_237_, 0, i_231_); - if (class46.aBoolean767) { - collisionMap.method211(i_226_, i, i_229_, i_227_, class46.aBoolean757); + if (type.aBoolean767) { + collisionMap.method211(i_226_, i, i_229_, i_227_, type.aBoolean757); } } else if (i_227_ == 9) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(i_227_, i, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(i_227_, i, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, i, i_227_, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, i, i_227_, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method284(i_238_, i_239_, i_237_, 1, entity, 1, i_231_, 0, i_226_, i_229_); - if (class46.aBoolean767) { - collisionMap.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i_229_, i_226_, i); + if (type.aBoolean767) { + collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_229_, i_226_, i); } } else { - if (class46.aBoolean762) { + if (type.aBoolean762) { if (i == 1) { int i_245_ = i_236_; i_236_ = i_235_; @@ -282,47 +282,47 @@ public class SceneBuilder { } if (i_227_ == 4) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method283(i_238_, i_226_, i * 512, i_231_, 0, i_237_, entity, i_229_, i_239_, 0, anIntArray152[i]); } else if (i_227_ == 5) { int i_248_ = 16; int i_249_ = graph.method300(i_231_, i_229_, i_226_); if (i_249_ > 0) { - i_248_ = Class46.method572(i_249_ >> 14 & 0x7fff).anInt775; + i_248_ = LocType.method572(i_249_ >> 14 & 0x7fff).anInt775; } Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method283(i_238_, i_226_, i * 512, i_231_, anIntArray137[i] * i_248_, i_237_, entity, i_229_, i_239_, anIntArray144[i] * i_248_, anIntArray152[i]); } else if (i_227_ == 6) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method283(i_238_, i_226_, i, i_231_, 0, i_237_, entity, i_229_, i_239_, 0, 256); } else if (i_227_ == 7) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method283(i_238_, i_226_, i, i_231_, 0, i_237_, entity, i_229_, i_239_, 0, 512); } else if (i_227_ == 8) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_233_, i_234_, i_235_, i_236_, -1); } else { - entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, class46.anInt781, true); + entity = new LocEntity(i_230_, 0, 4, i_234_, i_235_, i_233_, i_236_, type.anInt781, true); } graph.method283(i_238_, i_226_, i, i_231_, 0, i_237_, entity, i_229_, i_239_, 0, 768); } @@ -360,9 +360,9 @@ public class SceneBuilder { int i_261_ = i_259_ + i; int i_262_ = i_258_ + i_250_; if (i_261_ > 0 && i_262_ > 0 && i_261_ < 103 && i_262_ < 103) { - Class46 class46 = Class46.method572(i_252_); - if (i_260_ != 22 || !aBoolean151 || class46.aBoolean778 || class46.aBoolean736) { - bool &= class46.method579(); + LocType type = LocType.method572(i_252_); + if (i_260_ != 22 || !aBoolean151 || type.aBoolean778 || type.aBoolean736) { + bool &= type.method579(); bool_255_ = true; } } @@ -750,32 +750,32 @@ public class SceneBuilder { int i_126_ = anIntArrayArrayArray129[i_120_][i_121_ + 1][i + 1]; int i_127_ = anIntArrayArrayArray129[i_120_][i_121_][i + 1]; int i_128_ = i_124_ + i_125_ + i_126_ + i_127_ >> 2; - Class46 class46 = Class46.method572(i_122_); + LocType type = LocType.method572(i_122_); int i_129_ = i_121_ + (i << 7) + (i_122_ << 14) + 1073741824; - if (!class46.aBoolean778) { + if (!type.aBoolean778) { i_129_ += -2147483648; } byte i_130_ = (byte) ((i_123_ << 6) + i_119_); if (!bool) { if (i_119_ == 22) { - if (!aBoolean151 || class46.aBoolean778 || class46.aBoolean736) { + if (!aBoolean151 || type.aBoolean778 || type.aBoolean736) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(22, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(22, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, 22, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, 22, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method280(i_120_, i_128_, i, entity, i_130_, i_129_, i_121_); - if (class46.aBoolean767 && class46.aBoolean778 && collisionMap != null) { + if (type.aBoolean767 && type.aBoolean778 && collisionMap != null) { collisionMap.method213(i, i_121_); } } } else if (i_119_ == 10 || i_119_ == 11) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(10, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(10, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, 10, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, 10, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } if (entity != null) { int i_131_ = 0; @@ -785,18 +785,18 @@ public class SceneBuilder { int i_132_; int i_133_; if (i_123_ == 1 || i_123_ == 3) { - i_132_ = class46.anInt761; - i_133_ = class46.anInt744; + i_132_ = type.anInt761; + i_133_ = type.anInt744; } else { - i_132_ = class46.anInt744; - i_133_ = class46.anInt761; + i_132_ = type.anInt744; + i_133_ = type.anInt761; } - if (graph.method284(i_129_, i_130_, i_128_, i_133_, entity, i_132_, i_120_, i_131_, i, i_121_) && class46.aBoolean779) { + if (graph.method284(i_129_, i_130_, i_128_, i_133_, entity, i_132_, i_120_, i_131_, i, i_121_) && type.aBoolean779) { Model model; if (entity instanceof Model) { model = (Model) entity; } else { - model = class46.method578(10, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + model = type.method578(10, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } if (model != null) { for (int i_134_ = 0; i_134_ <= i_132_; i_134_++) { @@ -813,79 +813,79 @@ public class SceneBuilder { } } } - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i_121_, i, i_123_); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_121_, i, i_123_); } } else if (i_119_ >= 12) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(i_119_, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(i_119_, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, i_119_, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, i_119_, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method284(i_129_, i_130_, i_128_, 1, entity, 1, i_120_, 0, i, i_121_); if (i_119_ >= 12 && i_119_ <= 17 && i_119_ != 13 && i_120_ > 0) { anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x924; } - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i_121_, i, i_123_); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_121_, i, i_123_); } } else if (i_119_ == 0) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(0, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(0, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, 0, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, 0, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method282(anIntArray152[i_123_], entity, i_129_, i, i_130_, i_121_, null, i_128_, 0, i_120_); if (i_123_ == 0) { - if (class46.aBoolean779) { + if (type.aBoolean779) { aByteArrayArrayArray134[i_120_][i_121_][i] = (byte) 50; aByteArrayArrayArray134[i_120_][i_121_][i + 1] = (byte) 50; } - if (class46.aBoolean764) { + if (type.aBoolean764) { anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x249; } } else if (i_123_ == 1) { - if (class46.aBoolean779) { + if (type.aBoolean779) { aByteArrayArrayArray134[i_120_][i_121_][i + 1] = (byte) 50; aByteArrayArrayArray134[i_120_][i_121_ + 1][i + 1] = (byte) 50; } - if (class46.aBoolean764) { + if (type.aBoolean764) { anIntArrayArrayArray135[i_120_][i_121_][i + 1] |= 0x492; } } else if (i_123_ == 2) { - if (class46.aBoolean779) { + if (type.aBoolean779) { aByteArrayArrayArray134[i_120_][i_121_ + 1][i] = (byte) 50; aByteArrayArrayArray134[i_120_][i_121_ + 1][i + 1] = (byte) 50; } - if (class46.aBoolean764) { + if (type.aBoolean764) { anIntArrayArrayArray135[i_120_][i_121_ + 1][i] |= 0x249; } } else if (i_123_ == 3) { - if (class46.aBoolean779) { + if (type.aBoolean779) { aByteArrayArrayArray134[i_120_][i_121_][i] = (byte) 50; aByteArrayArrayArray134[i_120_][i_121_ + 1][i] = (byte) 50; } - if (class46.aBoolean764) { + if (type.aBoolean764) { anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x492; } } - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method211(i, i_123_, i_121_, i_119_, class46.aBoolean757); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757); } - if (class46.anInt775 != 16) { - graph.method290(i, class46.anInt775, i_121_, i_120_); + if (type.anInt775 != 16) { + graph.method290(i, type.anInt775, i_121_, i_120_); } } else if (i_119_ == 1) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(1, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(1, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, 1, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, 1, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method282(anIntArray140[i_123_], entity, i_129_, i, i_130_, i_121_, null, i_128_, 0, i_120_); - if (class46.aBoolean779) { + if (type.aBoolean779) { if (i_123_ == 0) { aByteArrayArrayArray134[i_120_][i_121_][i + 1] = (byte) 50; } else if (i_123_ == 1) { @@ -896,22 +896,22 @@ public class SceneBuilder { aByteArrayArrayArray134[i_120_][i_121_][i] = (byte) 50; } } - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method211(i, i_123_, i_121_, i_119_, class46.aBoolean757); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757); } } else if (i_119_ == 2) { int i_137_ = i_123_ + 1 & 0x3; Entity entity; Entity entity_138_; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(2, 4 + i_123_, i_124_, i_125_, i_126_, i_127_, -1); - entity_138_ = class46.method578(2, i_137_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(2, 4 + i_123_, i_124_, i_125_, i_126_, i_127_, -1); + entity_138_ = type.method578(2, i_137_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, 4 + i_123_, 2, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); - entity_138_ = new LocEntity(i_122_, i_137_, 2, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, 4 + i_123_, 2, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); + entity_138_ = new LocEntity(i_122_, i_137_, 2, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method282(anIntArray152[i_123_], entity, i_129_, i, i_130_, i_121_, entity_138_, i_128_, anIntArray152[i_137_], i_120_); - if (class46.aBoolean764) { + if (type.aBoolean764) { if (i_123_ == 0) { anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x249; anIntArrayArrayArray135[i_120_][i_121_][i + 1] |= 0x492; @@ -926,21 +926,21 @@ public class SceneBuilder { anIntArrayArrayArray135[i_120_][i_121_][i] |= 0x249; } } - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method211(i, i_123_, i_121_, i_119_, class46.aBoolean757); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757); } - if (class46.anInt775 != 16) { - graph.method290(i, class46.anInt775, i_121_, i_120_); + if (type.anInt775 != 16) { + graph.method290(i, type.anInt775, i_121_, i_120_); } } else if (i_119_ == 3) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(3, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(3, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, 3, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, 3, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method282(anIntArray140[i_123_], entity, i_129_, i, i_130_, i_121_, null, i_128_, 0, i_120_); - if (class46.aBoolean779) { + if (type.aBoolean779) { if (i_123_ == 0) { aByteArrayArrayArray134[i_120_][i_121_][i + 1] = (byte) 50; } else if (i_123_ == 1) { @@ -951,22 +951,22 @@ public class SceneBuilder { aByteArrayArrayArray134[i_120_][i_121_][i] = (byte) 50; } } - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method211(i, i_123_, i_121_, i_119_, class46.aBoolean757); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method211(i, i_123_, i_121_, i_119_, type.aBoolean757); } } else if (i_119_ == 9) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(i_119_, i_123_, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(i_119_, i_123_, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, i_123_, i_119_, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, i_123_, i_119_, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method284(i_129_, i_130_, i_128_, 1, entity, 1, i_120_, 0, i, i_121_); - if (class46.aBoolean767 && collisionMap != null) { - collisionMap.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i_121_, i, i_123_); + if (type.aBoolean767 && collisionMap != null) { + collisionMap.method212(type.aBoolean757, type.anInt744, type.anInt761, i_121_, i, i_123_); } } else { - if (class46.aBoolean762) { + if (type.aBoolean762) { if (i_123_ == 1) { int i_139_ = i_127_; i_127_ = i_126_; @@ -990,47 +990,47 @@ public class SceneBuilder { } if (i_119_ == 4) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method283(i_129_, i, i_123_ * 512, i_120_, 0, i_128_, entity, i_121_, i_130_, 0, anIntArray152[i_123_]); } else if (i_119_ == 5) { int i_142_ = 16; int i_143_ = graph.method300(i_120_, i_121_, i); if (i_143_ > 0) { - i_142_ = Class46.method572(i_143_ >> 14 & 0x7fff).anInt775; + i_142_ = LocType.method572(i_143_ >> 14 & 0x7fff).anInt775; } Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method283(i_129_, i, i_123_ * 512, i_120_, anIntArray137[i_123_] * i_142_, i_128_, entity, i_121_, i_130_, anIntArray144[i_123_] * i_142_, anIntArray152[i_123_]); } else if (i_119_ == 6) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method283(i_129_, i, i_123_, i_120_, 0, i_128_, entity, i_121_, i_130_, 0, 256); } else if (i_119_ == 7) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method283(i_129_, i, i_123_, i_120_, 0, i_128_, entity, i_121_, i_130_, 0, 512); } else if (i_119_ == 8) { Entity entity; - if (class46.anInt781 == -1 && class46.anIntArray759 == null) { - entity = class46.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); + if (type.anInt781 == -1 && type.anIntArray759 == null) { + entity = type.method578(4, 0, i_124_, i_125_, i_126_, i_127_, -1); } else { - entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, class46.anInt781, true); + entity = new LocEntity(i_122_, 0, 4, i_125_, i_126_, i_124_, i_127_, type.anInt781, true); } graph.method283(i_129_, i, i_123_, i_120_, 0, i_128_, entity, i_121_, i_130_, 0, 768); } @@ -1186,9 +1186,9 @@ public class SceneBuilder { int i_211_ = i_210_ >> 2; int i_212_ = i_210_ & 0x3; if (i_209_ == i && i_208_ >= i_200_ && i_208_ < i_200_ + 8 && i_207_ >= i_198_ && i_207_ < i_198_ + 8) { - Class46 class46 = Class46.method572(i_203_); - int i_213_ = i_197_ + ChunkUtil.method157(i_201_, class46.anInt761, i_208_ & 0x7, i_207_ & 0x7, class46.anInt744); - int i_214_ = i_202_ + ChunkUtil.method158(i_207_ & 0x7, class46.anInt761, i_201_, class46.anInt744, i_208_ & 0x7); + LocType type = LocType.method572(i_203_); + int i_213_ = i_197_ + ChunkUtil.method157(i_201_, type.anInt761, i_208_ & 0x7, i_207_ & 0x7, type.anInt744); + int i_214_ = i_202_ + ChunkUtil.method158(i_207_ & 0x7, type.anInt761, i_201_, type.anInt744, i_208_ & 0x7); if (i_213_ > 0 && i_214_ > 0 && i_213_ < 103 && i_214_ < 103) { int i_215_ = i_209_; if ((aByteArrayArrayArray149[1][i_213_][i_214_] & 0x2) == 2) { diff --git a/src/main/java/SceneGraph.java b/src/main/java/SceneGraph.java index eb65df8..e557f36 100644 --- a/src/main/java/SceneGraph.java +++ b/src/main/java/SceneGraph.java @@ -43,10 +43,10 @@ public class SceneGraph { public static int anInt471 = -1; public static final int anInt472 = 4; public static int[] anIntArray473 = new int[anInt472]; - public static Class47[][] aClass47ArrayArray474 = new Class47[anInt472][500]; + public static SceneOccluder[][] aOccluderArrayArray474 = new SceneOccluder[anInt472][500]; public static int anInt475; - public static final Class47[] aClass47Array476 = new Class47[500]; - public static DoublyLinkedList aList_477 = new DoublyLinkedList(); + public static final SceneOccluder[] A_OCCLUDER_ARRAY_476 = new SceneOccluder[500]; + public static LinkedList aList_477 = new LinkedList(); public static boolean[][][][] aBooleanArrayArrayArrayArray491 = new boolean[8][32][51][51]; public static boolean[][] aBooleanArrayArray492; public static int anInt493; @@ -60,7 +60,7 @@ public class SceneGraph { public final int anInt438; public final int anInt439; public final int[][][] anIntArrayArrayArray440; - public final Class30_Sub3[][][] aClass30_Sub3ArrayArrayArray441; + public final SceneTile[][][] aTileArrayArrayArray441; public int anInt442; public int anInt443; public final SceneLoc[] aLocArray444 = new SceneLoc[5000]; @@ -75,7 +75,7 @@ public class SceneGraph { anInt437 = k; anInt438 = j; anInt439 = i; - aClass30_Sub3ArrayArrayArray441 = new Class30_Sub3[k][j][i]; + aTileArrayArrayArray441 = new SceneTile[k][j][i]; anIntArrayArrayArray445 = new int[k][j + 1][i + 1]; anIntArrayArrayArray440 = ai; method274(); @@ -84,26 +84,26 @@ public class SceneGraph { public static void method273() { aLocArray462 = null; anIntArray473 = null; - aClass47ArrayArray474 = null; + aOccluderArrayArray474 = null; aList_477 = null; aBooleanArrayArrayArrayArray491 = null; aBooleanArrayArray492 = null; } public static void method277(int i, int j, int k, int l, int i1, int j1, int l1, int i2) { - Class47 class47 = new Class47(); - class47.anInt787 = j / 128; - class47.anInt788 = l / 128; - class47.anInt789 = l1 / 128; - class47.anInt790 = i1 / 128; - class47.anInt791 = i2; - class47.anInt792 = j; - class47.anInt793 = l; - class47.anInt794 = l1; - class47.anInt795 = i1; - class47.anInt796 = j1; - class47.anInt797 = k; - aClass47ArrayArray474[i][anIntArray473[i]++] = class47; + SceneOccluder occluder = new SceneOccluder(); + occluder.anInt787 = j / 128; + occluder.anInt788 = l / 128; + occluder.anInt789 = l1 / 128; + occluder.anInt790 = i1 / 128; + occluder.anInt791 = i2; + occluder.anInt792 = j; + occluder.anInt793 = l; + occluder.anInt794 = l1; + occluder.anInt795 = i1; + occluder.anInt796 = j1; + occluder.anInt797 = k; + aOccluderArrayArray474[i][anIntArray473[i]++] = occluder; } public static void method310(int i, int j, int k, int l, int[] ai) { @@ -186,13 +186,13 @@ public class SceneGraph { for (int j = 0; j < anInt437; j++) { for (int k = 0; k < anInt438; k++) { for (int i1 = 0; i1 < anInt439; i1++) { - aClass30_Sub3ArrayArrayArray441[j][k][i1] = null; + aTileArrayArrayArray441[j][k][i1] = null; } } } for (int l = 0; l < anInt472; l++) { for (int j1 = 0; j1 < anIntArray473[l]; j1++) { - aClass47ArrayArray474[l][j1] = null; + aOccluderArrayArray474[l][j1] = null; } anIntArray473[l] = 0; } @@ -207,87 +207,87 @@ public class SceneGraph { anInt442 = i; for (int k = 0; k < anInt438; k++) { for (int l = 0; l < anInt439; l++) { - if (aClass30_Sub3ArrayArrayArray441[i][k][l] == null) { - aClass30_Sub3ArrayArrayArray441[i][k][l] = new Class30_Sub3(i, k, l); + if (aTileArrayArrayArray441[i][k][l] == null) { + aTileArrayArrayArray441[i][k][l] = new SceneTile(i, k, l); } } } } public void method276(int i, int j) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[0][j][i]; + SceneTile tile = aTileArrayArrayArray441[0][j][i]; for (int l = 0; l < 3; l++) { - Class30_Sub3 class30_sub3_1 = aClass30_Sub3ArrayArrayArray441[l][j][i] = aClass30_Sub3ArrayArrayArray441[l + 1][j][i]; - if (class30_sub3_1 != null) { - class30_sub3_1.anInt1307--; - for (int j1 = 0; j1 < class30_sub3_1.anInt1317; j1++) { - SceneLoc loc = class30_sub3_1.aLocArray1318[j1]; + SceneTile tile_1 = aTileArrayArrayArray441[l][j][i] = aTileArrayArrayArray441[l + 1][j][i]; + if (tile_1 != null) { + tile_1.anInt1307--; + for (int j1 = 0; j1 < tile_1.anInt1317; j1++) { + SceneLoc loc = tile_1.aLocArray1318[j1]; if ((loc.anInt529 >> 29 & 3) == 2 && loc.anInt523 == j && loc.anInt525 == i) { loc.anInt517--; } } } } - if (aClass30_Sub3ArrayArrayArray441[0][j][i] == null) { - aClass30_Sub3ArrayArrayArray441[0][j][i] = new Class30_Sub3(0, j, i); + if (aTileArrayArrayArray441[0][j][i] == null) { + aTileArrayArrayArray441[0][j][i] = new SceneTile(0, j, i); } - aClass30_Sub3ArrayArrayArray441[0][j][i].aClass30_Sub3_1329 = class30_sub3; - aClass30_Sub3ArrayArrayArray441[3][j][i] = null; + aTileArrayArrayArray441[0][j][i].aTile_1329 = tile; + aTileArrayArrayArray441[3][j][i] = null; } public void method278(int i, int j, int k, int l) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile == null) { } else { - aClass30_Sub3ArrayArrayArray441[i][j][k].anInt1321 = l; + aTileArrayArrayArray441[i][j][k].anInt1321 = l; } } public void method279(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int j4, int k4, int l4) { if (l == 0) { - Class43 class43 = new Class43(k2, l2, i3, j3, -1, k4, false); + SceneTileUnderlay underlay = new SceneTileUnderlay(k2, l2, i3, j3, -1, k4, false); for (int i5 = i; i5 >= 0; i5--) { - if (aClass30_Sub3ArrayArrayArray441[i5][j][k] == null) { - aClass30_Sub3ArrayArrayArray441[i5][j][k] = new Class30_Sub3(i5, j, k); + if (aTileArrayArrayArray441[i5][j][k] == null) { + aTileArrayArrayArray441[i5][j][k] = new SceneTile(i5, j, k); } } - aClass30_Sub3ArrayArrayArray441[i][j][k].aClass43_1311 = class43; + aTileArrayArrayArray441[i][j][k].aUnderlay_1311 = underlay; return; } if (l == 1) { - Class43 class43_1 = new Class43(k3, l3, i4, j4, j1, l4, k1 == l1 && k1 == i2 && k1 == j2); + SceneTileUnderlay underlay_1 = new SceneTileUnderlay(k3, l3, i4, j4, j1, l4, k1 == l1 && k1 == i2 && k1 == j2); for (int j5 = i; j5 >= 0; j5--) { - if (aClass30_Sub3ArrayArrayArray441[j5][j][k] == null) { - aClass30_Sub3ArrayArrayArray441[j5][j][k] = new Class30_Sub3(j5, j, k); + if (aTileArrayArrayArray441[j5][j][k] == null) { + aTileArrayArrayArray441[j5][j][k] = new SceneTile(j5, j, k); } } - aClass30_Sub3ArrayArrayArray441[i][j][k].aClass43_1311 = class43_1; + aTileArrayArrayArray441[i][j][k].aUnderlay_1311 = underlay_1; return; } - Class40 class40 = new Class40(k, k3, j3, i2, j1, i4, i1, k2, k4, i3, j2, l1, k1, l, j4, l3, l2, j, l4); + SceneTileOverlay overlay = new SceneTileOverlay(k, k3, j3, i2, j1, i4, i1, k2, k4, i3, j2, l1, k1, l, j4, l3, l2, j, l4); for (int k5 = i; k5 >= 0; k5--) { - if (aClass30_Sub3ArrayArrayArray441[k5][j][k] == null) { - aClass30_Sub3ArrayArrayArray441[k5][j][k] = new Class30_Sub3(k5, j, k); + if (aTileArrayArrayArray441[k5][j][k] == null) { + aTileArrayArrayArray441[k5][j][k] = new SceneTile(k5, j, k); } } - aClass30_Sub3ArrayArrayArray441[i][j][k].aClass40_1312 = class40; + aTileArrayArrayArray441[i][j][k].aOverlay_1312 = overlay; } public void method280(int i, int j, int k, Entity entity, byte byte0, int i1, int j1) { if (entity == null) { return; } - Class49 class49 = new Class49(); - class49.aEntity_814 = entity; - class49.anInt812 = j1 * 128 + 64; - class49.anInt813 = k * 128 + 64; - class49.anInt811 = j; - class49.anInt815 = i1; - class49.aByte816 = byte0; - if (aClass30_Sub3ArrayArrayArray441[i][j1][k] == null) { - aClass30_Sub3ArrayArrayArray441[i][j1][k] = new Class30_Sub3(i, j1, k); + SceneGroundDecoration groundDecoration = new SceneGroundDecoration(); + groundDecoration.aEntity_814 = entity; + groundDecoration.anInt812 = j1 * 128 + 64; + groundDecoration.anInt813 = k * 128 + 64; + groundDecoration.anInt811 = j; + groundDecoration.anInt815 = i1; + groundDecoration.aByte816 = byte0; + if (aTileArrayArrayArray441[i][j1][k] == null) { + aTileArrayArrayArray441[i][j1][k] = new SceneTile(i, j1, k); } - aClass30_Sub3ArrayArrayArray441[i][j1][k].aClass49_1315 = class49; + aTileArrayArrayArray441[i][j1][k].aGroundDecoration_1315 = groundDecoration; } public void method281(int i, int j, Entity entity, int k, Entity entity_1, Entity class30_sub2_sub4_2, int l, int i1) { @@ -300,11 +300,11 @@ public class SceneGraph { objStack.aEntity_49 = entity; objStack.aEntity_50 = entity_1; int j1 = 0; - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[l][i][i1]; - if (class30_sub3 != null) { - for (int k1 = 0; k1 < class30_sub3.anInt1317; k1++) { - if (class30_sub3.aLocArray1318[k1].aEntity_521 instanceof Model) { - int l1 = ((Model) class30_sub3.aLocArray1318[k1].aEntity_521).anInt1654; + SceneTile tile = aTileArrayArrayArray441[l][i][i1]; + if (tile != null) { + for (int k1 = 0; k1 < tile.anInt1317; k1++) { + if (tile.aLocArray1318[k1].aEntity_521 instanceof Model) { + int l1 = ((Model) tile.aLocArray1318[k1].aEntity_521).anInt1654; if (l1 > j1) { j1 = l1; } @@ -312,10 +312,10 @@ public class SceneGraph { } } objStack.anInt52 = j1; - if (aClass30_Sub3ArrayArrayArray441[l][i][i1] == null) { - aClass30_Sub3ArrayArrayArray441[l][i][i1] = new Class30_Sub3(l, i, i1); + if (aTileArrayArrayArray441[l][i][i1] == null) { + aTileArrayArrayArray441[l][i][i1] = new SceneTile(l, i, i1); } - aClass30_Sub3ArrayArrayArray441[l][i][i1].aObjStack_1316 = objStack; + aTileArrayArrayArray441[l][i][i1].aObjStack_1316 = objStack; } public void method282(int i, Entity entity, int j, int k, byte byte0, int l, Entity entity_1, int i1, int j1, int k1) { @@ -333,11 +333,11 @@ public class SceneGraph { wall.anInt276 = i; wall.anInt277 = j1; for (int l1 = k1; l1 >= 0; l1--) { - if (aClass30_Sub3ArrayArrayArray441[l1][l][k] == null) { - aClass30_Sub3ArrayArrayArray441[l1][l][k] = new Class30_Sub3(l1, l, k); + if (aTileArrayArrayArray441[l1][l][k] == null) { + aTileArrayArrayArray441[l1][l][k] = new SceneTile(l1, l, k); } } - aClass30_Sub3ArrayArrayArray441[k1][l][k].aWall_1313 = wall; + aTileArrayArrayArray441[k1][l][k].aWall_1313 = wall; } public void method283(int i, int j, int k, int i1, int j1, int k1, Entity entity, int l1, byte byte0, int i2, int j2) { @@ -354,11 +354,11 @@ public class SceneGraph { wallDecoration.anInt502 = j2; wallDecoration.anInt503 = k; for (int k2 = i1; k2 >= 0; k2--) { - if (aClass30_Sub3ArrayArrayArray441[k2][l1][j] == null) { - aClass30_Sub3ArrayArrayArray441[k2][l1][j] = new Class30_Sub3(k2, l1, j); + if (aTileArrayArrayArray441[k2][l1][j] == null) { + aTileArrayArrayArray441[k2][l1][j] = new SceneTile(k2, l1, j); } } - aClass30_Sub3ArrayArrayArray441[i1][l1][j].aWallDecoration_1314 = wallDecoration; + aTileArrayArrayArray441[i1][l1][j].aWallDecoration_1314 = wallDecoration; } public boolean method284(int i, byte byte0, int j, int k, Entity entity, int l, int i1, int j1, int k1, int l1) { @@ -414,8 +414,8 @@ public class SceneGraph { if (k2 < 0 || l2 < 0 || k2 >= anInt438 || l2 >= anInt439) { return false; } - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][k2][l2]; - if (class30_sub3 != null && class30_sub3.anInt1317 >= 5) { + SceneTile tile = aTileArrayArrayArray441[i][k2][l2]; + if (tile != null && tile.anInt1317 >= 5) { return false; } } @@ -449,15 +449,15 @@ public class SceneGraph { k3 += 2; } for (int l3 = i; l3 >= 0; l3--) { - if (aClass30_Sub3ArrayArrayArray441[l3][i3][j3] == null) { - aClass30_Sub3ArrayArrayArray441[l3][i3][j3] = new Class30_Sub3(l3, i3, j3); + if (aTileArrayArrayArray441[l3][i3][j3] == null) { + aTileArrayArrayArray441[l3][i3][j3] = new SceneTile(l3, i3, j3); } } - Class30_Sub3 class30_sub3_1 = aClass30_Sub3ArrayArrayArray441[i][i3][j3]; - class30_sub3_1.aLocArray1318[class30_sub3_1.anInt1317] = loc; - class30_sub3_1.anIntArray1319[class30_sub3_1.anInt1317] = k3; - class30_sub3_1.anInt1320 |= k3; - class30_sub3_1.anInt1317++; + SceneTile tile_1 = aTileArrayArrayArray441[i][i3][j3]; + tile_1.aLocArray1318[tile_1.anInt1317] = loc; + tile_1.anIntArray1319[tile_1.anInt1317] = k3; + tile_1.anInt1320 |= k3; + tile_1.anInt1317++; } } if (flag) { @@ -478,23 +478,23 @@ public class SceneGraph { public void method289(SceneLoc loc) { for (int j = loc.anInt523; j <= loc.anInt524; j++) { for (int k = loc.anInt525; k <= loc.anInt526; k++) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[loc.anInt517][j][k]; - if (class30_sub3 != null) { - for (int l = 0; l < class30_sub3.anInt1317; l++) { - if (class30_sub3.aLocArray1318[l] != loc) { + SceneTile tile = aTileArrayArrayArray441[loc.anInt517][j][k]; + if (tile != null) { + for (int l = 0; l < tile.anInt1317; l++) { + if (tile.aLocArray1318[l] != loc) { continue; } - class30_sub3.anInt1317--; - for (int i1 = l; i1 < class30_sub3.anInt1317; i1++) { - class30_sub3.aLocArray1318[i1] = class30_sub3.aLocArray1318[i1 + 1]; - class30_sub3.anIntArray1319[i1] = class30_sub3.anIntArray1319[i1 + 1]; + tile.anInt1317--; + for (int i1 = l; i1 < tile.anInt1317; i1++) { + tile.aLocArray1318[i1] = tile.aLocArray1318[i1 + 1]; + tile.anIntArray1319[i1] = tile.anIntArray1319[i1 + 1]; } - class30_sub3.aLocArray1318[class30_sub3.anInt1317] = null; + tile.aLocArray1318[tile.anInt1317] = null; break; } - class30_sub3.anInt1320 = 0; - for (int j1 = 0; j1 < class30_sub3.anInt1317; j1++) { - class30_sub3.anInt1320 |= class30_sub3.anIntArray1319[j1]; + tile.anInt1320 = 0; + for (int j1 = 0; j1 < tile.anInt1317; j1++) { + tile.anInt1320 |= tile.anIntArray1319[j1]; } } } @@ -502,11 +502,11 @@ public class SceneGraph { } public void method290(int i, int k, int l, int i1) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i1][l][i]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[i1][l][i]; + if (tile == null) { return; } - SceneWallDecoration wallDecoration = class30_sub3.aWallDecoration_1314; + SceneWallDecoration wallDecoration = tile.aWallDecoration_1314; if (wallDecoration != null) { int j1 = l * 128 + 64; int k1 = i * 128 + 64; @@ -516,26 +516,26 @@ public class SceneGraph { } public void method291(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[j][i][k]; - if (class30_sub3 != null) { - class30_sub3.aWall_1313 = null; + SceneTile tile = aTileArrayArrayArray441[j][i][k]; + if (tile != null) { + tile.aWall_1313 = null; } } public void method292(int j, int k, int l) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[k][l][j]; - if (class30_sub3 != null) { - class30_sub3.aWallDecoration_1314 = null; + SceneTile tile = aTileArrayArrayArray441[k][l][j]; + if (tile != null) { + tile.aWallDecoration_1314 = null; } } public void method293(int i, int k, int l) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][k][l]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[i][k][l]; + if (tile == null) { return; } - for (int j1 = 0; j1 < class30_sub3.anInt1317; j1++) { - SceneLoc loc = class30_sub3.aLocArray1318[j1]; + for (int j1 = 0; j1 < tile.anInt1317; j1++) { + SceneLoc loc = tile.aLocArray1318[j1]; if ((loc.anInt529 >> 29 & 3) == 2 && loc.anInt523 == k && loc.anInt525 == l) { method289(loc); return; @@ -544,44 +544,44 @@ public class SceneGraph { } public void method294(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][k][j]; - if (class30_sub3 != null) { - class30_sub3.aClass49_1315 = null; + SceneTile tile = aTileArrayArrayArray441[i][k][j]; + if (tile != null) { + tile.aGroundDecoration_1315 = null; } } public void method295(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 != null) { - class30_sub3.aObjStack_1316 = null; + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile != null) { + tile.aObjStack_1316 = null; } } public SceneWall method296(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 != null) { - return class30_sub3.aWall_1313; + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile != null) { + return tile.aWall_1313; } else { return null; } } public SceneWallDecoration method297(int i, int k, int l) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[l][i][k]; - if (class30_sub3 != null) { - return class30_sub3.aWallDecoration_1314; + SceneTile tile = aTileArrayArrayArray441[l][i][k]; + if (tile != null) { + return tile.aWallDecoration_1314; } else { return null; } } public SceneLoc method298(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[k][i][j]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[k][i][j]; + if (tile == null) { return null; } - for (int l = 0; l < class30_sub3.anInt1317; l++) { - SceneLoc loc = class30_sub3.aLocArray1318[l]; + for (int l = 0; l < tile.anInt1317; l++) { + SceneLoc loc = tile.aLocArray1318[l]; if ((loc.anInt529 >> 29 & 3) == 2 && loc.anInt523 == i && loc.anInt525 == j) { return loc; } @@ -589,40 +589,40 @@ public class SceneGraph { return null; } - public Class49 method299(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[k][j][i]; - if (class30_sub3 != null && class30_sub3.aClass49_1315 != null) { - return class30_sub3.aClass49_1315; + public SceneGroundDecoration method299(int i, int j, int k) { + SceneTile tile = aTileArrayArrayArray441[k][j][i]; + if (tile != null && tile.aGroundDecoration_1315 != null) { + return tile.aGroundDecoration_1315; } else { return null; } } public int method300(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 != null && class30_sub3.aWall_1313 != null) { - return class30_sub3.aWall_1313.anInt280; + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile != null && tile.aWall_1313 != null) { + return tile.aWall_1313.anInt280; } else { return 0; } } public int method301(int i, int j, int l) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][l]; - if (class30_sub3 == null || class30_sub3.aWallDecoration_1314 == null) { + SceneTile tile = aTileArrayArrayArray441[i][j][l]; + if (tile == null || tile.aWallDecoration_1314 == null) { return 0; } else { - return class30_sub3.aWallDecoration_1314.anInt505; + return tile.aWallDecoration_1314.anInt505; } } public int method302(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile == null) { return 0; } - for (int l = 0; l < class30_sub3.anInt1317; l++) { - SceneLoc loc = class30_sub3.aLocArray1318[l]; + for (int l = 0; l < tile.anInt1317; l++) { + SceneLoc loc = tile.aLocArray1318[l]; if ((loc.anInt529 >> 29 & 3) == 2 && loc.anInt523 == j && loc.anInt525 == k) { return loc.anInt529; } @@ -631,31 +631,31 @@ public class SceneGraph { } public int method303(int i, int j, int k) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 == null || class30_sub3.aClass49_1315 == null) { + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile == null || tile.aGroundDecoration_1315 == null) { return 0; } else { - return class30_sub3.aClass49_1315.anInt815; + return tile.aGroundDecoration_1315.anInt815; } } public int method304(int i, int j, int k, int l) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[i][j][k]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[i][j][k]; + if (tile == null) { return -1; } - if (class30_sub3.aWall_1313 != null && class30_sub3.aWall_1313.anInt280 == l) { - return class30_sub3.aWall_1313.aByte281 & 0xff; + if (tile.aWall_1313 != null && tile.aWall_1313.anInt280 == l) { + return tile.aWall_1313.aByte281 & 0xff; } - if (class30_sub3.aWallDecoration_1314 != null && class30_sub3.aWallDecoration_1314.anInt505 == l) { - return class30_sub3.aWallDecoration_1314.aByte506 & 0xff; + if (tile.aWallDecoration_1314 != null && tile.aWallDecoration_1314.anInt505 == l) { + return tile.aWallDecoration_1314.aByte506 & 0xff; } - if (class30_sub3.aClass49_1315 != null && class30_sub3.aClass49_1315.anInt815 == l) { - return class30_sub3.aClass49_1315.aByte816 & 0xff; + if (tile.aGroundDecoration_1315 != null && tile.aGroundDecoration_1315.anInt815 == l) { + return tile.aGroundDecoration_1315.aByte816 & 0xff; } - for (int i1 = 0; i1 < class30_sub3.anInt1317; i1++) { - if (class30_sub3.aLocArray1318[i1].anInt529 == l) { - return class30_sub3.aLocArray1318[i1].aByte530 & 0xff; + for (int i1 = 0; i1 < tile.anInt1317; i1++) { + if (tile.aLocArray1318[i1].anInt529 == l) { + return tile.aLocArray1318[i1].aByte530 & 0xff; } } return -1; @@ -667,29 +667,29 @@ public class SceneGraph { for (int l1 = 0; l1 < anInt437; l1++) { for (int i2 = 0; i2 < anInt438; i2++) { for (int j2 = 0; j2 < anInt439; j2++) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[l1][i2][j2]; - if (class30_sub3 != null) { - SceneWall wall = class30_sub3.aWall_1313; - if (wall != null && wall.aEntity_278 != null && wall.aEntity_278.aClass33Array1425 != null) { + SceneTile tile = aTileArrayArrayArray441[l1][i2][j2]; + if (tile != null) { + SceneWall wall = tile.aWall_1313; + if (wall != null && wall.aEntity_278 != null && wall.aEntity_278.aNormalArray1425 != null) { method307(l1, 1, 1, i2, j2, (Model) wall.aEntity_278); - if (wall.aEntity_279 != null && wall.aEntity_279.aClass33Array1425 != null) { + if (wall.aEntity_279 != null && wall.aEntity_279.aNormalArray1425 != null) { method307(l1, 1, 1, i2, j2, (Model) wall.aEntity_279); method308((Model) wall.aEntity_278, (Model) wall.aEntity_279, 0, 0, 0, false); ((Model) wall.aEntity_279).method480(j, k1, k, i, i1); } ((Model) wall.aEntity_278).method480(j, k1, k, i, i1); } - for (int k2 = 0; k2 < class30_sub3.anInt1317; k2++) { - SceneLoc loc = class30_sub3.aLocArray1318[k2]; - if (loc != null && loc.aEntity_521 != null && loc.aEntity_521.aClass33Array1425 != null) { + for (int k2 = 0; k2 < tile.anInt1317; k2++) { + SceneLoc loc = tile.aLocArray1318[k2]; + if (loc != null && loc.aEntity_521 != null && loc.aEntity_521.aNormalArray1425 != null) { method307(l1, (loc.anInt524 - loc.anInt523) + 1, (loc.anInt526 - loc.anInt525) + 1, i2, j2, (Model) loc.aEntity_521); ((Model) loc.aEntity_521).method480(j, k1, k, i, i1); } } - Class49 class49 = class30_sub3.aClass49_1315; - if (class49 != null && class49.aEntity_814.aClass33Array1425 != null) { - method306(i2, l1, (Model) class49.aEntity_814, j2); - ((Model) class49.aEntity_814).method480(j, k1, k, i, i1); + SceneGroundDecoration groundDecoration = tile.aGroundDecoration_1315; + if (groundDecoration != null && groundDecoration.aEntity_814.aNormalArray1425 != null) { + method306(i2, l1, (Model) groundDecoration.aEntity_814, j2); + ((Model) groundDecoration.aEntity_814).method480(j, k1, k, i, i1); } } } @@ -699,27 +699,27 @@ public class SceneGraph { public void method306(int i, int j, Model model, int k) { if (i < anInt438) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[j][i + 1][k]; - if (class30_sub3 != null && class30_sub3.aClass49_1315 != null && class30_sub3.aClass49_1315.aEntity_814.aClass33Array1425 != null) { - method308(model, (Model) class30_sub3.aClass49_1315.aEntity_814, 128, 0, 0, true); + SceneTile tile = aTileArrayArrayArray441[j][i + 1][k]; + if (tile != null && tile.aGroundDecoration_1315 != null && tile.aGroundDecoration_1315.aEntity_814.aNormalArray1425 != null) { + method308(model, (Model) tile.aGroundDecoration_1315.aEntity_814, 128, 0, 0, true); } } if (k < anInt438) { - Class30_Sub3 class30_sub3_1 = aClass30_Sub3ArrayArrayArray441[j][i][k + 1]; - if (class30_sub3_1 != null && class30_sub3_1.aClass49_1315 != null && class30_sub3_1.aClass49_1315.aEntity_814.aClass33Array1425 != null) { - method308(model, (Model) class30_sub3_1.aClass49_1315.aEntity_814, 0, 0, 128, true); + SceneTile tile_1 = aTileArrayArrayArray441[j][i][k + 1]; + if (tile_1 != null && tile_1.aGroundDecoration_1315 != null && tile_1.aGroundDecoration_1315.aEntity_814.aNormalArray1425 != null) { + method308(model, (Model) tile_1.aGroundDecoration_1315.aEntity_814, 0, 0, 128, true); } } if (i < anInt438 && k < anInt439) { - Class30_Sub3 class30_sub3_2 = aClass30_Sub3ArrayArrayArray441[j][i + 1][k + 1]; - if (class30_sub3_2 != null && class30_sub3_2.aClass49_1315 != null && class30_sub3_2.aClass49_1315.aEntity_814.aClass33Array1425 != null) { - method308(model, (Model) class30_sub3_2.aClass49_1315.aEntity_814, 128, 0, 128, true); + SceneTile tile_2 = aTileArrayArrayArray441[j][i + 1][k + 1]; + if (tile_2 != null && tile_2.aGroundDecoration_1315 != null && tile_2.aGroundDecoration_1315.aEntity_814.aNormalArray1425 != null) { + method308(model, (Model) tile_2.aGroundDecoration_1315.aEntity_814, 128, 0, 128, true); } } if (i < anInt438 && k > 0) { - Class30_Sub3 class30_sub3_3 = aClass30_Sub3ArrayArrayArray441[j][i + 1][k - 1]; - if (class30_sub3_3 != null && class30_sub3_3.aClass49_1315 != null && class30_sub3_3.aClass49_1315.aEntity_814.aClass33Array1425 != null) { - method308(model, (Model) class30_sub3_3.aClass49_1315.aEntity_814, 128, 0, -128, true); + SceneTile tile_3 = aTileArrayArrayArray441[j][i + 1][k - 1]; + if (tile_3 != null && tile_3.aGroundDecoration_1315 != null && tile_3.aGroundDecoration_1315.aEntity_814.aNormalArray1425 != null) { + method308(model, (Model) tile_3.aGroundDecoration_1315.aEntity_814, 128, 0, -128, true); } } } @@ -736,19 +736,19 @@ public class SceneGraph { if (k2 >= 0 && k2 < anInt438) { for (int l2 = l1; l2 <= i2; l2++) { if (l2 >= 0 && l2 < anInt439 && (!flag || k2 >= k1 || l2 >= i2 || l2 < i1 && k2 != l)) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[j2][k2][l2]; - if (class30_sub3 != null) { + SceneTile tile = aTileArrayArrayArray441[j2][k2][l2]; + if (tile != null) { int i3 = (anIntArrayArrayArray440[j2][k2][l2] + anIntArrayArrayArray440[j2][k2 + 1][l2] + anIntArrayArrayArray440[j2][k2][l2 + 1] + anIntArrayArrayArray440[j2][k2 + 1][l2 + 1]) / 4 - (anIntArrayArrayArray440[i][l][i1] + anIntArrayArrayArray440[i][l + 1][i1] + anIntArrayArrayArray440[i][l][i1 + 1] + anIntArrayArrayArray440[i][l + 1][i1 + 1]) / 4; - SceneWall wall = class30_sub3.aWall_1313; - if (wall != null && wall.aEntity_278 != null && wall.aEntity_278.aClass33Array1425 != null) { + SceneWall wall = tile.aWall_1313; + if (wall != null && wall.aEntity_278 != null && wall.aEntity_278.aNormalArray1425 != null) { method308(model, (Model) wall.aEntity_278, (k2 - l) * 128 + (1 - j) * 64, i3, (l2 - i1) * 128 + (1 - k) * 64, flag); } - if (wall != null && wall.aEntity_279 != null && wall.aEntity_279.aClass33Array1425 != null) { + if (wall != null && wall.aEntity_279 != null && wall.aEntity_279.aNormalArray1425 != null) { method308(model, (Model) wall.aEntity_279, (k2 - l) * 128 + (1 - j) * 64, i3, (l2 - i1) * 128 + (1 - k) * 64, flag); } - for (int j3 = 0; j3 < class30_sub3.anInt1317; j3++) { - SceneLoc loc = class30_sub3.aLocArray1318[j3]; - if (loc != null && loc.aEntity_521 != null && loc.aEntity_521.aClass33Array1425 != null) { + for (int j3 = 0; j3 < tile.anInt1317; j3++) { + SceneLoc loc = tile.aLocArray1318[j3]; + if (loc != null && loc.aEntity_521 != null && loc.aEntity_521.aNormalArray1425 != null) { int k3 = (loc.anInt524 - loc.anInt523) + 1; int l3 = (loc.anInt526 - loc.anInt525) + 1; method308(model, (Model) loc.aEntity_521, (loc.anInt523 - l) * 128 + (k3 - j) * 64, i3, (loc.anInt525 - i1) * 128 + (l3 - k) * 64, flag); @@ -771,9 +771,9 @@ public class SceneGraph { int[] ai = model_1.anIntArray1627; int i1 = model_1.anInt1626; for (int j1 = 0; j1 < model.anInt1626; j1++) { - Class33 class33 = model.aClass33Array1425[j1]; - Class33 class33_1 = model.aClass33Array1660[j1]; - if (class33_1.anInt605 != 0) { + VertexNormal normal = model.aNormalArray1425[j1]; + VertexNormal normal_1 = model.aNormalArray1660[j1]; + if (normal_1.anInt605 != 0) { int i2 = model.anIntArray1628[j1] - j; if (i2 <= model_1.anInt1651) { int j2 = model.anIntArray1627[j1] - i; @@ -781,17 +781,17 @@ public class SceneGraph { int k2 = model.anIntArray1629[j1] - k; if (k2 >= model_1.anInt1649 && k2 <= model_1.anInt1648) { for (int l2 = 0; l2 < i1; l2++) { - Class33 class33_2 = model_1.aClass33Array1425[l2]; - Class33 class33_3 = model_1.aClass33Array1660[l2]; - if (j2 == ai[l2] && k2 == model_1.anIntArray1629[l2] && i2 == model_1.anIntArray1628[l2] && class33_3.anInt605 != 0) { - class33.anInt602 += class33_3.anInt602; - class33.anInt603 += class33_3.anInt603; - class33.anInt604 += class33_3.anInt604; - class33.anInt605 += class33_3.anInt605; - class33_2.anInt602 += class33_1.anInt602; - class33_2.anInt603 += class33_1.anInt603; - class33_2.anInt604 += class33_1.anInt604; - class33_2.anInt605 += class33_1.anInt605; + VertexNormal normal_2 = model_1.aNormalArray1425[l2]; + VertexNormal normal_3 = model_1.aNormalArray1660[l2]; + if (j2 == ai[l2] && k2 == model_1.anIntArray1629[l2] && i2 == model_1.anIntArray1628[l2] && normal_3.anInt605 != 0) { + normal.anInt602 += normal_3.anInt602; + normal.anInt603 += normal_3.anInt603; + normal.anInt604 += normal_3.anInt604; + normal.anInt605 += normal_3.anInt605; + normal_2.anInt602 += normal_1.anInt602; + normal_2.anInt603 += normal_1.anInt603; + normal_2.anInt604 += normal_1.anInt604; + normal_2.anInt605 += normal_1.anInt605; l++; anIntArray486[j1] = anInt488; anIntArray487[l2] = anInt488; @@ -818,13 +818,13 @@ public class SceneGraph { } public void method309(int[] ai, int i, int j, int k, int l, int i1) { - Class30_Sub3 class30_sub3 = aClass30_Sub3ArrayArrayArray441[k][l][i1]; - if (class30_sub3 == null) { + SceneTile tile = aTileArrayArrayArray441[k][l][i1]; + if (tile == null) { return; } - Class43 class43 = class30_sub3.aClass43_1311; - if (class43 != null) { - int j1 = class43.anInt722; + SceneTileUnderlay underlay = tile.aUnderlay_1311; + if (underlay != null) { + int j1 = underlay.anInt722; if (j1 == 0) { return; } @@ -837,14 +837,14 @@ public class SceneGraph { } return; } - Class40 class40 = class30_sub3.aClass40_1312; - if (class40 == null) { + SceneTileOverlay overlay = tile.aOverlay_1312; + if (overlay == null) { return; } - int l1 = class40.anInt684; - int i2 = class40.anInt685; - int j2 = class40.anInt686; - int k2 = class40.anInt687; + int l1 = overlay.anInt684; + int i2 = overlay.anInt685; + int j2 = overlay.anInt686; + int k2 = overlay.anInt687; int[] ai1 = anIntArrayArray489[l1]; int[] ai2 = anIntArrayArray490[i2]; int l2 = 0; @@ -928,19 +928,19 @@ public class SceneGraph { method319(); anInt446 = 0; for (int k1 = anInt442; k1 < anInt437; k1++) { - Class30_Sub3[][] aclass30_sub3 = aClass30_Sub3ArrayArrayArray441[k1]; + SceneTile[][] aclass30_sub3 = aTileArrayArrayArray441[k1]; for (int i2 = anInt449; i2 < anInt450; i2++) { for (int k2 = anInt451; k2 < anInt452; k2++) { - Class30_Sub3 class30_sub3 = aclass30_sub3[i2][k2]; - if (class30_sub3 != null) { - if (class30_sub3.anInt1321 > i1 || !aBooleanArrayArray492[(i2 - anInt453) + 25][(k2 - anInt454) + 25] && anIntArrayArrayArray440[k1][i2][k2] - l < 2000) { - class30_sub3.aBoolean1322 = false; - class30_sub3.aBoolean1323 = false; - class30_sub3.anInt1325 = 0; + SceneTile tile = aclass30_sub3[i2][k2]; + if (tile != null) { + if (tile.anInt1321 > i1 || !aBooleanArrayArray492[(i2 - anInt453) + 25][(k2 - anInt454) + 25] && anIntArrayArrayArray440[k1][i2][k2] - l < 2000) { + tile.aBoolean1322 = false; + tile.aBoolean1323 = false; + tile.anInt1325 = 0; } else { - class30_sub3.aBoolean1322 = true; - class30_sub3.aBoolean1323 = true; - class30_sub3.aBoolean1324 = class30_sub3.anInt1317 > 0; + tile.aBoolean1322 = true; + tile.aBoolean1323 = true; + tile.aBoolean1324 = tile.anInt1317 > 0; anInt446++; } } @@ -948,7 +948,7 @@ public class SceneGraph { } } for (int l1 = anInt442; l1 < anInt437; l1++) { - Class30_Sub3[][] aclass30_sub3_1 = aClass30_Sub3ArrayArrayArray441[l1]; + SceneTile[][] aclass30_sub3_1 = aTileArrayArrayArray441[l1]; for (int l2 = -25; l2 <= 0; l2++) { int i3 = anInt453 + l2; int k3 = anInt453 - l2; @@ -958,29 +958,29 @@ public class SceneGraph { int i5 = anInt454 - i4; if (i3 >= anInt449) { if (k4 >= anInt451) { - Class30_Sub3 class30_sub3_1 = aclass30_sub3_1[i3][k4]; - if (class30_sub3_1 != null && class30_sub3_1.aBoolean1322) { - method314(class30_sub3_1, true); + SceneTile tile_1 = aclass30_sub3_1[i3][k4]; + if (tile_1 != null && tile_1.aBoolean1322) { + method314(tile_1, true); } } if (i5 < anInt452) { - Class30_Sub3 class30_sub3_2 = aclass30_sub3_1[i3][i5]; - if (class30_sub3_2 != null && class30_sub3_2.aBoolean1322) { - method314(class30_sub3_2, true); + SceneTile tile_2 = aclass30_sub3_1[i3][i5]; + if (tile_2 != null && tile_2.aBoolean1322) { + method314(tile_2, true); } } } if (k3 < anInt450) { if (k4 >= anInt451) { - Class30_Sub3 class30_sub3_3 = aclass30_sub3_1[k3][k4]; - if (class30_sub3_3 != null && class30_sub3_3.aBoolean1322) { - method314(class30_sub3_3, true); + SceneTile tile_3 = aclass30_sub3_1[k3][k4]; + if (tile_3 != null && tile_3.aBoolean1322) { + method314(tile_3, true); } } if (i5 < anInt452) { - Class30_Sub3 class30_sub3_4 = aclass30_sub3_1[k3][i5]; - if (class30_sub3_4 != null && class30_sub3_4.aBoolean1322) { - method314(class30_sub3_4, true); + SceneTile tile_4 = aclass30_sub3_1[k3][i5]; + if (tile_4 != null && tile_4.aBoolean1322) { + method314(tile_4, true); } } } @@ -993,7 +993,7 @@ public class SceneGraph { } } for (int j2 = anInt442; j2 < anInt437; j2++) { - Class30_Sub3[][] aclass30_sub3_2 = aClass30_Sub3ArrayArrayArray441[j2]; + SceneTile[][] aclass30_sub3_2 = aTileArrayArrayArray441[j2]; for (int j3 = -25; j3 <= 0; j3++) { int l3 = anInt453 + j3; int j4 = anInt453 - j3; @@ -1003,29 +1003,29 @@ public class SceneGraph { int k5 = anInt454 - l4; if (l3 >= anInt449) { if (j5 >= anInt451) { - Class30_Sub3 class30_sub3_5 = aclass30_sub3_2[l3][j5]; - if (class30_sub3_5 != null && class30_sub3_5.aBoolean1322) { - method314(class30_sub3_5, false); + SceneTile tile_5 = aclass30_sub3_2[l3][j5]; + if (tile_5 != null && tile_5.aBoolean1322) { + method314(tile_5, false); } } if (k5 < anInt452) { - Class30_Sub3 class30_sub3_6 = aclass30_sub3_2[l3][k5]; - if (class30_sub3_6 != null && class30_sub3_6.aBoolean1322) { - method314(class30_sub3_6, false); + SceneTile tile_6 = aclass30_sub3_2[l3][k5]; + if (tile_6 != null && tile_6.aBoolean1322) { + method314(tile_6, false); } } } if (j4 < anInt450) { if (j5 >= anInt451) { - Class30_Sub3 class30_sub3_7 = aclass30_sub3_2[j4][j5]; - if (class30_sub3_7 != null && class30_sub3_7.aBoolean1322) { - method314(class30_sub3_7, false); + SceneTile tile_7 = aclass30_sub3_2[j4][j5]; + if (tile_7 != null && tile_7.aBoolean1322) { + method314(tile_7, false); } } if (k5 < anInt452) { - Class30_Sub3 class30_sub3_8 = aclass30_sub3_2[j4][k5]; - if (class30_sub3_8 != null && class30_sub3_8.aBoolean1322) { - method314(class30_sub3_8, false); + SceneTile tile_8 = aclass30_sub3_2[j4][k5]; + if (tile_8 != null && tile_8.aBoolean1322) { + method314(tile_8, false); } } } @@ -1040,91 +1040,91 @@ public class SceneGraph { aBoolean467 = false; } - public void method314(Class30_Sub3 class30_sub3, boolean flag) { - aList_477.method249(class30_sub3); + public void method314(SceneTile tile, boolean flag) { + aList_477.method249(tile); do { - Class30_Sub3 class30_sub3_1; + SceneTile tile_1; do { - class30_sub3_1 = (Class30_Sub3) aList_477.method251(); - if (class30_sub3_1 == null) { + tile_1 = (SceneTile) aList_477.method251(); + if (tile_1 == null) { return; } - } while (!class30_sub3_1.aBoolean1323); - int i = class30_sub3_1.anInt1308; - int j = class30_sub3_1.anInt1309; - int k = class30_sub3_1.anInt1307; - int l = class30_sub3_1.anInt1310; - Class30_Sub3[][] aclass30_sub3 = aClass30_Sub3ArrayArrayArray441[k]; - if (class30_sub3_1.aBoolean1322) { + } while (!tile_1.aBoolean1323); + int i = tile_1.anInt1308; + int j = tile_1.anInt1309; + int k = tile_1.anInt1307; + int l = tile_1.anInt1310; + SceneTile[][] aclass30_sub3 = aTileArrayArrayArray441[k]; + if (tile_1.aBoolean1322) { if (flag) { if (k > 0) { - Class30_Sub3 class30_sub3_2 = aClass30_Sub3ArrayArrayArray441[k - 1][i][j]; - if (class30_sub3_2 != null && class30_sub3_2.aBoolean1323) { + SceneTile tile_2 = aTileArrayArrayArray441[k - 1][i][j]; + if (tile_2 != null && tile_2.aBoolean1323) { continue; } } if (i <= anInt453 && i > anInt449) { - Class30_Sub3 class30_sub3_3 = aclass30_sub3[i - 1][j]; - if (class30_sub3_3 != null && class30_sub3_3.aBoolean1323 && (class30_sub3_3.aBoolean1322 || (class30_sub3_1.anInt1320 & 1) == 0)) { + SceneTile tile_3 = aclass30_sub3[i - 1][j]; + if (tile_3 != null && tile_3.aBoolean1323 && (tile_3.aBoolean1322 || (tile_1.anInt1320 & 1) == 0)) { continue; } } if (i >= anInt453 && i < anInt450 - 1) { - Class30_Sub3 class30_sub3_4 = aclass30_sub3[i + 1][j]; - if (class30_sub3_4 != null && class30_sub3_4.aBoolean1323 && (class30_sub3_4.aBoolean1322 || (class30_sub3_1.anInt1320 & 4) == 0)) { + SceneTile tile_4 = aclass30_sub3[i + 1][j]; + if (tile_4 != null && tile_4.aBoolean1323 && (tile_4.aBoolean1322 || (tile_1.anInt1320 & 4) == 0)) { continue; } } if (j <= anInt454 && j > anInt451) { - Class30_Sub3 class30_sub3_5 = aclass30_sub3[i][j - 1]; - if (class30_sub3_5 != null && class30_sub3_5.aBoolean1323 && (class30_sub3_5.aBoolean1322 || (class30_sub3_1.anInt1320 & 8) == 0)) { + SceneTile tile_5 = aclass30_sub3[i][j - 1]; + if (tile_5 != null && tile_5.aBoolean1323 && (tile_5.aBoolean1322 || (tile_1.anInt1320 & 8) == 0)) { continue; } } if (j >= anInt454 && j < anInt452 - 1) { - Class30_Sub3 class30_sub3_6 = aclass30_sub3[i][j + 1]; - if (class30_sub3_6 != null && class30_sub3_6.aBoolean1323 && (class30_sub3_6.aBoolean1322 || (class30_sub3_1.anInt1320 & 2) == 0)) { + SceneTile tile_6 = aclass30_sub3[i][j + 1]; + if (tile_6 != null && tile_6.aBoolean1323 && (tile_6.aBoolean1322 || (tile_1.anInt1320 & 2) == 0)) { continue; } } } else { flag = true; } - class30_sub3_1.aBoolean1322 = false; - if (class30_sub3_1.aClass30_Sub3_1329 != null) { - Class30_Sub3 class30_sub3_7 = class30_sub3_1.aClass30_Sub3_1329; - if (class30_sub3_7.aClass43_1311 != null) { + tile_1.aBoolean1322 = false; + if (tile_1.aTile_1329 != null) { + SceneTile tile_7 = tile_1.aTile_1329; + if (tile_7.aUnderlay_1311 != null) { if (!method320(0, i, j)) { - method315(class30_sub3_7.aClass43_1311, 0, anInt458, anInt459, anInt460, anInt461, i, j); + method315(tile_7.aUnderlay_1311, 0, anInt458, anInt459, anInt460, anInt461, i, j); } - } else if (class30_sub3_7.aClass40_1312 != null && !method320(0, i, j)) { - method316(i, anInt458, anInt460, class30_sub3_7.aClass40_1312, anInt459, j, anInt461); + } else if (tile_7.aOverlay_1312 != null && !method320(0, i, j)) { + method316(i, anInt458, anInt460, tile_7.aOverlay_1312, anInt459, j, anInt461); } - SceneWall wall = class30_sub3_7.aWall_1313; + SceneWall wall = tile_7.aWall_1313; if (wall != null) { wall.aEntity_278.method443(0, anInt458, anInt459, anInt460, anInt461, wall.anInt274 - anInt455, wall.anInt273 - anInt456, wall.anInt275 - anInt457, wall.anInt280); } - for (int i2 = 0; i2 < class30_sub3_7.anInt1317; i2++) { - SceneLoc loc = class30_sub3_7.aLocArray1318[i2]; + for (int i2 = 0; i2 < tile_7.anInt1317; i2++) { + SceneLoc loc = tile_7.aLocArray1318[i2]; if (loc != null) { loc.aEntity_521.method443(loc.anInt522, anInt458, anInt459, anInt460, anInt461, loc.anInt519 - anInt455, loc.anInt518 - anInt456, loc.anInt520 - anInt457, loc.anInt529); } } } boolean flag1 = false; - if (class30_sub3_1.aClass43_1311 != null) { + if (tile_1.aUnderlay_1311 != null) { if (!method320(l, i, j)) { flag1 = true; - method315(class30_sub3_1.aClass43_1311, l, anInt458, anInt459, anInt460, anInt461, i, j); + method315(tile_1.aUnderlay_1311, l, anInt458, anInt459, anInt460, anInt461, i, j); } - } else if (class30_sub3_1.aClass40_1312 != null && !method320(l, i, j)) { + } else if (tile_1.aOverlay_1312 != null && !method320(l, i, j)) { flag1 = true; - method316(i, anInt458, anInt460, class30_sub3_1.aClass40_1312, anInt459, j, anInt461); + method316(i, anInt458, anInt460, tile_1.aOverlay_1312, anInt459, j, anInt461); } int j1 = 0; int j2 = 0; - SceneWall wall_3 = class30_sub3_1.aWall_1313; - SceneWallDecoration wallDecoration_1 = class30_sub3_1.aWallDecoration_1314; + SceneWall wall_3 = tile_1.aWall_1313; + SceneWallDecoration wallDecoration_1 = tile_1.aWallDecoration_1314; if (wall_3 != null || wallDecoration_1 != null) { if (anInt453 == i) { j1++; @@ -1137,29 +1137,29 @@ public class SceneGraph { j1 += 6; } j2 = anIntArray478[j1]; - class30_sub3_1.anInt1328 = anIntArray480[j1]; + tile_1.anInt1328 = anIntArray480[j1]; } if (wall_3 != null) { if ((wall_3.anInt276 & anIntArray479[j1]) != 0) { if (wall_3.anInt276 == 16) { - class30_sub3_1.anInt1325 = 3; - class30_sub3_1.anInt1326 = anIntArray481[j1]; - class30_sub3_1.anInt1327 = 3 - class30_sub3_1.anInt1326; + tile_1.anInt1325 = 3; + tile_1.anInt1326 = anIntArray481[j1]; + tile_1.anInt1327 = 3 - tile_1.anInt1326; } else if (wall_3.anInt276 == 32) { - class30_sub3_1.anInt1325 = 6; - class30_sub3_1.anInt1326 = anIntArray482[j1]; - class30_sub3_1.anInt1327 = 6 - class30_sub3_1.anInt1326; + tile_1.anInt1325 = 6; + tile_1.anInt1326 = anIntArray482[j1]; + tile_1.anInt1327 = 6 - tile_1.anInt1326; } else if (wall_3.anInt276 == 64) { - class30_sub3_1.anInt1325 = 12; - class30_sub3_1.anInt1326 = anIntArray483[j1]; - class30_sub3_1.anInt1327 = 12 - class30_sub3_1.anInt1326; + tile_1.anInt1325 = 12; + tile_1.anInt1326 = anIntArray483[j1]; + tile_1.anInt1327 = 12 - tile_1.anInt1326; } else { - class30_sub3_1.anInt1325 = 9; - class30_sub3_1.anInt1326 = anIntArray484[j1]; - class30_sub3_1.anInt1327 = 9 - class30_sub3_1.anInt1326; + tile_1.anInt1325 = 9; + tile_1.anInt1326 = anIntArray484[j1]; + tile_1.anInt1327 = 9 - tile_1.anInt1326; } } else { - class30_sub3_1.anInt1325 = 0; + tile_1.anInt1325 = 0; } if ((wall_3.anInt276 & j2) != 0 && !method321(l, i, j, wall_3.anInt276)) { wall_3.aEntity_278.method443(0, anInt458, anInt459, anInt460, anInt461, wall_3.anInt274 - anInt455, wall_3.anInt273 - anInt456, wall_3.anInt275 - anInt457, wall_3.anInt280); @@ -1201,11 +1201,11 @@ public class SceneGraph { } } if (flag1) { - Class49 class49 = class30_sub3_1.aClass49_1315; - if (class49 != null) { - class49.aEntity_814.method443(0, anInt458, anInt459, anInt460, anInt461, class49.anInt812 - anInt455, class49.anInt811 - anInt456, class49.anInt813 - anInt457, class49.anInt815); + SceneGroundDecoration groundDecoration = tile_1.aGroundDecoration_1315; + if (groundDecoration != null) { + groundDecoration.aEntity_814.method443(0, anInt458, anInt459, anInt460, anInt461, groundDecoration.anInt812 - anInt455, groundDecoration.anInt811 - anInt456, groundDecoration.anInt813 - anInt457, groundDecoration.anInt815); } - SceneObjStack objStack_1 = class30_sub3_1.aObjStack_1316; + SceneObjStack objStack_1 = tile_1.aObjStack_1316; if (objStack_1 != null && objStack_1.anInt52 == 0) { if (objStack_1.aEntity_49 != null) { objStack_1.aEntity_49.method443(0, anInt458, anInt459, anInt460, anInt461, objStack_1.anInt46 - anInt455, objStack_1.anInt45 - anInt456, objStack_1.anInt47 - anInt457, objStack_1.anInt51); @@ -1218,67 +1218,67 @@ public class SceneGraph { } } } - int k4 = class30_sub3_1.anInt1320; + int k4 = tile_1.anInt1320; if (k4 != 0) { if (i < anInt453 && (k4 & 4) != 0) { - Class30_Sub3 class30_sub3_17 = aclass30_sub3[i + 1][j]; - if (class30_sub3_17 != null && class30_sub3_17.aBoolean1323) { - aList_477.method249(class30_sub3_17); + SceneTile tile_17 = aclass30_sub3[i + 1][j]; + if (tile_17 != null && tile_17.aBoolean1323) { + aList_477.method249(tile_17); } } if (j < anInt454 && (k4 & 2) != 0) { - Class30_Sub3 class30_sub3_18 = aclass30_sub3[i][j + 1]; - if (class30_sub3_18 != null && class30_sub3_18.aBoolean1323) { - aList_477.method249(class30_sub3_18); + SceneTile tile_18 = aclass30_sub3[i][j + 1]; + if (tile_18 != null && tile_18.aBoolean1323) { + aList_477.method249(tile_18); } } if (i > anInt453 && (k4 & 1) != 0) { - Class30_Sub3 class30_sub3_19 = aclass30_sub3[i - 1][j]; - if (class30_sub3_19 != null && class30_sub3_19.aBoolean1323) { - aList_477.method249(class30_sub3_19); + SceneTile tile_19 = aclass30_sub3[i - 1][j]; + if (tile_19 != null && tile_19.aBoolean1323) { + aList_477.method249(tile_19); } } if (j > anInt454 && (k4 & 8) != 0) { - Class30_Sub3 class30_sub3_20 = aclass30_sub3[i][j - 1]; - if (class30_sub3_20 != null && class30_sub3_20.aBoolean1323) { - aList_477.method249(class30_sub3_20); + SceneTile tile_20 = aclass30_sub3[i][j - 1]; + if (tile_20 != null && tile_20.aBoolean1323) { + aList_477.method249(tile_20); } } } } - if (class30_sub3_1.anInt1325 != 0) { + if (tile_1.anInt1325 != 0) { boolean flag2 = true; - for (int k1 = 0; k1 < class30_sub3_1.anInt1317; k1++) { - if (class30_sub3_1.aLocArray1318[k1].anInt528 == anInt448 || (class30_sub3_1.anIntArray1319[k1] & class30_sub3_1.anInt1325) != class30_sub3_1.anInt1326) { + for (int k1 = 0; k1 < tile_1.anInt1317; k1++) { + if (tile_1.aLocArray1318[k1].anInt528 == anInt448 || (tile_1.anIntArray1319[k1] & tile_1.anInt1325) != tile_1.anInt1326) { continue; } flag2 = false; break; } if (flag2) { - SceneWall wall_1 = class30_sub3_1.aWall_1313; + SceneWall wall_1 = tile_1.aWall_1313; if (!method321(l, i, j, wall_1.anInt276)) { wall_1.aEntity_278.method443(0, anInt458, anInt459, anInt460, anInt461, wall_1.anInt274 - anInt455, wall_1.anInt273 - anInt456, wall_1.anInt275 - anInt457, wall_1.anInt280); } - class30_sub3_1.anInt1325 = 0; + tile_1.anInt1325 = 0; } } - if (class30_sub3_1.aBoolean1324) { + if (tile_1.aBoolean1324) { try { - int i1 = class30_sub3_1.anInt1317; - class30_sub3_1.aBoolean1324 = false; + int i1 = tile_1.anInt1317; + tile_1.aBoolean1324 = false; int l1 = 0; label0: for (int k2 = 0; k2 < i1; k2++) { - SceneLoc loc_1 = class30_sub3_1.aLocArray1318[k2]; + SceneLoc loc_1 = tile_1.aLocArray1318[k2]; if (loc_1.anInt528 == anInt448) { continue; } for (int k3 = loc_1.anInt523; k3 <= loc_1.anInt524; k3++) { for (int l4 = loc_1.anInt525; l4 <= loc_1.anInt526; l4++) { - Class30_Sub3 class30_sub3_21 = aclass30_sub3[k3][l4]; - if (!class30_sub3_21.aBoolean1322) { - if (class30_sub3_21.anInt1325 == 0) { + SceneTile tile_21 = aclass30_sub3[k3][l4]; + if (!tile_21.aBoolean1322) { + if (tile_21.anInt1325 == 0) { continue; } int l6 = 0; @@ -1294,11 +1294,11 @@ public class SceneGraph { if (l4 < loc_1.anInt526) { l6 += 2; } - if ((l6 & class30_sub3_21.anInt1325) != class30_sub3_1.anInt1327) { + if ((l6 & tile_21.anInt1325) != tile_1.anInt1327) { continue; } } - class30_sub3_1.aBoolean1324 = true; + tile_1.aBoolean1324 = true; continue label0; } } @@ -1346,52 +1346,52 @@ public class SceneGraph { } for (int k7 = loc_3.anInt523; k7 <= loc_3.anInt524; k7++) { for (int l8 = loc_3.anInt525; l8 <= loc_3.anInt526; l8++) { - Class30_Sub3 class30_sub3_22 = aclass30_sub3[k7][l8]; - if (class30_sub3_22.anInt1325 != 0) { - aList_477.method249(class30_sub3_22); - } else if ((k7 != i || l8 != j) && class30_sub3_22.aBoolean1323) { - aList_477.method249(class30_sub3_22); + SceneTile tile_22 = aclass30_sub3[k7][l8]; + if (tile_22.anInt1325 != 0) { + aList_477.method249(tile_22); + } else if ((k7 != i || l8 != j) && tile_22.aBoolean1323) { + aList_477.method249(tile_22); } } } } - if (class30_sub3_1.aBoolean1324) { + if (tile_1.aBoolean1324) { continue; } } catch (Exception _ex) { - class30_sub3_1.aBoolean1324 = false; + tile_1.aBoolean1324 = false; } } - if (!class30_sub3_1.aBoolean1323 || class30_sub3_1.anInt1325 != 0) { + if (!tile_1.aBoolean1323 || tile_1.anInt1325 != 0) { continue; } if (i <= anInt453 && i > anInt449) { - Class30_Sub3 class30_sub3_8 = aclass30_sub3[i - 1][j]; - if (class30_sub3_8 != null && class30_sub3_8.aBoolean1323) { + SceneTile tile_8 = aclass30_sub3[i - 1][j]; + if (tile_8 != null && tile_8.aBoolean1323) { continue; } } if (i >= anInt453 && i < anInt450 - 1) { - Class30_Sub3 class30_sub3_9 = aclass30_sub3[i + 1][j]; - if (class30_sub3_9 != null && class30_sub3_9.aBoolean1323) { + SceneTile tile_9 = aclass30_sub3[i + 1][j]; + if (tile_9 != null && tile_9.aBoolean1323) { continue; } } if (j <= anInt454 && j > anInt451) { - Class30_Sub3 class30_sub3_10 = aclass30_sub3[i][j - 1]; - if (class30_sub3_10 != null && class30_sub3_10.aBoolean1323) { + SceneTile tile_10 = aclass30_sub3[i][j - 1]; + if (tile_10 != null && tile_10.aBoolean1323) { continue; } } if (j >= anInt454 && j < anInt452 - 1) { - Class30_Sub3 class30_sub3_11 = aclass30_sub3[i][j + 1]; - if (class30_sub3_11 != null && class30_sub3_11.aBoolean1323) { + SceneTile tile_11 = aclass30_sub3[i][j + 1]; + if (tile_11 != null && tile_11.aBoolean1323) { continue; } } - class30_sub3_1.aBoolean1323 = false; + tile_1.aBoolean1323 = false; anInt446--; - SceneObjStack objStack = class30_sub3_1.aObjStack_1316; + SceneObjStack objStack = tile_1.aObjStack_1316; if (objStack != null && objStack.anInt52 != 0) { if (objStack.aEntity_49 != null) { objStack.aEntity_49.method443(0, anInt458, anInt459, anInt460, anInt461, objStack.anInt46 - anInt455, objStack.anInt45 - anInt456 - objStack.anInt52, objStack.anInt47 - anInt457, objStack.anInt51); @@ -1403,10 +1403,10 @@ public class SceneGraph { objStack.aEntity_48.method443(0, anInt458, anInt459, anInt460, anInt461, objStack.anInt46 - anInt455, objStack.anInt45 - anInt456 - objStack.anInt52, objStack.anInt47 - anInt457, objStack.anInt51); } } - if (class30_sub3_1.anInt1328 != 0) { - SceneWallDecoration wallDecoration = class30_sub3_1.aWallDecoration_1314; + if (tile_1.anInt1328 != 0) { + SceneWallDecoration wallDecoration = tile_1.aWallDecoration_1314; if (wallDecoration != null && !method322(l, i, j, wallDecoration.aEntity_504.anInt1426)) { - if ((wallDecoration.anInt502 & class30_sub3_1.anInt1328) != 0) { + if ((wallDecoration.anInt502 & tile_1.anInt1328) != 0) { wallDecoration.aEntity_504.method443(wallDecoration.anInt503, anInt458, anInt459, anInt460, anInt461, wallDecoration.anInt500 - anInt455, wallDecoration.anInt499 - anInt456, wallDecoration.anInt501 - anInt457, wallDecoration.anInt505); } else if ((wallDecoration.anInt502 & 0x300) != 0) { int l2 = wallDecoration.anInt500 - anInt455; @@ -1437,50 +1437,50 @@ public class SceneGraph { } } } - SceneWall wall_2 = class30_sub3_1.aWall_1313; + SceneWall wall_2 = tile_1.aWall_1313; if (wall_2 != null) { - if ((wall_2.anInt277 & class30_sub3_1.anInt1328) != 0 && !method321(l, i, j, wall_2.anInt277)) { + if ((wall_2.anInt277 & tile_1.anInt1328) != 0 && !method321(l, i, j, wall_2.anInt277)) { wall_2.aEntity_279.method443(0, anInt458, anInt459, anInt460, anInt461, wall_2.anInt274 - anInt455, wall_2.anInt273 - anInt456, wall_2.anInt275 - anInt457, wall_2.anInt280); } - if ((wall_2.anInt276 & class30_sub3_1.anInt1328) != 0 && !method321(l, i, j, wall_2.anInt276)) { + if ((wall_2.anInt276 & tile_1.anInt1328) != 0 && !method321(l, i, j, wall_2.anInt276)) { wall_2.aEntity_278.method443(0, anInt458, anInt459, anInt460, anInt461, wall_2.anInt274 - anInt455, wall_2.anInt273 - anInt456, wall_2.anInt275 - anInt457, wall_2.anInt280); } } } if (k < anInt437 - 1) { - Class30_Sub3 class30_sub3_12 = aClass30_Sub3ArrayArrayArray441[k + 1][i][j]; - if (class30_sub3_12 != null && class30_sub3_12.aBoolean1323) { - aList_477.method249(class30_sub3_12); + SceneTile tile_12 = aTileArrayArrayArray441[k + 1][i][j]; + if (tile_12 != null && tile_12.aBoolean1323) { + aList_477.method249(tile_12); } } if (i < anInt453) { - Class30_Sub3 class30_sub3_13 = aclass30_sub3[i + 1][j]; - if (class30_sub3_13 != null && class30_sub3_13.aBoolean1323) { - aList_477.method249(class30_sub3_13); + SceneTile tile_13 = aclass30_sub3[i + 1][j]; + if (tile_13 != null && tile_13.aBoolean1323) { + aList_477.method249(tile_13); } } if (j < anInt454) { - Class30_Sub3 class30_sub3_14 = aclass30_sub3[i][j + 1]; - if (class30_sub3_14 != null && class30_sub3_14.aBoolean1323) { - aList_477.method249(class30_sub3_14); + SceneTile tile_14 = aclass30_sub3[i][j + 1]; + if (tile_14 != null && tile_14.aBoolean1323) { + aList_477.method249(tile_14); } } if (i > anInt453) { - Class30_Sub3 class30_sub3_15 = aclass30_sub3[i - 1][j]; - if (class30_sub3_15 != null && class30_sub3_15.aBoolean1323) { - aList_477.method249(class30_sub3_15); + SceneTile tile_15 = aclass30_sub3[i - 1][j]; + if (tile_15 != null && tile_15.aBoolean1323) { + aList_477.method249(tile_15); } } if (j > anInt454) { - Class30_Sub3 class30_sub3_16 = aclass30_sub3[i][j - 1]; - if (class30_sub3_16 != null && class30_sub3_16.aBoolean1323) { - aList_477.method249(class30_sub3_16); + SceneTile tile_16 = aclass30_sub3[i][j - 1]; + if (tile_16 != null && tile_16.aBoolean1323) { + aList_477.method249(tile_16); } } } while (true); } - public void method315(Class43 class43, int i, int j, int k, int l, int i1, int j1, int k1) { + public void method315(SceneTileUnderlay underlay, int i, int j, int k, int l, int i1, int j1, int k1) { int l1; int i2 = l1 = (j1 << 7) - anInt455; int j2; @@ -1544,19 +1544,19 @@ public class SceneGraph { anInt470 = j1; anInt471 = k1; } - if (class43.anInt720 == -1) { - if (class43.anInt718 != 0xbc614e) { - Draw3D.method374(j6, l6, l5, i6, k6, k5, class43.anInt718, class43.anInt719, class43.anInt717); + if (underlay.anInt720 == -1) { + if (underlay.anInt718 != 0xbc614e) { + Draw3D.method374(j6, l6, l5, i6, k6, k5, underlay.anInt718, underlay.anInt719, underlay.anInt717); } } else if (!aBoolean436) { - if (class43.aBoolean721) { - Draw3D.method378(j6, l6, l5, i6, k6, k5, class43.anInt718, class43.anInt719, class43.anInt717, i2, i3, l1, l3, i4, k4, k2, j2, j3, class43.anInt720); + if (underlay.aBoolean721) { + Draw3D.method378(j6, l6, l5, i6, k6, k5, underlay.anInt718, underlay.anInt719, underlay.anInt717, i2, i3, l1, l3, i4, k4, k2, j2, j3, underlay.anInt720); } else { - Draw3D.method378(j6, l6, l5, i6, k6, k5, class43.anInt718, class43.anInt719, class43.anInt717, l2, l1, i3, j4, k4, i4, k3, j3, j2, class43.anInt720); + Draw3D.method378(j6, l6, l5, i6, k6, k5, underlay.anInt718, underlay.anInt719, underlay.anInt717, l2, l1, i3, j4, k4, i4, k3, j3, j2, underlay.anInt720); } } else { - int i7 = anIntArray485[class43.anInt720]; - Draw3D.method374(j6, l6, l5, i6, k6, k5, method317(i7, class43.anInt718), method317(i7, class43.anInt719), method317(i7, class43.anInt717)); + int i7 = anIntArray485[underlay.anInt720]; + Draw3D.method374(j6, l6, l5, i6, k6, k5, method317(i7, underlay.anInt718), method317(i7, underlay.anInt719), method317(i7, underlay.anInt717)); } } if ((i5 - k5) * (l6 - l5) - (j5 - l5) * (k6 - k5) > 0) { @@ -1565,27 +1565,27 @@ public class SceneGraph { anInt470 = j1; anInt471 = k1; } - if (class43.anInt720 == -1) { - if (class43.anInt716 != 0xbc614e) { - Draw3D.method374(j5, l5, l6, i5, k5, k6, class43.anInt716, class43.anInt717, class43.anInt719); + if (underlay.anInt720 == -1) { + if (underlay.anInt716 != 0xbc614e) { + Draw3D.method374(j5, l5, l6, i5, k5, k6, underlay.anInt716, underlay.anInt717, underlay.anInt719); } } else { if (!aBoolean436) { - Draw3D.method378(j5, l5, l6, i5, k5, k6, class43.anInt716, class43.anInt717, class43.anInt719, i2, i3, l1, l3, i4, k4, k2, j2, j3, class43.anInt720); + Draw3D.method378(j5, l5, l6, i5, k5, k6, underlay.anInt716, underlay.anInt717, underlay.anInt719, i2, i3, l1, l3, i4, k4, k2, j2, j3, underlay.anInt720); return; } - int j7 = anIntArray485[class43.anInt720]; - Draw3D.method374(j5, l5, l6, i5, k5, k6, method317(j7, class43.anInt716), method317(j7, class43.anInt717), method317(j7, class43.anInt719)); + int j7 = anIntArray485[underlay.anInt720]; + Draw3D.method374(j5, l5, l6, i5, k5, k6, method317(j7, underlay.anInt716), method317(j7, underlay.anInt717), method317(j7, underlay.anInt719)); } } } - public void method316(int i, int j, int k, Class40 class40, int l, int i1, int j1) { - int k1 = class40.anIntArray673.length; + public void method316(int i, int j, int k, SceneTileOverlay overlay, int l, int i1, int j1) { + int k1 = overlay.anIntArray673.length; for (int l1 = 0; l1 < k1; l1++) { - int i2 = class40.anIntArray673[l1] - anInt455; - int k2 = class40.anIntArray674[l1] - anInt456; - int i3 = class40.anIntArray675[l1] - anInt457; + int i2 = overlay.anIntArray673[l1] - anInt455; + int k2 = overlay.anIntArray674[l1] - anInt456; + int i3 = overlay.anIntArray675[l1] - anInt457; int k3 = i3 * k + i2 * j1 >> 16; i3 = i3 * j1 - i2 * k >> 16; i2 = k3; @@ -1595,45 +1595,45 @@ public class SceneGraph { if (i3 < 50) { return; } - if (class40.anIntArray682 != null) { - Class40.anIntArray690[l1] = i2; - Class40.anIntArray691[l1] = k2; - Class40.anIntArray692[l1] = i3; + if (overlay.anIntArray682 != null) { + SceneTileOverlay.anIntArray690[l1] = i2; + SceneTileOverlay.anIntArray691[l1] = k2; + SceneTileOverlay.anIntArray692[l1] = i3; } - Class40.anIntArray688[l1] = Draw3D.anInt1466 + (i2 << 9) / i3; - Class40.anIntArray689[l1] = Draw3D.anInt1467 + (k2 << 9) / i3; + SceneTileOverlay.anIntArray688[l1] = Draw3D.anInt1466 + (i2 << 9) / i3; + SceneTileOverlay.anIntArray689[l1] = Draw3D.anInt1467 + (k2 << 9) / i3; } Draw3D.anInt1465 = 0; - k1 = class40.anIntArray679.length; + k1 = overlay.anIntArray679.length; for (int j2 = 0; j2 < k1; j2++) { - int l2 = class40.anIntArray679[j2]; - int j3 = class40.anIntArray680[j2]; - int l3 = class40.anIntArray681[j2]; - int i4 = Class40.anIntArray688[l2]; - int j4 = Class40.anIntArray688[j3]; - int k4 = Class40.anIntArray688[l3]; - int l4 = Class40.anIntArray689[l2]; - int i5 = Class40.anIntArray689[j3]; - int j5 = Class40.anIntArray689[l3]; + int l2 = overlay.anIntArray679[j2]; + int j3 = overlay.anIntArray680[j2]; + int l3 = overlay.anIntArray681[j2]; + int i4 = SceneTileOverlay.anIntArray688[l2]; + int j4 = SceneTileOverlay.anIntArray688[j3]; + int k4 = SceneTileOverlay.anIntArray688[l3]; + int l4 = SceneTileOverlay.anIntArray689[l2]; + int i5 = SceneTileOverlay.anIntArray689[j3]; + int j5 = SceneTileOverlay.anIntArray689[l3]; if ((i4 - j4) * (j5 - i5) - (l4 - i5) * (k4 - j4) > 0) { Draw3D.aBoolean1462 = i4 < 0 || j4 < 0 || k4 < 0 || i4 > Draw2D.anInt1385 || j4 > Draw2D.anInt1385 || k4 > Draw2D.anInt1385; if (aBoolean467 && method318(anInt468, anInt469, l4, i5, j5, i4, j4, k4)) { anInt470 = i; anInt471 = i1; } - if (class40.anIntArray682 == null || class40.anIntArray682[j2] == -1) { - if (class40.anIntArray676[j2] != 0xbc614e) { - Draw3D.method374(l4, i5, j5, i4, j4, k4, class40.anIntArray676[j2], class40.anIntArray677[j2], class40.anIntArray678[j2]); + if (overlay.anIntArray682 == null || overlay.anIntArray682[j2] == -1) { + if (overlay.anIntArray676[j2] != 0xbc614e) { + Draw3D.method374(l4, i5, j5, i4, j4, k4, overlay.anIntArray676[j2], overlay.anIntArray677[j2], overlay.anIntArray678[j2]); } } else if (!aBoolean436) { - if (class40.aBoolean683) { - Draw3D.method378(l4, i5, j5, i4, j4, k4, class40.anIntArray676[j2], class40.anIntArray677[j2], class40.anIntArray678[j2], Class40.anIntArray690[0], Class40.anIntArray690[1], Class40.anIntArray690[3], Class40.anIntArray691[0], Class40.anIntArray691[1], Class40.anIntArray691[3], Class40.anIntArray692[0], Class40.anIntArray692[1], Class40.anIntArray692[3], class40.anIntArray682[j2]); + if (overlay.aBoolean683) { + Draw3D.method378(l4, i5, j5, i4, j4, k4, overlay.anIntArray676[j2], overlay.anIntArray677[j2], overlay.anIntArray678[j2], SceneTileOverlay.anIntArray690[0], SceneTileOverlay.anIntArray690[1], SceneTileOverlay.anIntArray690[3], SceneTileOverlay.anIntArray691[0], SceneTileOverlay.anIntArray691[1], SceneTileOverlay.anIntArray691[3], SceneTileOverlay.anIntArray692[0], SceneTileOverlay.anIntArray692[1], SceneTileOverlay.anIntArray692[3], overlay.anIntArray682[j2]); } else { - Draw3D.method378(l4, i5, j5, i4, j4, k4, class40.anIntArray676[j2], class40.anIntArray677[j2], class40.anIntArray678[j2], Class40.anIntArray690[l2], Class40.anIntArray690[j3], Class40.anIntArray690[l3], Class40.anIntArray691[l2], Class40.anIntArray691[j3], Class40.anIntArray691[l3], Class40.anIntArray692[l2], Class40.anIntArray692[j3], Class40.anIntArray692[l3], class40.anIntArray682[j2]); + Draw3D.method378(l4, i5, j5, i4, j4, k4, overlay.anIntArray676[j2], overlay.anIntArray677[j2], overlay.anIntArray678[j2], SceneTileOverlay.anIntArray690[l2], SceneTileOverlay.anIntArray690[j3], SceneTileOverlay.anIntArray690[l3], SceneTileOverlay.anIntArray691[l2], SceneTileOverlay.anIntArray691[j3], SceneTileOverlay.anIntArray691[l3], SceneTileOverlay.anIntArray692[l2], SceneTileOverlay.anIntArray692[j3], SceneTileOverlay.anIntArray692[l3], overlay.anIntArray682[j2]); } } else { - int k5 = anIntArray485[class40.anIntArray682[j2]]; - Draw3D.method374(l4, i5, j5, i4, j4, k4, method317(k5, class40.anIntArray676[j2]), method317(k5, class40.anIntArray677[j2]), method317(k5, class40.anIntArray678[j2])); + int k5 = anIntArray485[overlay.anIntArray682[j2]]; + Draw3D.method374(l4, i5, j5, i4, j4, k4, method317(k5, overlay.anIntArray676[j2]), method317(k5, overlay.anIntArray677[j2]), method317(k5, overlay.anIntArray678[j2])); } } } @@ -1671,20 +1671,20 @@ public class SceneGraph { public void method319() { int j = anIntArray473[anInt447]; - Class47[] aclass47 = aClass47ArrayArray474[anInt447]; + SceneOccluder[] aclass47 = aOccluderArrayArray474[anInt447]; anInt475 = 0; for (int k = 0; k < j; k++) { - Class47 class47 = aclass47[k]; - if (class47.anInt791 == 1) { - int l = (class47.anInt787 - anInt453) + 25; + SceneOccluder occluder = aclass47[k]; + if (occluder.anInt791 == 1) { + int l = (occluder.anInt787 - anInt453) + 25; if (l < 0 || l > 50) { continue; } - int k1 = (class47.anInt789 - anInt454) + 25; + int k1 = (occluder.anInt789 - anInt454) + 25; if (k1 < 0) { k1 = 0; } - int j2 = (class47.anInt790 - anInt454) + 25; + int j2 = (occluder.anInt790 - anInt454) + 25; if (j2 > 50) { j2 = 50; } @@ -1698,33 +1698,33 @@ public class SceneGraph { if (!flag) { continue; } - int j3 = anInt455 - class47.anInt792; + int j3 = anInt455 - occluder.anInt792; if (j3 > 32) { - class47.anInt798 = 1; + occluder.anInt798 = 1; } else { if (j3 >= -32) { continue; } - class47.anInt798 = 2; + occluder.anInt798 = 2; j3 = -j3; } - class47.anInt801 = (class47.anInt794 - anInt457 << 8) / j3; - class47.anInt802 = (class47.anInt795 - anInt457 << 8) / j3; - class47.anInt803 = (class47.anInt796 - anInt456 << 8) / j3; - class47.anInt804 = (class47.anInt797 - anInt456 << 8) / j3; - aClass47Array476[anInt475++] = class47; + occluder.anInt801 = (occluder.anInt794 - anInt457 << 8) / j3; + occluder.anInt802 = (occluder.anInt795 - anInt457 << 8) / j3; + occluder.anInt803 = (occluder.anInt796 - anInt456 << 8) / j3; + occluder.anInt804 = (occluder.anInt797 - anInt456 << 8) / j3; + A_OCCLUDER_ARRAY_476[anInt475++] = occluder; continue; } - if (class47.anInt791 == 2) { - int i1 = (class47.anInt789 - anInt454) + 25; + if (occluder.anInt791 == 2) { + int i1 = (occluder.anInt789 - anInt454) + 25; if (i1 < 0 || i1 > 50) { continue; } - int l1 = (class47.anInt787 - anInt453) + 25; + int l1 = (occluder.anInt787 - anInt453) + 25; if (l1 < 0) { l1 = 0; } - int k2 = (class47.anInt788 - anInt453) + 25; + int k2 = (occluder.anInt788 - anInt453) + 25; if (k2 > 50) { k2 = 50; } @@ -1738,38 +1738,38 @@ public class SceneGraph { if (!flag1) { continue; } - int k3 = anInt457 - class47.anInt794; + int k3 = anInt457 - occluder.anInt794; if (k3 > 32) { - class47.anInt798 = 3; + occluder.anInt798 = 3; } else { if (k3 >= -32) { continue; } - class47.anInt798 = 4; + occluder.anInt798 = 4; k3 = -k3; } - class47.anInt799 = (class47.anInt792 - anInt455 << 8) / k3; - class47.anInt800 = (class47.anInt793 - anInt455 << 8) / k3; - class47.anInt803 = (class47.anInt796 - anInt456 << 8) / k3; - class47.anInt804 = (class47.anInt797 - anInt456 << 8) / k3; - aClass47Array476[anInt475++] = class47; - } else if (class47.anInt791 == 4) { - int j1 = class47.anInt796 - anInt456; + occluder.anInt799 = (occluder.anInt792 - anInt455 << 8) / k3; + occluder.anInt800 = (occluder.anInt793 - anInt455 << 8) / k3; + occluder.anInt803 = (occluder.anInt796 - anInt456 << 8) / k3; + occluder.anInt804 = (occluder.anInt797 - anInt456 << 8) / k3; + A_OCCLUDER_ARRAY_476[anInt475++] = occluder; + } else if (occluder.anInt791 == 4) { + int j1 = occluder.anInt796 - anInt456; if (j1 > 128) { - int i2 = (class47.anInt789 - anInt454) + 25; + int i2 = (occluder.anInt789 - anInt454) + 25; if (i2 < 0) { i2 = 0; } - int l2 = (class47.anInt790 - anInt454) + 25; + int l2 = (occluder.anInt790 - anInt454) + 25; if (l2 > 50) { l2 = 50; } if (i2 <= l2) { - int i3 = (class47.anInt787 - anInt453) + 25; + int i3 = (occluder.anInt787 - anInt453) + 25; if (i3 < 0) { i3 = 0; } - int l3 = (class47.anInt788 - anInt453) + 25; + int l3 = (occluder.anInt788 - anInt453) + 25; if (l3 > 50) { l3 = 50; } @@ -1785,12 +1785,12 @@ public class SceneGraph { } } if (flag2) { - class47.anInt798 = 5; - class47.anInt799 = (class47.anInt792 - anInt455 << 8) / j1; - class47.anInt800 = (class47.anInt793 - anInt455 << 8) / j1; - class47.anInt801 = (class47.anInt794 - anInt457 << 8) / j1; - class47.anInt802 = (class47.anInt795 - anInt457 << 8) / j1; - aClass47Array476[anInt475++] = class47; + occluder.anInt798 = 5; + occluder.anInt799 = (occluder.anInt792 - anInt455 << 8) / j1; + occluder.anInt800 = (occluder.anInt793 - anInt455 << 8) / j1; + occluder.anInt801 = (occluder.anInt794 - anInt457 << 8) / j1; + occluder.anInt802 = (occluder.anInt795 - anInt457 << 8) / j1; + A_OCCLUDER_ARRAY_476[anInt475++] = occluder; } } } @@ -1981,58 +1981,58 @@ public class SceneGraph { public boolean method324(int i, int j, int k) { for (int l = 0; l < anInt475; l++) { - Class47 class47 = aClass47Array476[l]; - if (class47.anInt798 == 1) { - int i1 = class47.anInt792 - i; + SceneOccluder occluder = A_OCCLUDER_ARRAY_476[l]; + if (occluder.anInt798 == 1) { + int i1 = occluder.anInt792 - i; if (i1 > 0) { - int j2 = class47.anInt794 + (class47.anInt801 * i1 >> 8); - int k3 = class47.anInt795 + (class47.anInt802 * i1 >> 8); - int l4 = class47.anInt796 + (class47.anInt803 * i1 >> 8); - int i6 = class47.anInt797 + (class47.anInt804 * i1 >> 8); + int j2 = occluder.anInt794 + (occluder.anInt801 * i1 >> 8); + int k3 = occluder.anInt795 + (occluder.anInt802 * i1 >> 8); + int l4 = occluder.anInt796 + (occluder.anInt803 * i1 >> 8); + int i6 = occluder.anInt797 + (occluder.anInt804 * i1 >> 8); if (k >= j2 && k <= k3 && j >= l4 && j <= i6) { return true; } } - } else if (class47.anInt798 == 2) { - int j1 = i - class47.anInt792; + } else if (occluder.anInt798 == 2) { + int j1 = i - occluder.anInt792; if (j1 > 0) { - int k2 = class47.anInt794 + (class47.anInt801 * j1 >> 8); - int l3 = class47.anInt795 + (class47.anInt802 * j1 >> 8); - int i5 = class47.anInt796 + (class47.anInt803 * j1 >> 8); - int j6 = class47.anInt797 + (class47.anInt804 * j1 >> 8); + int k2 = occluder.anInt794 + (occluder.anInt801 * j1 >> 8); + int l3 = occluder.anInt795 + (occluder.anInt802 * j1 >> 8); + int i5 = occluder.anInt796 + (occluder.anInt803 * j1 >> 8); + int j6 = occluder.anInt797 + (occluder.anInt804 * j1 >> 8); if (k >= k2 && k <= l3 && j >= i5 && j <= j6) { return true; } } - } else if (class47.anInt798 == 3) { - int k1 = class47.anInt794 - k; + } else if (occluder.anInt798 == 3) { + int k1 = occluder.anInt794 - k; if (k1 > 0) { - int l2 = class47.anInt792 + (class47.anInt799 * k1 >> 8); - int i4 = class47.anInt793 + (class47.anInt800 * k1 >> 8); - int j5 = class47.anInt796 + (class47.anInt803 * k1 >> 8); - int k6 = class47.anInt797 + (class47.anInt804 * k1 >> 8); + int l2 = occluder.anInt792 + (occluder.anInt799 * k1 >> 8); + int i4 = occluder.anInt793 + (occluder.anInt800 * k1 >> 8); + int j5 = occluder.anInt796 + (occluder.anInt803 * k1 >> 8); + int k6 = occluder.anInt797 + (occluder.anInt804 * k1 >> 8); if (i >= l2 && i <= i4 && j >= j5 && j <= k6) { return true; } } - } else if (class47.anInt798 == 4) { - int l1 = k - class47.anInt794; + } else if (occluder.anInt798 == 4) { + int l1 = k - occluder.anInt794; if (l1 > 0) { - int i3 = class47.anInt792 + (class47.anInt799 * l1 >> 8); - int j4 = class47.anInt793 + (class47.anInt800 * l1 >> 8); - int k5 = class47.anInt796 + (class47.anInt803 * l1 >> 8); - int l6 = class47.anInt797 + (class47.anInt804 * l1 >> 8); + int i3 = occluder.anInt792 + (occluder.anInt799 * l1 >> 8); + int j4 = occluder.anInt793 + (occluder.anInt800 * l1 >> 8); + int k5 = occluder.anInt796 + (occluder.anInt803 * l1 >> 8); + int l6 = occluder.anInt797 + (occluder.anInt804 * l1 >> 8); if (i >= i3 && i <= j4 && j >= k5 && j <= l6) { return true; } } - } else if (class47.anInt798 == 5) { - int i2 = j - class47.anInt796; + } else if (occluder.anInt798 == 5) { + int i2 = j - occluder.anInt796; if (i2 > 0) { - int j3 = class47.anInt792 + (class47.anInt799 * i2 >> 8); - int k4 = class47.anInt793 + (class47.anInt800 * i2 >> 8); - int l5 = class47.anInt794 + (class47.anInt801 * i2 >> 8); - int i7 = class47.anInt795 + (class47.anInt802 * i2 >> 8); + int j3 = occluder.anInt792 + (occluder.anInt799 * i2 >> 8); + int k4 = occluder.anInt793 + (occluder.anInt800 * i2 >> 8); + int l5 = occluder.anInt794 + (occluder.anInt801 * i2 >> 8); + int i7 = occluder.anInt795 + (occluder.anInt802 * i2 >> 8); if (i >= j3 && i <= k4 && k >= l5 && k <= i7) { return true; } diff --git a/src/main/java/Class49.java b/src/main/java/SceneGroundDecoration.java similarity index 80% rename from src/main/java/Class49.java rename to src/main/java/SceneGroundDecoration.java index b42ac32..2a47a93 100644 --- a/src/main/java/Class49.java +++ b/src/main/java/SceneGroundDecoration.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class49 { +public class SceneGroundDecoration { public int anInt811; public int anInt812; @@ -11,7 +11,7 @@ public class Class49 { public int anInt815; public byte aByte816; - public Class49() { + public SceneGroundDecoration() { } } diff --git a/src/main/java/Class30_Sub1.java b/src/main/java/SceneLocTemporary.java similarity index 84% rename from src/main/java/Class30_Sub1.java rename to src/main/java/SceneLocTemporary.java index 8051a94..b7a51a4 100644 --- a/src/main/java/Class30_Sub1.java +++ b/src/main/java/SceneLocTemporary.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class30_Sub1 extends Class30 { +public class SceneLocTemporary extends LinkedListNode { public int anInt1291; public int anInt1292; @@ -17,7 +17,7 @@ public class Class30_Sub1 extends Class30 { public int anInt1301; public int anInt1302; - public Class30_Sub1() { + public SceneLocTemporary() { anInt1294 = -1; } diff --git a/src/main/java/Class47.java b/src/main/java/SceneOccluder.java similarity index 90% rename from src/main/java/Class47.java rename to src/main/java/SceneOccluder.java index c802e4e..16e275d 100644 --- a/src/main/java/Class47.java +++ b/src/main/java/SceneOccluder.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class47 { +public class SceneOccluder { public int anInt787; public int anInt788; @@ -23,7 +23,7 @@ public class Class47 { public int anInt803; public int anInt804; - public Class47() { + public SceneOccluder() { } } diff --git a/src/main/java/Class30_Sub3.java b/src/main/java/SceneTile.java similarity index 76% rename from src/main/java/Class30_Sub3.java rename to src/main/java/SceneTile.java index d2fdabe..89ec6e2 100644 --- a/src/main/java/Class30_Sub3.java +++ b/src/main/java/SceneTile.java @@ -2,17 +2,17 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class30_Sub3 extends Class30 { +public class SceneTile extends LinkedListNode { public int anInt1307; public final int anInt1308; public final int anInt1309; public final int anInt1310; - public Class43 aClass43_1311; - public Class40 aClass40_1312; + public SceneTileUnderlay aUnderlay_1311; + public SceneTileOverlay aOverlay_1312; public SceneWall aWall_1313; public SceneWallDecoration aWallDecoration_1314; - public Class49 aClass49_1315; + public SceneGroundDecoration aGroundDecoration_1315; public SceneObjStack aObjStack_1316; public int anInt1317; public final SceneLoc[] aLocArray1318 = new SceneLoc[5]; @@ -26,9 +26,9 @@ public class Class30_Sub3 extends Class30 { public int anInt1326; public int anInt1327; public int anInt1328; - public Class30_Sub3 aClass30_Sub3_1329; + public SceneTile aTile_1329; - public Class30_Sub3(int i, int j, int k) { + public SceneTile(int i, int j, int k) { anInt1310 = anInt1307 = i; anInt1308 = j; anInt1309 = k; diff --git a/src/main/java/Class40.java b/src/main/java/SceneTileOverlay.java similarity index 96% rename from src/main/java/Class40.java rename to src/main/java/SceneTileOverlay.java index 9675c45..de08e70 100644 --- a/src/main/java/Class40.java +++ b/src/main/java/SceneTileOverlay.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class40 { +public class SceneTileOverlay { public static final int[][] anIntArrayArray696 = {{1, 3, 5, 7}, {1, 3, 5, 7}, {1, 3, 5, 7}, {1, 3, 5, 7, 6}, {1, 3, 5, 7, 6}, {1, 3, 5, 7, 6}, {1, 3, 5, 7, 6}, {1, 3, 5, 7, 2, 6}, {1, 3, 5, 7, 2, 8}, {1, 3, 5, 7, 2, 8}, {1, 3, 5, 7, 11, 12}, {1, 3, 5, 7, 11, 12}, {1, 3, 5, 7, 13, 14}}; public static final int[][] anIntArrayArray697 = {{0, 1, 2, 3, 0, 0, 1, 3}, {1, 1, 2, 3, 1, 0, 1, 3}, {0, 1, 2, 3, 1, 0, 1, 3}, {0, 0, 1, 2, 0, 0, 2, 4, 1, 0, 4, 3}, {0, 0, 1, 4, 0, 0, 4, 3, 1, 1, 2, 4}, {0, 0, 4, 3, 1, 0, 1, 2, 1, 0, 2, 4}, {0, 1, 2, 4, 1, 0, 1, 4, 1, 0, 4, 3}, {0, 4, 1, 2, 0, 4, 2, 5, 1, 0, 4, 5, 1, 0, 5, 3}, {0, 4, 1, 2, 0, 4, 2, 3, 0, 4, 3, 5, 1, 0, 4, 5}, {0, 0, 4, 5, 1, 4, 1, 2, 1, 4, 2, 3, 1, 4, 3, 5}, {0, 0, 1, 5, 0, 1, 4, 5, 0, 1, 2, 4, 1, 0, 5, 3, 1, 5, 4, 3, 1, 4, 2, 3}, {1, 0, 1, 5, 1, 1, 4, 5, 1, 1, 2, 4, 0, 0, 5, 3, 0, 5, 4, 3, 0, 4, 2, 3}, {1, 0, 5, 4, 1, 0, 1, 5, 0, 0, 4, 3, 0, 4, 5, 3, 0, 5, 2, 3, 0, 1, 2, 5}}; @@ -27,7 +27,7 @@ public class Class40 { public final int anInt686; public final int anInt687; - public Class40(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int k4, int l4) { + public SceneTileOverlay(int i, int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2, int k2, int l2, int i3, int j3, int k3, int l3, int i4, int k4, int l4) { aBoolean683 = i3 == l2 && i3 == l && i3 == k2; anInt684 = j3; anInt685 = k1; diff --git a/src/main/java/Class43.java b/src/main/java/SceneTileUnderlay.java similarity index 80% rename from src/main/java/Class43.java rename to src/main/java/SceneTileUnderlay.java index 56e2da2..b2131ba 100644 --- a/src/main/java/Class43.java +++ b/src/main/java/SceneTileUnderlay.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class43 { +public class SceneTileUnderlay { public final int anInt716; public final int anInt717; @@ -12,7 +12,7 @@ public class Class43 { public boolean aBoolean721; public final int anInt722; - public Class43(int i, int j, int k, int l, int i1, int j1, boolean flag) { + public SceneTileUnderlay(int i, int j, int k, int l, int i1, int j1, boolean flag) { aBoolean721 = true; anInt716 = i; anInt717 = j; diff --git a/src/main/java/Class36.java b/src/main/java/SeqTransform.java similarity index 76% rename from src/main/java/Class36.java rename to src/main/java/SeqTransform.java index 3657180..3225d7c 100644 --- a/src/main/java/Class36.java +++ b/src/main/java/SeqTransform.java @@ -2,9 +2,9 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class36 { +public class SeqTransform { - public static Class36[] aClass36Array635; + public static SeqTransform[] aTransformArray635; public static boolean[] aBooleanArray643; public int anInt636; public SeqSkeleton aSkeleton_637; @@ -14,11 +14,11 @@ public class Class36 { public int[] anIntArray641; public int[] anIntArray642; - public Class36() { + public SeqTransform() { } public static void method528(int i) { - aClass36Array635 = new Class36[i + 1]; + aTransformArray635 = new SeqTransform[i + 1]; aBooleanArray643 = new boolean[i + 1]; for (int j = 0; j < i + 1; j++) { aBooleanArray643[j] = true; @@ -55,9 +55,9 @@ public class Class36 { int[] ai3 = new int[500]; for (int l1 = 0; l1 < k1; l1++) { int i2 = buffer_1.method410(); - Class36 class36 = aClass36Array635[i2] = new Class36(); - class36.anInt636 = buffer_4.method408(); - class36.aSkeleton_637 = skeleton; + SeqTransform transform = aTransformArray635[i2] = new SeqTransform(); + transform.anInt636 = buffer_4.method408(); + transform.aSkeleton_637 = skeleton; int j2 = buffer_1.method408(); int k2 = -1; int l2 = 0; @@ -104,29 +104,29 @@ public class Class36 { } } } - class36.anInt638 = l2; - class36.anIntArray639 = new int[l2]; - class36.anIntArray640 = new int[l2]; - class36.anIntArray641 = new int[l2]; - class36.anIntArray642 = new int[l2]; + transform.anInt638 = l2; + transform.anIntArray639 = new int[l2]; + transform.anIntArray640 = new int[l2]; + transform.anIntArray641 = new int[l2]; + transform.anIntArray642 = new int[l2]; for (int k3 = 0; k3 < l2; k3++) { - class36.anIntArray639[k3] = ai[k3]; - class36.anIntArray640[k3] = ai1[k3]; - class36.anIntArray641[k3] = ai2[k3]; - class36.anIntArray642[k3] = ai3[k3]; + transform.anIntArray639[k3] = ai[k3]; + transform.anIntArray640[k3] = ai1[k3]; + transform.anIntArray641[k3] = ai2[k3]; + transform.anIntArray642[k3] = ai3[k3]; } } } public static void method530() { - aClass36Array635 = null; + aTransformArray635 = null; } - public static Class36 method531(int j) { - if (aClass36Array635 == null) { + public static SeqTransform method531(int j) { + if (aTransformArray635 == null) { return null; } else { - return aClass36Array635[j]; + return aTransformArray635[j]; } } diff --git a/src/main/java/SeqType.java b/src/main/java/SeqType.java index 235b518..69db72f 100644 --- a/src/main/java/SeqType.java +++ b/src/main/java/SeqType.java @@ -25,8 +25,8 @@ public class SeqType { public SeqType() { } - public static void method257(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("seq.dat", null)); + public static void method257(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("seq.dat", null)); anInt350 = buffer.method410(); if (aTypeArray351 == null) { aTypeArray351 = new SeqType[anInt350]; @@ -42,9 +42,9 @@ public class SeqType { public int method258(int i) { int j = anIntArray355[i]; if (j == 0) { - Class36 class36 = Class36.method531(anIntArray353[i]); - if (class36 != null) { - j = anIntArray355[i] = class36.anInt636; + SeqTransform transform = SeqTransform.method531(anIntArray353[i]); + if (transform != null) { + j = anIntArray355[i] = transform.anInt636; } } if (j == 0) { diff --git a/src/main/java/sign/signlink.java b/src/main/java/Signlink.java similarity index 98% rename from src/main/java/sign/signlink.java rename to src/main/java/Signlink.java index 9d32e11..c078fc1 100644 --- a/src/main/java/sign/signlink.java +++ b/src/main/java/Signlink.java @@ -3,15 +3,13 @@ // Decompiler options: packimports(3) // Source File Name: signlink.java -package sign; - import java.applet.Applet; import java.io.*; import java.net.InetAddress; import java.net.Socket; import java.net.URL; -public class signlink implements Runnable { +public class Signlink implements Runnable { public static int uid; public static int storeid = 32; @@ -44,7 +42,7 @@ public class signlink implements Runnable { public static int wavevol; public static boolean reporterror = true; - public signlink() { + public Signlink() { } public static void startpriv(InetAddress inetaddress) { @@ -62,7 +60,7 @@ public class signlink implements Runnable { savereq = null; urlreq = null; socketip = inetaddress; - Thread thread = new Thread(new signlink()); + Thread thread = new Thread(new Signlink()); thread.setDaemon(true); thread.start(); while (!active) { diff --git a/src/main/java/Class45.java b/src/main/java/SkillConstants.java similarity index 96% rename from src/main/java/Class45.java rename to src/main/java/SkillConstants.java index 8a5d526..fa48877 100644 --- a/src/main/java/Class45.java +++ b/src/main/java/SkillConstants.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class45 { +public class SkillConstants { public static final int anInt733 = 25; public static String[] aStringArray734 = {"attack", "defence", "strength", "hitpoints", "ranged", "prayer", "magic", "cooking", "woodcutting", "fletching", "fishing", "firemaking", "crafting", "smithing", "mining", "herblore", "agility", "thieving", "slayer", "farming", "runecraft", "-unused-", "-unused-", "-unused-", "-unused-"}; diff --git a/src/main/java/Class39.java b/src/main/java/SoundFilter.java similarity index 98% rename from src/main/java/Class39.java rename to src/main/java/SoundFilter.java index ca7db1f..78da18f 100644 --- a/src/main/java/Class39.java +++ b/src/main/java/SoundFilter.java @@ -2,7 +2,7 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class39 { +public class SoundFilter { public static final float[][] aFloatArrayArray669 = new float[2][8]; public static final int[][] anIntArrayArray670 = new int[2][8]; @@ -13,7 +13,7 @@ public class Class39 { public final int[][][] anIntArrayArrayArray667 = new int[2][2][4]; public final int[] anIntArray668 = new int[2]; - public Class39() { + public SoundFilter() { } public float method541(int i, int j, float f) { diff --git a/src/main/java/SoundTone.java b/src/main/java/SoundTone.java index bd2051a..045a9ca 100644 --- a/src/main/java/SoundTone.java +++ b/src/main/java/SoundTone.java @@ -25,7 +25,7 @@ public class SoundTone { public final int[] anIntArray108 = new int[5]; public int anInt109; public int anInt110 = 100; - public Class39 aClass39_111; + public SoundFilter aSoundFilter_111; public SoundEnvelope aEnvelope_112; public int anInt113 = 500; public int anInt114; @@ -140,11 +140,11 @@ public class SoundTone { anIntArray115[l4] += (anIntArray115[l4 - j3] * anInt110) / 100; } } - if (aClass39_111.anIntArray665[0] > 0 || aClass39_111.anIntArray665[1] > 0) { + if (aSoundFilter_111.anIntArray665[0] > 0 || aSoundFilter_111.anIntArray665[1] > 0) { aEnvelope_112.method327(); int k3 = aEnvelope_112.method328(i + 1); - int i5 = aClass39_111.method544(0, (float) k3 / 65536F); - int i6 = aClass39_111.method544(1, (float) k3 / 65536F); + int i5 = aSoundFilter_111.method544(0, (float) k3 / 65536F); + int i6 = aSoundFilter_111.method544(1, (float) k3 / 65536F); if (i >= i5 + i6) { int j7 = 0; int l7 = i6; @@ -152,12 +152,12 @@ public class SoundTone { l7 = i - i5; } for (; j7 < l7; j7++) { - int j8 = (int) ((long) anIntArray115[j7 + i5] * (long) Class39.anInt672 >> 16); + int j8 = (int) ((long) anIntArray115[j7 + i5] * (long) SoundFilter.anInt672 >> 16); for (int k8 = 0; k8 < i5; k8++) { - j8 += (int) ((long) anIntArray115[(j7 + i5) - 1 - k8] * (long) Class39.anIntArrayArray670[0][k8] >> 16); + j8 += (int) ((long) anIntArray115[(j7 + i5) - 1 - k8] * (long) SoundFilter.anIntArrayArray670[0][k8] >> 16); } for (int j9 = 0; j9 < j7; j9++) { - j8 -= (int) ((long) anIntArray115[j7 - 1 - j9] * (long) Class39.anIntArrayArray670[1][j9] >> 16); + j8 -= (int) ((long) anIntArray115[j7 - 1 - j9] * (long) SoundFilter.anIntArrayArray670[1][j9] >> 16); } anIntArray115[j7] = j8; k3 = aEnvelope_112.method328(i + 1); @@ -169,12 +169,12 @@ public class SoundTone { l7 = i - i5; } for (; j7 < l7; j7++) { - int l8 = (int) ((long) anIntArray115[j7 + i5] * (long) Class39.anInt672 >> 16); + int l8 = (int) ((long) anIntArray115[j7 + i5] * (long) SoundFilter.anInt672 >> 16); for (int k9 = 0; k9 < i5; k9++) { - l8 += (int) ((long) anIntArray115[(j7 + i5) - 1 - k9] * (long) Class39.anIntArrayArray670[0][k9] >> 16); + l8 += (int) ((long) anIntArray115[(j7 + i5) - 1 - k9] * (long) SoundFilter.anIntArrayArray670[0][k9] >> 16); } for (int i10 = 0; i10 < i6; i10++) { - l8 -= (int) ((long) anIntArray115[j7 - 1 - i10] * (long) Class39.anIntArrayArray670[1][i10] >> 16); + l8 -= (int) ((long) anIntArray115[j7 - 1 - i10] * (long) SoundFilter.anIntArrayArray670[1][i10] >> 16); } anIntArray115[j7] = l8; k3 = aEnvelope_112.method328(i + 1); @@ -182,17 +182,17 @@ public class SoundTone { if (j7 >= i - i5) { break; } - i5 = aClass39_111.method544(0, (float) k3 / 65536F); - i6 = aClass39_111.method544(1, (float) k3 / 65536F); + i5 = aSoundFilter_111.method544(0, (float) k3 / 65536F); + i6 = aSoundFilter_111.method544(1, (float) k3 / 65536F); l7 += c; } while (true); for (; j7 < i; j7++) { int i9 = 0; for (int l9 = (j7 + i5) - i; l9 < i5; l9++) { - i9 += (int) ((long) anIntArray115[(j7 + i5) - 1 - l9] * (long) Class39.anIntArrayArray670[0][l9] >> 16); + i9 += (int) ((long) anIntArray115[(j7 + i5) - 1 - l9] * (long) SoundFilter.anIntArrayArray670[0][l9] >> 16); } for (int j10 = 0; j10 < i6; j10++) { - i9 -= (int) ((long) anIntArray115[j7 - 1 - j10] * (long) Class39.anIntArrayArray670[1][j10] >> 16); + i9 -= (int) ((long) anIntArray115[j7 - 1 - j10] * (long) SoundFilter.anIntArrayArray670[1][j10] >> 16); } anIntArray115[j7] = i9; aEnvelope_112.method328(i + 1); @@ -273,9 +273,9 @@ public class SoundTone { anInt110 = buffer.method422(); anInt113 = buffer.method410(); anInt114 = buffer.method410(); - aClass39_111 = new Class39(); + aSoundFilter_111 = new SoundFilter(); aEnvelope_112 = new SoundEnvelope(); - aClass39_111.method545(buffer, aEnvelope_112); + aSoundFilter_111.method545(buffer, aEnvelope_112); } } diff --git a/src/main/java/SpotAnimEntity.java b/src/main/java/SpotAnimEntity.java index b477a72..d99864d 100644 --- a/src/main/java/SpotAnimEntity.java +++ b/src/main/java/SpotAnimEntity.java @@ -30,7 +30,7 @@ public class SpotAnimEntity extends Entity { return null; } int j = aType_1568.aType_407.anIntArray353[anInt1569]; - Model model_1 = new Model(true, Class36.method532(j), false, model); + Model model_1 = new Model(true, SeqTransform.method532(j), false, model); if (!aBoolean1567) { model_1.method469(); model_1.method470(j); diff --git a/src/main/java/SpotAnimType.java b/src/main/java/SpotAnimType.java index 6172251..6e87d26 100644 --- a/src/main/java/SpotAnimType.java +++ b/src/main/java/SpotAnimType.java @@ -22,8 +22,8 @@ public class SpotAnimType { public SpotAnimType() { } - public static void method264(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("spotanim.dat", null)); + public static void method264(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("spotanim.dat", null)); anInt402 = buffer.method410(); if (aTypeArray403 == null) { aTypeArray403 = new SpotAnimType[anInt402]; diff --git a/src/main/java/Class37.java b/src/main/java/VarbitType.java similarity index 68% rename from src/main/java/Class37.java rename to src/main/java/VarbitType.java index c17c62f..8c0527b 100644 --- a/src/main/java/Class37.java +++ b/src/main/java/VarbitType.java @@ -2,10 +2,10 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class37 { +public class VarbitType { public static int anInt645; - public static Class37[] aClass37Array646; + public static VarbitType[] aVarbitArray646; public String unusedString; public int anInt648; public int anInt649; @@ -14,22 +14,22 @@ public class Class37 { public int unusedInt0 = -1; public int unusedInt1; - public Class37() { + public VarbitType() { } - public static void method533(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("varbit.dat", null)); + public static void method533(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("varbit.dat", null)); anInt645 = buffer.method410(); - if (aClass37Array646 == null) { - aClass37Array646 = new Class37[anInt645]; + if (aVarbitArray646 == null) { + aVarbitArray646 = new VarbitType[anInt645]; } for (int j = 0; j < anInt645; j++) { - if (aClass37Array646[j] == null) { - aClass37Array646[j] = new Class37(); + if (aVarbitArray646[j] == null) { + aVarbitArray646[j] = new VarbitType(); } - aClass37Array646[j].method534(buffer); - if (aClass37Array646[j].aBoolean651) { - Class41.aClass41Array701[aClass37Array646[j].anInt648].unusedBool3 = true; + aVarbitArray646[j].method534(buffer); + if (aVarbitArray646[j].aBoolean651) { + VarpType.aVarpArray701[aVarbitArray646[j].anInt648].unusedBool3 = true; } } if (buffer.anInt1406 != buffer.aByteArray1405.length) { diff --git a/src/main/java/Class41.java b/src/main/java/VarpType.java similarity index 81% rename from src/main/java/Class41.java rename to src/main/java/VarpType.java index 922cff4..5c3db93 100644 --- a/src/main/java/Class41.java +++ b/src/main/java/VarpType.java @@ -2,10 +2,10 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class41 { +public class VarpType { public static int anInt700; - public static Class41[] aClass41Array701; + public static VarpType[] aVarpArray701; public static int anInt702; public static int[] anIntArray703; @@ -21,24 +21,24 @@ public class Class41 { public boolean unusedBool3 = false; public int unusedInt4 = -1; - public Class41() { + public VarpType() { } - public static void method546(Class44 class44) { - Buffer buffer = new Buffer(class44.method571("varp.dat", null)); + public static void method546(FileArchive archive) { + Buffer buffer = new Buffer(archive.method571("varp.dat", null)); anInt702 = 0; anInt700 = buffer.method410(); - if (aClass41Array701 == null) { - aClass41Array701 = new Class41[anInt700]; + if (aVarpArray701 == null) { + aVarpArray701 = new VarpType[anInt700]; } if (anIntArray703 == null) { anIntArray703 = new int[anInt700]; } for (int j = 0; j < anInt700; j++) { - if (aClass41Array701[j] == null) { - aClass41Array701[j] = new Class41(); + if (aVarpArray701[j] == null) { + aVarpArray701[j] = new VarpType(); } - aClass41Array701[j].method547(buffer, j); + aVarpArray701[j].method547(buffer, j); } if (buffer.anInt1406 != buffer.aByteArray1405.length) { System.out.println("varptype load mismatch"); diff --git a/src/main/java/Class33.java b/src/main/java/VertexNormal.java similarity index 82% rename from src/main/java/Class33.java rename to src/main/java/VertexNormal.java index 35a2aab..311671b 100644 --- a/src/main/java/Class33.java +++ b/src/main/java/VertexNormal.java @@ -2,14 +2,14 @@ // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) -public class Class33 { +public class VertexNormal { public int anInt602; public int anInt603; public int anInt604; public int anInt605; - public Class33() { + public VertexNormal() { } }