import org.openrs2.deob.annotation.OriginalArg; import org.openrs2.deob.annotation.OriginalMember; import org.openrs2.deob.annotation.Pc; public final class Static260 { @OriginalMember(owner = "client!vd", name = "w", descriptor = "Lclient!vk;") public static FrameBuffer aClass27_2; @OriginalMember(owner = "client!vd", name = "v", descriptor = "Lclient!na;") public static final JagString aClass100_944 = Static28.method790("hitbar_default"); @OriginalMember(owner = "client!vd", name = "B", descriptor = "[S") public static final short[] aShortArray71 = new short[] { 6798, 8741, 25238, 4626, 4550 }; @OriginalMember(owner = "client!vd", name = "C", descriptor = "I") public static int anInt5014 = 0; @OriginalMember(owner = "client!vd", name = "F", descriptor = "Lclient!na;") public static final JagString aClass100_945 = Static28.method790("0"); @OriginalMember(owner = "client!vd", name = "a", descriptor = "(IIIIBI)V") public static void method3849(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(5) int arg4) { Static133.anInt5230 = arg2; Static265.anInt5765 = arg1; Static233.anInt5217 = arg4; Static251.anInt5449 = arg3; Static57.anInt1744 = arg0; if (Static233.anInt5217 >= 100) { @Pc(30) int local30 = Static251.anInt5449 * 128 + 64; @Pc(36) int local36 = Static265.anInt5765 * 128 + 64; @Pc(44) int local44 = Static207.method3685(Static55.anInt1735, local30, local36) - Static57.anInt1744; @Pc(49) int local49 = local44 - Static5.anInt40; @Pc(54) int local54 = local30 - Static138.anInt3439; @Pc(59) int local59 = local36 - Static134.anInt3302; @Pc(70) int local70 = (int) Math.sqrt((double) (local59 * local59 + local54 * local54)); Static240.anInt5333 = (int) (Math.atan2((double) local49, (double) local70) * 325.949D) & 0x7FF; Static184.anInt4358 = (int) (Math.atan2((double) local54, (double) local59) * -325.949D) & 0x7FF; if (Static240.anInt5333 < 128) { Static240.anInt5333 = 128; } if (Static240.anInt5333 > 383) { Static240.anInt5333 = 383; } } Static227.anInt5096 = 2; } @OriginalMember(owner = "client!vd", name = "b", descriptor = "(IIII)Z") public static boolean method3850(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) { if (!Static9.method187(arg0, arg1, arg2)) { return false; } @Pc(10) int local10 = arg1 << 7; @Pc(14) int local14 = arg2 << 7; @Pc(24) int local24 = Static83.anIntArrayArrayArray4[arg0][arg1][arg2] - 1; @Pc(28) int local28 = local24 - 120; @Pc(32) int local32 = local24 - 230; @Pc(36) int local36 = local24 - 238; if (arg3 < 16) { if (arg3 == 1) { if (local10 > Static149.anInt3555) { if (!Static256.method4394(local10, local24, local14)) { return false; } if (!Static256.method4394(local10, local24, local14 + 128)) { return false; } } if (arg0 > 0) { if (!Static256.method4394(local10, local28, local14)) { return false; } if (!Static256.method4394(local10, local28, local14 + 128)) { return false; } } if (!Static256.method4394(local10, local32, local14)) { return false; } if (!Static256.method4394(local10, local32, local14 + 128)) { return false; } return true; } if (arg3 == 2) { if (local14 < Static217.anInt4903) { if (!Static256.method4394(local10, local24, local14 + 128)) { return false; } if (!Static256.method4394(local10 + 128, local24, local14 + 128)) { return false; } } if (arg0 > 0) { if (!Static256.method4394(local10, local28, local14 + 128)) { return false; } if (!Static256.method4394(local10 + 128, local28, local14 + 128)) { return false; } } if (!Static256.method4394(local10, local32, local14 + 128)) { return false; } if (!Static256.method4394(local10 + 128, local32, local14 + 128)) { return false; } return true; } if (arg3 == 4) { if (local10 < Static149.anInt3555) { if (!Static256.method4394(local10 + 128, local24, local14)) { return false; } if (!Static256.method4394(local10 + 128, local24, local14 + 128)) { return false; } } if (arg0 > 0) { if (!Static256.method4394(local10 + 128, local28, local14)) { return false; } if (!Static256.method4394(local10 + 128, local28, local14 + 128)) { return false; } } if (!Static256.method4394(local10 + 128, local32, local14)) { return false; } if (!Static256.method4394(local10 + 128, local32, local14 + 128)) { return false; } return true; } if (arg3 == 8) { if (local14 > Static217.anInt4903) { if (!Static256.method4394(local10, local24, local14)) { return false; } if (!Static256.method4394(local10 + 128, local24, local14)) { return false; } } if (arg0 > 0) { if (!Static256.method4394(local10, local28, local14)) { return false; } if (!Static256.method4394(local10 + 128, local28, local14)) { return false; } } if (!Static256.method4394(local10, local32, local14)) { return false; } if (!Static256.method4394(local10 + 128, local32, local14)) { return false; } return true; } } if (!Static256.method4394(local10 + 64, local36, local14 + 64)) { return false; } else if (arg3 == 16) { return Static256.method4394(local10, local32, local14 + 128); } else if (arg3 == 32) { return Static256.method4394(local10 + 128, local32, local14 + 128); } else if (arg3 == 64) { return Static256.method4394(local10 + 128, local32, local14); } else if (arg3 == 128) { return Static256.method4394(local10, local32, local14); } else { return true; } } @OriginalMember(owner = "client!vd", name = "a", descriptor = "(BZ)V") public static void method3852(@OriginalArg(1) boolean arg0) { @Pc(14) AreaSound local14; for (local14 = (AreaSound) Static3.aClass69_135.method2289(); local14 != null; local14 = (AreaSound) Static3.aClass69_135.method2288()) { if (local14.aClass3_Sub3_Sub1_1 != null) { Static204.aClass3_Sub3_Sub2_1.method1347(local14.aClass3_Sub3_Sub1_1); local14.aClass3_Sub3_Sub1_1 = null; } if (local14.aClass3_Sub3_Sub1_2 != null) { Static204.aClass3_Sub3_Sub2_1.method1347(local14.aClass3_Sub3_Sub1_2); local14.aClass3_Sub3_Sub1_2 = null; } local14.method4658(); } if (!arg0) { return; } for (local14 = (AreaSound) Static152.aClass69_87.method2289(); local14 != null; local14 = (AreaSound) Static152.aClass69_87.method2288()) { if (local14.aClass3_Sub3_Sub1_1 != null) { Static204.aClass3_Sub3_Sub2_1.method1347(local14.aClass3_Sub3_Sub1_1); local14.aClass3_Sub3_Sub1_1 = null; } local14.method4658(); } for (local14 = (AreaSound) Static93.aClass133_7.method3859(); local14 != null; local14 = (AreaSound) Static93.aClass133_7.method3861()) { if (local14.aClass3_Sub3_Sub1_1 != null) { Static204.aClass3_Sub3_Sub2_1.method1347(local14.aClass3_Sub3_Sub1_1); local14.aClass3_Sub3_Sub1_1 = null; } local14.method4658(); } } }