Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final void method22() {
- try {
- anInt985 = -1;
- aClass19_1056.removeAll();
- aClass19_1013.removeAll();
- Texture.method366();
- unlinkMRUNodes();
- worldController.initToNull();
- System.gc();
- for (int i = 0; i < 4; i++)
- collision_maps[i].method210();
- for (int l = 0; l < 4; l++) {
- for (int k1 = 0; k1 < 104; k1++) {
- for (int j2 = 0; j2 < 104; j2++)
- byteGroundArray[l][k1][j2] = 0;
- }
- }
- ObjectManager objectManager = new ObjectManager(byteGroundArray, intGroundArray);
- int k2 = aByteArrayArray1183.length;
- int k18 = 62;
- for (int A = 0; A < k2; A++) {
- for (int B = 0; B < 2000; B++) {
- if (mapLocation[A] == positions[B]) {
- floorMap[A] = landScapes[B];
- objectMap[A] = objects[B];
- }
- }
- }
- stream.createFrame(0);
- if (!aBoolean1159) {
- for (int i3 = 0; i3 < k2; i3++) {
- int i4 = (mapLocation[i3] >> 8) * 64 - baseX;
- int k5 = (mapLocation[i3] & 0xff) * 64 - baseY;
- byte abyte0[] = aByteArrayArray1183[i3];
- if (FileOperations.FileExists(signlink.findcachedir()
- + "rsmap/" + floorMap[i3] + ".dat")) {
- abyte0 = FileOperations.ReadFile(signlink
- .findcachedir()
- + "rsmap/"
- + floorMap[i3]
- + ".dat");
- System.out.println("Read floor data: " + floorMap[i3]);
- }
- if (abyte0 != null) {
- objectManager.method180(abyte0, k5, i4,
- (anInt1069 - 6) * 8, (anInt1070 - 6) * 8,
- collision_maps);
- // pushMessage("floorMap: " + floorMap[i3], 0, "");
- // DataUtils.writeFile(new File(signlink.findcachedir()
- // + floorMap[i3] + ".dat"), abyte0);
- }
- }
- for (int j4 = 0; j4 < k2; j4++) {
- int l5 = (mapLocation[j4] >> 8) * k18 - baseX;
- int k7 = (mapLocation[j4] & 0xff) * k18 - baseY;
- byte abyte2[] = aByteArrayArray1183[j4];
- if (abyte2 == null && anInt1070 < 800)
- objectManager.method174(k7, 64, 64, l5);
- }
- anInt1097++;
- if (anInt1097 > 160) {
- anInt1097 = 0;
- stream.createFrame(238);
- stream.writeByte(96);
- }
- stream.createFrame(0);
- for (int i6 = 0; i6 < k2; i6++) {
- try {
- byte abyte1[] = aByteArrayArray1247[i6];
- if (FileOperations.FileExists(signlink.findcachedir()
- + "rsmap/" + objectMap[i6] + ".dat")) {
- abyte1 = FileOperations.ReadFile(signlink
- .findcachedir()
- + "rsmap/"
- + objectMap[i6]
- + ".dat");
- System.out.println("Read object data: "
- + objectMap[i6]);
- }
- if (abyte1 != null) {
- int l8 = (mapLocation[i6] >> 8) * 64 - baseX;
- int k9 = (mapLocation[i6] & 0xff) * 64 - baseY;
- objectManager.method190(l8, collision_maps, k9,
- worldController, abyte1);
- // pushMessage("objectMap: " + objectMap[i6], 0,
- // "");
- // DataUtils.writeFile(new
- // File(signlink.findcachedir() + objectMap[i6] +
- // ".dat"), abyte1);
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
- if (aBoolean1159) {
- for (int j3 = 0; j3 < 4; j3++) {
- for (int k4 = 0; k4 < 13; k4++) {
- for (int j6 = 0; j6 < 13; j6++) {
- int l7 = anIntArrayArrayArray1129[j3][k4][j6];
- if (l7 != -1) {
- int i9 = l7 >> 24 & 3;
- int l9 = l7 >> 1 & 3;
- int j10 = l7 >> 14 & 0x3ff;
- int l10 = l7 >> 3 & 0x7ff;
- int j11 = (j10 / 8 << 8) + l10 / 8;
- for (int l11 = 0; l11 < mapLocation.length; l11++) {
- if (mapLocation[l11] != j11
- || aByteArrayArray1183[l11] == null)
- continue;
- objectManager.method179(i9, l9,
- collision_maps, k4 * 8,
- (j10 & 7) * 8,
- aByteArrayArray1183[l11],
- (l10 & 7) * 8, j3, j6 * 8);
- break;
- }
- }
- }
- }
- }
- for (int l4 = 0; l4 < 13; l4++) {
- for (int k6 = 0; k6 < 13; k6++) {
- int i8 = anIntArrayArrayArray1129[0][l4][k6];
- if (i8 == -1)
- objectManager.method174(k6 * 8, 8, 8, l4 * 8);
- }
- }
- stream.createFrame(0);
- for (int l6 = 0; l6 < 4; l6++) {
- for (int j8 = 0; j8 < 13; j8++) {
- for (int j9 = 0; j9 < 13; j9++) {
- int i10 = anIntArrayArrayArray1129[l6][j8][j9];
- if (i10 != -1) {
- int k10 = i10 >> 24 & 3;
- int i11 = i10 >> 1 & 3;
- int k11 = i10 >> 14 & 0x3ff;
- int i12 = i10 >> 3 & 0x7ff;
- int j12 = (k11 / 8 << 8) + i12 / 8;
- for (int k12 = 0; k12 < mapLocation.length; k12++) {
- if (mapLocation[k12] != j12
- || aByteArrayArray1247[k12] == null)
- continue;
- byte abyte0[] = aByteArrayArray1247[k12];
- objectManager.method183(collision_maps,
- worldController, k10, j8 * 8,
- (i12 & 7) * 8, l6,
- aByteArrayArray1247[k12],
- (k11 & 7) * 8, i11, j9 * 8);
- break;
- }
- }
- }
- }
- }
- }
- stream.createFrame(0);
- objectManager.method171(collision_maps, worldController);
- gameScreenIP.initDrawingArea();
- stream.createFrame(0);
- int k3 = ObjectManager.anInt145;
- if (k3 > floor_level)
- k3 = floor_level;
- if (k3 < floor_level - 1)
- k3 = floor_level - 1;
- if (lowMem)
- worldController.method275(ObjectManager.anInt145);
- else
- worldController.method275(0);
- for (int i5 = 0; i5 < 104; i5++) {
- for (int i7 = 0; i7 < 104; i7++)
- spawnGroundItem(i5, i7);
- }
- anInt1051++;
- if (anInt1051 > 98) {
- anInt1051 = 0;
- stream.createFrame(150);
- }
- method63();
- } catch (Exception exception) {
- }
- ObjectDef.mruNodes1.unlinkAll();
- if (super.gameFrame != null) {
- stream.createFrame(210);
- stream.writeDWord(0x3f008edd);
- }
- System.gc();
- Texture.method367();
- onDemandFetcher.method566();
- int k = (anInt1069 - 6) / 8 - 1;
- int j1 = (anInt1069 + 6) / 8 + 1;
- int i2 = (anInt1070 - 6) / 8 - 1;
- int l2 = (anInt1070 + 6) / 8 + 1;
- if (aBoolean1141) {
- k = 49;
- j1 = 50;
- i2 = 49;
- l2 = 50;
- }
- 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 = onDemandFetcher.method562(0, j5, l3);
- if (j7 != -1)
- onDemandFetcher.method560(j7, 3);
- int k8 = onDemandFetcher.method562(1, j5, l3);
- if (k8 != -1)
- onDemandFetcher.method560(k8, 3);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement