void method163(final float[] fs, final int i, final boolean bool) { for (int i_2_ = 0; i_2_ < i; i_2_++) { fs[i_2_] = 0.0F; } if (!bool) { final int i_3_ = Class91_Sub4.aClass11Array1770[this.anInt159].anInt163; final int i_4_ = this.anInt156 - this.anInt157; final int i_5_ = i_4_ / this.anInt154; final int[] is = new int[i_5_]; for (int i_6_ = 0; i_6_ < 8; i_6_++) { int i_7_ = 0; while (i_7_ < i_5_) { if (i_6_ == 0) { int i_8_ = Class91_Sub4.aClass11Array1770[this.anInt159].method165(); for (int i_9_ = i_3_ - 1; i_9_ >= 0; i_9_--) { if (i_7_ + i_9_ < i_5_) { is[i_7_ + i_9_] = i_8_ % this.anInt155; } i_8_ /= this.anInt155; } } for (int i_10_ = 0; i_10_ < i_3_; i_10_++) { final int i_11_ = is[i_7_]; final int i_12_ = this.anIntArray160[i_11_ * 8 + i_6_]; if (i_12_ >= 0) { final int i_13_ = this.anInt157 + i_7_ * this.anInt154; final Class11 class11 = Class91_Sub4.aClass11Array1770[i_12_]; if (this.anInt158 == 0) { final int i_14_ = this.anInt154 / class11.anInt163; for (int i_15_ = 0; i_15_ < i_14_; i_15_++) { final float[] fs_16_ = class11.method166(); for (int i_17_ = 0; i_17_ < class11.anInt163; i_17_++) { fs[i_13_ + i_15_ + i_17_ * i_14_] += fs_16_[i_17_]; } } } else { int i_18_ = 0; while (i_18_ < this.anInt154) { final float[] fs_19_ = class11.method166(); for (int var17 = 0; var17 < class11.anInt163; var17++) { fs[i_13_ + i_18_] += fs_19_[var17]; i_18_++; } } } } if (++i_7_ >= i_5_) { break; } } } } } }
public boolean method1030(byte i) { try { Class11.method329(-727077730); if (((Class95) this).anInt922 * 1285026069 == 0) { ((Class95) this).aClass298_Sub13_914 = Class298_Sub13.method2905(((Class95) this).aClass243_917, anInt921 * 1941368041, 0); if (((Class95) this).aClass298_Sub13_914 == null) return false; ((Class95) this).aClass272_920 = new Class272(Class79.aClass243_736, Class79.aClass243_735); ((Class95) this).anInt922 = -1271605699; } if (1 == 1285026069 * ((Class95) this).anInt922) { if (!((Class95) this) .aClass298_Sub19_Sub1_916.method2955( ((Class95) this).aClass298_Sub13_914, Class79.aClass243_747, ((Class95) this).aClass272_920, 22050, -1303478218)) return false; ((Class95) this).anInt922 = 1751755898; } return true; } catch (RuntimeException runtimeexception) { throw Class346.method4175( runtimeexception, new StringBuilder().append("dw.b(").append(')').toString()); } }
public static void method188( WorldController worldController, int i, int j, int k, int l, Class11 class11, int ai[][][], int i1, int j1, int k1) { int l1 = ai[l][i1][j]; int i2 = ai[l][i1 + 1][j]; int j2 = ai[l][i1 + 1][j + 1]; int k2 = ai[l][i1][j + 1]; int l2 = l1 + i2 + j2 + k2 >> 2; ObjectDef class46 = ObjectDef.forID(j1); int i3 = i1 + (j << 7) + (j1 << 14) + 0x40000000; if (!class46.hasActions) i3 += 0x80000000; byte byte1 = (byte) ((i << 6) + k); if (k == 22) { Object obj; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj = class46.method578(22, i, l1, i2, j2, k2, -1); else obj = new Animable_Sub5(j1, i, 22, i2, j2, l1, k2, class46.anInt781, true); worldController.method280(k1, l2, j, ((Animable) (obj)), byte1, i3, i1); if (class46.aBoolean767 && class46.hasActions) class11.method213(j, i1); return; } if (k == 10 || k == 11) { Object obj1; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj1 = class46.method578(10, i, l1, i2, j2, k2, -1); else obj1 = new Animable_Sub5(j1, i, 10, i2, j2, l1, k2, class46.anInt781, true); if (obj1 != null) { int j5 = 0; if (k == 11) j5 += 256; int k4; int i5; if (i == 1 || i == 3) { k4 = class46.anInt761; i5 = class46.anInt744; } else { k4 = class46.anInt744; i5 = class46.anInt761; } worldController.method284(i3, byte1, l2, i5, ((Animable) (obj1)), k4, k1, j5, j, i1); } if (class46.aBoolean767) class11.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i1, j, i); return; } if (k >= 12) { Object obj2; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj2 = class46.method578(k, i, l1, i2, j2, k2, -1); else obj2 = new Animable_Sub5(j1, i, k, i2, j2, l1, k2, class46.anInt781, true); worldController.method284(i3, byte1, l2, 1, ((Animable) (obj2)), 1, k1, 0, j, i1); if (class46.aBoolean767) class11.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i1, j, i); return; } if (k == 0) { Object obj3; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj3 = class46.method578(0, i, l1, i2, j2, k2, -1); else obj3 = new Animable_Sub5(j1, i, 0, i2, j2, l1, k2, class46.anInt781, true); worldController.method282( anIntArray152[i], ((Animable) (obj3)), i3, j, byte1, i1, null, l2, 0, k1); if (class46.aBoolean767) class11.method211(j, i, i1, k, class46.aBoolean757); return; } if (k == 1) { Object obj4; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj4 = class46.method578(1, i, l1, i2, j2, k2, -1); else obj4 = new Animable_Sub5(j1, i, 1, i2, j2, l1, k2, class46.anInt781, true); worldController.method282( anIntArray140[i], ((Animable) (obj4)), i3, j, byte1, i1, null, l2, 0, k1); if (class46.aBoolean767) class11.method211(j, i, i1, k, class46.aBoolean757); return; } if (k == 2) { int j3 = i + 1 & 3; Object obj11; Object obj12; if (class46.anInt781 == -1 && class46.childrenIDs == null) { obj11 = class46.method578(2, 4 + i, l1, i2, j2, k2, -1); obj12 = class46.method578(2, j3, l1, i2, j2, k2, -1); } else { obj11 = new Animable_Sub5(j1, 4 + i, 2, i2, j2, l1, k2, class46.anInt781, true); obj12 = new Animable_Sub5(j1, j3, 2, i2, j2, l1, k2, class46.anInt781, true); } worldController.method282( anIntArray152[i], ((Animable) (obj11)), i3, j, byte1, i1, ((Animable) (obj12)), l2, anIntArray152[j3], k1); if (class46.aBoolean767) class11.method211(j, i, i1, k, class46.aBoolean757); return; } if (k == 3) { Object obj5; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj5 = class46.method578(3, i, l1, i2, j2, k2, -1); else obj5 = new Animable_Sub5(j1, i, 3, i2, j2, l1, k2, class46.anInt781, true); worldController.method282( anIntArray140[i], ((Animable) (obj5)), i3, j, byte1, i1, null, l2, 0, k1); if (class46.aBoolean767) class11.method211(j, i, i1, k, class46.aBoolean757); return; } if (k == 9) { Object obj6; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj6 = class46.method578(k, i, l1, i2, j2, k2, -1); else obj6 = new Animable_Sub5(j1, i, k, i2, j2, l1, k2, class46.anInt781, true); worldController.method284(i3, byte1, l2, 1, ((Animable) (obj6)), 1, k1, 0, j, i1); if (class46.aBoolean767) class11.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, i1, j, i); return; } if (class46.aBoolean762) if (i == 1) { int k3 = k2; k2 = j2; j2 = i2; i2 = l1; l1 = k3; } else if (i == 2) { int l3 = k2; k2 = i2; i2 = l3; l3 = j2; j2 = l1; l1 = l3; } else if (i == 3) { int i4 = k2; k2 = l1; l1 = i2; i2 = j2; j2 = i4; } if (k == 4) { Object obj7; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj7 = class46.method578(4, 0, l1, i2, j2, k2, -1); else obj7 = new Animable_Sub5(j1, 0, 4, i2, j2, l1, k2, class46.anInt781, true); worldController.method283( i3, j, i * 512, k1, 0, l2, ((Animable) (obj7)), i1, byte1, 0, anIntArray152[i]); return; } if (k == 5) { int j4 = 16; int l4 = worldController.method300(k1, i1, j); if (l4 > 0) j4 = ObjectDef.forID(l4 >> 14 & 0x7fff).anInt775; Object obj13; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj13 = class46.method578(4, 0, l1, i2, j2, k2, -1); else obj13 = new Animable_Sub5(j1, 0, 4, i2, j2, l1, k2, class46.anInt781, true); worldController.method283( i3, j, i * 512, k1, anIntArray137[i] * j4, l2, ((Animable) (obj13)), i1, byte1, anIntArray144[i] * j4, anIntArray152[i]); return; } if (k == 6) { Object obj8; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj8 = class46.method578(4, 0, l1, i2, j2, k2, -1); else obj8 = new Animable_Sub5(j1, 0, 4, i2, j2, l1, k2, class46.anInt781, true); worldController.method283(i3, j, i, k1, 0, l2, ((Animable) (obj8)), i1, byte1, 0, 256); return; } if (k == 7) { Object obj9; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj9 = class46.method578(4, 0, l1, i2, j2, k2, -1); else obj9 = new Animable_Sub5(j1, 0, 4, i2, j2, l1, k2, class46.anInt781, true); worldController.method283(i3, j, i, k1, 0, l2, ((Animable) (obj9)), i1, byte1, 0, 512); return; } if (k == 8) { Object obj10; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj10 = class46.method578(4, 0, l1, i2, j2, k2, -1); else obj10 = new Animable_Sub5(j1, 0, 4, i2, j2, l1, k2, class46.anInt781, true); worldController.method283(i3, j, i, k1, 0, l2, ((Animable) (obj10)), i1, byte1, 0, 768); } }
private void method175( int i, WorldController worldController, Class11 class11, int j, int k, int l, int i1, int j1) { /*int mX = clientInstance.MapX - 6; int mY = clientInstance.MapY - 6; int actualX = mX * 8 + l; int actualY = mY * 8 + i; int actualH = k; if(!(actualX >= 2630 && actualX <= 2639 && actualY >= 4680 && actualY <= 4690)//castle at starting point && !(actualX >= 2640 && actualX <= 2643 && actualY >= 4680 && actualY <= 4689)//castle at starting point && !(actualX >= 2630 && actualX <= 2636 && actualY >= 4676 && actualY <= 4689)//castle at starting point && !(actualX >= 2629 && actualX <= 2637 && actualY >= 4679 && actualY <= 4685)//castle at starting point && !(actualX >= 2637 && actualX <= 2638 && actualY >= 4691 && actualY <= 4692)//castle at starting point && !(actualX == 2635 && actualY == 4693) && !(actualX == 2634 && actualY == 4693) ) {*/ if (lowMem && (aByteArrayArrayArray149[0][l][i] & 2) == 0) { if ((aByteArrayArrayArray149[k][l][i] & 0x10) != 0) return; if (method182(i, k, l) != anInt131) return; } if (k < anInt145) anInt145 = k; int k1 = anIntArrayArrayArray129[k][l][i]; int l1 = anIntArrayArrayArray129[k][l + 1][i]; int i2 = anIntArrayArrayArray129[k][l + 1][i + 1]; int j2 = anIntArrayArrayArray129[k][l][i + 1]; int k2 = k1 + l1 + i2 + j2 >> 2; ObjectDef class46 = ObjectDef.forID(i1); int l2 = l + (i << 7) + (i1 << 14) + 0x40000000; if (!class46.hasActions) l2 += 0x80000000; byte byte0 = (byte) ((j1 << 6) + j); if (j == 22) { if (lowMem && !class46.hasActions && !class46.aBoolean736) return; Object obj; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj = class46.method578(22, j1, k1, l1, i2, j2, -1); else obj = new Animable_Sub5(i1, j1, 22, l1, i2, k1, j2, class46.anInt781, true); worldController.method280(k, k2, i, ((Animable) (obj)), byte0, l2, l); if (class46.aBoolean767 && class46.hasActions && class11 != null) class11.method213(i, l); return; } if (j == 10 || j == 11) { Object obj1; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj1 = class46.method578(10, j1, k1, l1, i2, j2, -1); else obj1 = new Animable_Sub5(i1, j1, 10, l1, i2, k1, j2, class46.anInt781, true); if (obj1 != null) { int i5 = 0; if (j == 11) i5 += 256; int j4; int l4; if (j1 == 1 || j1 == 3) { j4 = class46.anInt761; l4 = class46.anInt744; } else { j4 = class46.anInt744; l4 = class46.anInt761; } if (worldController.method284(l2, byte0, k2, l4, ((Animable) (obj1)), j4, k, i5, i, l) && class46.aBoolean779) { Model model; if (obj1 instanceof Model) model = (Model) obj1; else model = class46.method578(10, j1, k1, l1, i2, j2, -1); if (model != null) { for (int j5 = 0; j5 <= j4; j5++) { for (int k5 = 0; k5 <= l4; k5++) { int l5 = model.anInt1650 / 4; if (l5 > 30) l5 = 30; if (l5 > aByteArrayArrayArray134[k][l + j5][i + k5]) aByteArrayArrayArray134[k][l + j5][i + k5] = (byte) l5; } } } } } if (class46.aBoolean767 && class11 != null) class11.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, l, i, j1); return; } if (j >= 12) { Object obj2; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj2 = class46.method578(j, j1, k1, l1, i2, j2, -1); else obj2 = new Animable_Sub5(i1, j1, j, l1, i2, k1, j2, class46.anInt781, true); worldController.method284(l2, byte0, k2, 1, ((Animable) (obj2)), 1, k, 0, i, l); if (j >= 12 && j <= 17 && j != 13 && k > 0) anIntArrayArrayArray135[k][l][i] |= 0x924; if (class46.aBoolean767 && class11 != null) class11.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, l, i, j1); return; } if (j == 0) { Object obj3; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj3 = class46.method578(0, j1, k1, l1, i2, j2, -1); else obj3 = new Animable_Sub5(i1, j1, 0, l1, i2, k1, j2, class46.anInt781, true); worldController.method282( anIntArray152[j1], ((Animable) (obj3)), l2, i, byte0, l, null, k2, 0, k); if (j1 == 0) { if (class46.aBoolean779) { aByteArrayArrayArray134[k][l][i] = 50; aByteArrayArrayArray134[k][l][i + 1] = 50; } if (class46.aBoolean764) anIntArrayArrayArray135[k][l][i] |= 0x249; } else if (j1 == 1) { if (class46.aBoolean779) { aByteArrayArrayArray134[k][l][i + 1] = 50; aByteArrayArrayArray134[k][l + 1][i + 1] = 50; } if (class46.aBoolean764) anIntArrayArrayArray135[k][l][i + 1] |= 0x492; } else if (j1 == 2) { if (class46.aBoolean779) { aByteArrayArrayArray134[k][l + 1][i] = 50; aByteArrayArrayArray134[k][l + 1][i + 1] = 50; } if (class46.aBoolean764) anIntArrayArrayArray135[k][l + 1][i] |= 0x249; } else if (j1 == 3) { if (class46.aBoolean779) { aByteArrayArrayArray134[k][l][i] = 50; aByteArrayArrayArray134[k][l + 1][i] = 50; } if (class46.aBoolean764) anIntArrayArrayArray135[k][l][i] |= 0x492; } if (class46.aBoolean767 && class11 != null) class11.method211(i, j1, l, j, class46.aBoolean757); if (class46.anInt775 != 16) worldController.method290(i, class46.anInt775, l, k); return; } if (j == 1) { Object obj4; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj4 = class46.method578(1, j1, k1, l1, i2, j2, -1); else obj4 = new Animable_Sub5(i1, j1, 1, l1, i2, k1, j2, class46.anInt781, true); worldController.method282( anIntArray140[j1], ((Animable) (obj4)), l2, i, byte0, l, null, k2, 0, k); if (class46.aBoolean779) if (j1 == 0) aByteArrayArrayArray134[k][l][i + 1] = 50; else if (j1 == 1) aByteArrayArrayArray134[k][l + 1][i + 1] = 50; else if (j1 == 2) aByteArrayArrayArray134[k][l + 1][i] = 50; else if (j1 == 3) aByteArrayArrayArray134[k][l][i] = 50; if (class46.aBoolean767 && class11 != null) class11.method211(i, j1, l, j, class46.aBoolean757); return; } if (j == 2) { int i3 = j1 + 1 & 3; Object obj11; Object obj12; if (class46.anInt781 == -1 && class46.childrenIDs == null) { obj11 = class46.method578(2, 4 + j1, k1, l1, i2, j2, -1); obj12 = class46.method578(2, i3, k1, l1, i2, j2, -1); } else { obj11 = new Animable_Sub5(i1, 4 + j1, 2, l1, i2, k1, j2, class46.anInt781, true); obj12 = new Animable_Sub5(i1, i3, 2, l1, i2, k1, j2, class46.anInt781, true); } worldController.method282( anIntArray152[j1], ((Animable) (obj11)), l2, i, byte0, l, ((Animable) (obj12)), k2, anIntArray152[i3], k); if (class46.aBoolean764) if (j1 == 0) { anIntArrayArrayArray135[k][l][i] |= 0x249; anIntArrayArrayArray135[k][l][i + 1] |= 0x492; } else if (j1 == 1) { anIntArrayArrayArray135[k][l][i + 1] |= 0x492; anIntArrayArrayArray135[k][l + 1][i] |= 0x249; } else if (j1 == 2) { anIntArrayArrayArray135[k][l + 1][i] |= 0x249; anIntArrayArrayArray135[k][l][i] |= 0x492; } else if (j1 == 3) { anIntArrayArrayArray135[k][l][i] |= 0x492; anIntArrayArrayArray135[k][l][i] |= 0x249; } if (class46.aBoolean767 && class11 != null) class11.method211(i, j1, l, j, class46.aBoolean757); if (class46.anInt775 != 16) worldController.method290(i, class46.anInt775, l, k); return; } if (j == 3) { Object obj5; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj5 = class46.method578(3, j1, k1, l1, i2, j2, -1); else obj5 = new Animable_Sub5(i1, j1, 3, l1, i2, k1, j2, class46.anInt781, true); worldController.method282( anIntArray140[j1], ((Animable) (obj5)), l2, i, byte0, l, null, k2, 0, k); if (class46.aBoolean779) if (j1 == 0) aByteArrayArrayArray134[k][l][i + 1] = 50; else if (j1 == 1) aByteArrayArrayArray134[k][l + 1][i + 1] = 50; else if (j1 == 2) aByteArrayArrayArray134[k][l + 1][i] = 50; else if (j1 == 3) aByteArrayArrayArray134[k][l][i] = 50; if (class46.aBoolean767 && class11 != null) class11.method211(i, j1, l, j, class46.aBoolean757); return; } if (j == 9) { Object obj6; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj6 = class46.method578(j, j1, k1, l1, i2, j2, -1); else obj6 = new Animable_Sub5(i1, j1, j, l1, i2, k1, j2, class46.anInt781, true); worldController.method284(l2, byte0, k2, 1, ((Animable) (obj6)), 1, k, 0, i, l); if (class46.aBoolean767 && class11 != null) class11.method212(class46.aBoolean757, class46.anInt744, class46.anInt761, l, i, j1); return; } if (class46.aBoolean762) if (j1 == 1) { int j3 = j2; j2 = i2; i2 = l1; l1 = k1; k1 = j3; } else if (j1 == 2) { int k3 = j2; j2 = l1; l1 = k3; k3 = i2; i2 = k1; k1 = k3; } else if (j1 == 3) { int l3 = j2; j2 = k1; k1 = l1; l1 = i2; i2 = l3; } if (j == 4) { Object obj7; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj7 = class46.method578(4, 0, k1, l1, i2, j2, -1); else obj7 = new Animable_Sub5(i1, 0, 4, l1, i2, k1, j2, class46.anInt781, true); worldController.method283( l2, i, j1 * 512, k, 0, k2, ((Animable) (obj7)), l, byte0, 0, anIntArray152[j1]); return; } if (j == 5) { int i4 = 16; int k4 = worldController.method300(k, l, i); if (k4 > 0) i4 = ObjectDef.forID(k4 >> 14 & 0x7fff).anInt775; Object obj13; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj13 = class46.method578(4, 0, k1, l1, i2, j2, -1); else obj13 = new Animable_Sub5(i1, 0, 4, l1, i2, k1, j2, class46.anInt781, true); worldController.method283( l2, i, j1 * 512, k, anIntArray137[j1] * i4, k2, ((Animable) (obj13)), l, byte0, anIntArray144[j1] * i4, anIntArray152[j1]); return; } if (j == 6) { Object obj8; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj8 = class46.method578(4, 0, k1, l1, i2, j2, -1); else obj8 = new Animable_Sub5(i1, 0, 4, l1, i2, k1, j2, class46.anInt781, true); worldController.method283(l2, i, j1, k, 0, k2, ((Animable) (obj8)), l, byte0, 0, 256); return; } if (j == 7) { Object obj9; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj9 = class46.method578(4, 0, k1, l1, i2, j2, -1); else obj9 = new Animable_Sub5(i1, 0, 4, l1, i2, k1, j2, class46.anInt781, true); worldController.method283(l2, i, j1, k, 0, k2, ((Animable) (obj9)), l, byte0, 0, 512); return; } if (j == 8) { Object obj10; if (class46.anInt781 == -1 && class46.childrenIDs == null) obj10 = class46.method578(4, 0, k1, l1, i2, j2, -1); else obj10 = new Animable_Sub5(i1, 0, 4, l1, i2, k1, j2, class46.anInt781, true); worldController.method283(l2, i, j1, k, 0, k2, ((Animable) (obj10)), l, byte0, 0, 768); } // } }