mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-01 14:39:16 -06:00
251 lines
9.5 KiB
Java
251 lines
9.5 KiB
Java
import java.util.Random;
|
|
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static89 {
|
|
|
|
@OriginalMember(owner = "client!ha", name = "i", descriptor = "Lclient!qf;")
|
|
public static Sprite aClass3_Sub2_Sub1_5;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "k", descriptor = "[[Z")
|
|
public static boolean[][] aBooleanArrayArray3;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "o", descriptor = "I")
|
|
public static int anInt2387;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "m", descriptor = "I")
|
|
public static int anInt2385 = 0;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "q", descriptor = "I")
|
|
public static int anInt2388 = 0;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(ZB)V")
|
|
public static void method1835(@OriginalArg(0) boolean arg0) {
|
|
@Pc(11) byte local11;
|
|
@Pc(13) byte[][] local13;
|
|
if (GlRenderer.enabled && arg0) {
|
|
local11 = 1;
|
|
local13 = Static186.underWaterMapFilesBuffer;
|
|
} else {
|
|
local13 = Static273.mapFilesBuffer;
|
|
local11 = 4;
|
|
}
|
|
for (@Pc(21) int local21 = 0; local21 < local11; local21++) {
|
|
client.audioLoop();
|
|
for (@Pc(32) int local32 = 0; local32 < 13; local32++) {
|
|
for (@Pc(39) int local39 = 0; local39 < 13; local39++) {
|
|
@Pc(52) int local52 = Static187.anIntArrayArrayArray18[local21][local32][local39];
|
|
@Pc(54) boolean local54 = false;
|
|
if (local52 != -1) {
|
|
@Pc(65) int local65 = local52 >> 24 & 0x3;
|
|
if (!arg0 || local65 == 0) {
|
|
@Pc(76) int local76 = local52 >> 3 & 0x7FF;
|
|
@Pc(82) int local82 = local52 >> 1 & 0x3;
|
|
@Pc(88) int local88 = local52 >> 14 & 0x3FF;
|
|
@Pc(98) int local98 = (local88 / 8 << 8) + local76 / 8;
|
|
for (@Pc(100) int local100 = 0; local100 < Static238.regionBitPacked.length; local100++) {
|
|
if (Static238.regionBitPacked[local100] == local98 && local13[local100] != null) {
|
|
Static245.method4228(local82, local32 * 8, local21, PathFinder.collisionMaps, local39 * 8, local13[local100], local65, (local76 & 0x7) * 8, (local88 & 0x7) * 8, arg0);
|
|
local54 = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!local54) {
|
|
Static23.method645(local21, local39 * 8, local32 * 8, 8, 8);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(ILclient!be;)Lclient!be;")
|
|
public static Component method1836(@OriginalArg(1) Component arg0) {
|
|
@Pc(12) Component local12 = Static36.method938(arg0);
|
|
if (local12 == null) {
|
|
local12 = arg0.aClass13_5;
|
|
}
|
|
return local12;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(II)[B")
|
|
public static byte[] method1837(@OriginalArg(1) int arg0) {
|
|
@Pc(10) ByteArrayNode local10 = (ByteArrayNode) Static53.aClass54_5.get((long) arg0);
|
|
if (local10 == null) {
|
|
@Pc(24) Random local24 = new Random((long) arg0);
|
|
@Pc(27) byte[] local27 = new byte[512];
|
|
@Pc(29) int local29;
|
|
for (local29 = 0; local29 < 255; local29++) {
|
|
local27[local29] = (byte) local29;
|
|
}
|
|
for (local29 = 0; local29 < 255; local29++) {
|
|
@Pc(53) int local53 = 255 - local29;
|
|
@Pc(58) int local58 = Static171.method3219(local53, local24);
|
|
@Pc(62) byte local62 = local27[local58];
|
|
local27[local58] = local27[local53];
|
|
local27[local53] = local27[511 - local29] = local62;
|
|
}
|
|
local10 = new ByteArrayNode(local27);
|
|
Static53.aClass54_5.put(local10, (long) arg0);
|
|
}
|
|
return local10.value;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "([IJIZ)Lclient!na;")
|
|
public static JagString method1838(@OriginalArg(0) int[] arg0, @OriginalArg(1) long arg1, @OriginalArg(2) int arg2) {
|
|
if (QuickChatPhraseTypeList.decoder != null) {
|
|
@Pc(17) JagString local17 = QuickChatPhraseTypeList.decoder.method30(arg2, arg0, arg1);
|
|
if (local17 != null) {
|
|
return local17;
|
|
}
|
|
}
|
|
return Static154.method2929(arg1);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "b", descriptor = "(II)V")
|
|
public static void method1840(@OriginalArg(1) int arg0) {
|
|
@Pc(8) DelayedStateChange local8 = Static238.method4143(2, arg0);
|
|
local8.pushClient();
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(I)V")
|
|
public static void method1841() {
|
|
if (!Static60.aBoolean108) {
|
|
if (Static226.anInt3953 != 0) {
|
|
Static155.anInt3751 = Static277.anInt5850;
|
|
Static60.anInt1892 = Static280.anInt5895;
|
|
} else if (Static150.clickButton == 0) {
|
|
Static155.anInt3751 = Static215.anInt4873;
|
|
Static60.anInt1892 = Static223.anInt5032;
|
|
} else {
|
|
Static155.anInt3751 = Static7.clickX;
|
|
Static60.anInt1892 = Static60.clickY;
|
|
}
|
|
Static231.anInt5204 = 1;
|
|
Static254.aClass100Array168[0] = LocalizedText.CANCEL;
|
|
Static233.aClass100Array160[0] = JagString.EMPTY;
|
|
Static39.aShortArray6[0] = 1005;
|
|
Static190.anIntArray382[0] = Static35.anInt1092;
|
|
}
|
|
if (InterfaceList.topLevelInterface != -1) {
|
|
Static96.method1949(InterfaceList.topLevelInterface);
|
|
}
|
|
@Pc(60) int local60;
|
|
for (local60 = 0; local60 < InterfaceList.anInt766; local60++) {
|
|
if (Static186.aBooleanArray100[local60]) {
|
|
InterfaceList.rectangleRedraw[local60] = true;
|
|
}
|
|
Static223.aBooleanArray116[local60] = Static186.aBooleanArray100[local60];
|
|
Static186.aBooleanArray100[local60] = false;
|
|
}
|
|
Static201.aClass13_13 = null;
|
|
Static97.anInt2503 = -1;
|
|
Static214.anInt5574 = -1;
|
|
Static169.aClass13_18 = null;
|
|
if (GlRenderer.enabled) {
|
|
Static263.aBoolean299 = true;
|
|
}
|
|
Static182.anInt4311 = Static83.loop;
|
|
if (InterfaceList.topLevelInterface != -1) {
|
|
InterfaceList.anInt766 = 0;
|
|
Static9.method182();
|
|
}
|
|
if (GlRenderer.enabled) {
|
|
Static46.method1177();
|
|
} else {
|
|
SoftwareRaster.method2503();
|
|
}
|
|
Static280.method4673();
|
|
if (Static60.aBoolean108) {
|
|
if (Static261.aBoolean298) {
|
|
Static112.method2297();
|
|
} else {
|
|
Static145.method2744();
|
|
}
|
|
} else if (Static201.aClass13_13 != null) {
|
|
Static49.method1207(Static201.aClass13_13, Static143.anInt3484, Static131.anInt3260);
|
|
} else if (Static97.anInt2503 != -1) {
|
|
Static49.method1207(null, Static214.anInt5574, Static97.anInt2503);
|
|
}
|
|
local60 = Static60.aBoolean108 ? -1 : Static235.method4044();
|
|
if (local60 == -1) {
|
|
local60 = Static270.anInt5794;
|
|
}
|
|
Static81.method1750(local60);
|
|
if (Static125.anInt3096 == 1) {
|
|
Static125.anInt3096 = 2;
|
|
}
|
|
if (Static187.anInt4422 == 1) {
|
|
Static187.anInt4422 = 2;
|
|
}
|
|
if (Static199.rectDebug == 3) {
|
|
for (@Pc(189) int local189 = 0; local189 < InterfaceList.anInt766; local189++) {
|
|
if (Static223.aBooleanArray116[local189]) {
|
|
if (GlRenderer.enabled) {
|
|
Static46.method1182(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711935, 128);
|
|
} else {
|
|
SoftwareRaster.method2484(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711935, 128);
|
|
}
|
|
} else if (InterfaceList.rectangleRedraw[local189]) {
|
|
if (GlRenderer.enabled) {
|
|
Static46.method1182(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711680, 128);
|
|
} else {
|
|
SoftwareRaster.method2484(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711680, 128);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Static110.method2281(Static178.anInt4247, PlayerList.self.xFine, PlayerList.self.zFine, Static55.level);
|
|
Static178.anInt4247 = 0;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(IIIII)V")
|
|
public static void method1843(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(4) int arg3) {
|
|
@Pc(7) int local7 = 0;
|
|
@Pc(9) int local9 = arg2;
|
|
@Pc(12) int local12 = -arg2;
|
|
@Pc(14) int local14 = -1;
|
|
@Pc(22) int local22 = Static78.method1690(Static224.anInt5063, arg2 + arg3, Static172.anInt4164);
|
|
@Pc(30) int local30 = Static78.method1690(Static224.anInt5063, arg3 - arg2, Static172.anInt4164);
|
|
Static131.method2576(Static71.anIntArrayArray10[arg1], local30, local22, arg0);
|
|
while (local7 < local9) {
|
|
local14 += 2;
|
|
local12 += local14;
|
|
@Pc(58) int local58;
|
|
@Pc(68) int local68;
|
|
@Pc(84) int local84;
|
|
@Pc(93) int local93;
|
|
if (local12 > 0) {
|
|
local9--;
|
|
local58 = arg1 - local9;
|
|
local12 -= local9 << 1;
|
|
local68 = arg1 + local9;
|
|
if (local68 >= Static267.anInt5773 && local58 <= Static106.anInt2869) {
|
|
local84 = Static78.method1690(Static224.anInt5063, arg3 + local7, Static172.anInt4164);
|
|
local93 = Static78.method1690(Static224.anInt5063, arg3 - local7, Static172.anInt4164);
|
|
if (Static106.anInt2869 >= local68) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local68], local93, local84, arg0);
|
|
}
|
|
if (Static267.anInt5773 <= local58) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local58], local93, local84, arg0);
|
|
}
|
|
}
|
|
}
|
|
local7++;
|
|
local58 = arg1 - local7;
|
|
local68 = local7 + arg1;
|
|
if (local68 >= Static267.anInt5773 && Static106.anInt2869 >= local58) {
|
|
local84 = Static78.method1690(Static224.anInt5063, arg3 + local9, Static172.anInt4164);
|
|
local93 = Static78.method1690(Static224.anInt5063, arg3 - local9, Static172.anInt4164);
|
|
if (local68 <= Static106.anInt2869) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local68], local93, local84, arg0);
|
|
}
|
|
if (local58 >= Static267.anInt5773) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local58], local93, local84, arg0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|