Search in sources :

Example 6 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class RenderOverview method getWorldMapDataContainingCoord.

@ObfuscatedName("a")
@ObfuscatedSignature(signature = "(IIIB)Las;", garbageValue = "29")
@Export("getWorldMapDataContainingCoord")
public WorldMapData getWorldMapDataContainingCoord(int var1, int var2, int var3) {
    Iterator var4 = this.worldMapDataByIdentifier.values().iterator();
    WorldMapData var5;
    do {
        if (!var4.hasNext()) {
            return null;
        }
        var5 = (WorldMapData) var4.next();
    } while (!var5.containsCoord(var1, var2, var3));
    return var5;
}
Also used : Iterator(java.util.Iterator) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 7 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class RenderOverview method getWorldMapDataByFileId.

@ObfuscatedName("am")
@ObfuscatedSignature(signature = "(IB)Las;", garbageValue = "-29")
@Export("getWorldMapDataByFileId")
public WorldMapData getWorldMapDataByFileId(int var1) {
    Iterator var2 = this.worldMapDataByIdentifier.values().iterator();
    WorldMapData var3;
    do {
        if (!var2.hasNext()) {
            return null;
        }
        var3 = (WorldMapData) var2.next();
    } while (var3.getFileId() != var1);
    return var3;
}
Also used : Iterator(java.util.Iterator) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 8 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapManager method load.

@ObfuscatedName("c")
@ObfuscatedSignature(signature = "(Ljm;Ljava/lang/String;ZI)V", garbageValue = "-263697855")
@Export("load")
public void load(IndexDataBase var1, String var2, boolean var3) {
    if (!this.loading) {
        this.loaded = false;
        this.loading = true;
        System.nanoTime();
        int var4 = var1.getFile(MapCacheArchiveNames.DETAILS.name);
        int var5 = var1.getChild(var4, var2);
        Buffer var6 = new Buffer(var1.takeRecordByNames(MapCacheArchiveNames.DETAILS.name, var2));
        Buffer var7 = new Buffer(var1.takeRecordByNames(MapCacheArchiveNames.COMPOSITE_MAP.name, var2));
        Buffer var8 = new Buffer(var1.takeRecordByNames(var2, MapCacheArchiveNames.AREA.name));
        System.nanoTime();
        System.nanoTime();
        this.field524 = new class45();
        try {
            this.field524.method663(var6, var8, var7, var5, var3);
        } catch (IllegalStateException var24) {
            return;
        }
        this.field524.method322();
        this.field524.method323();
        this.field524.method324();
        this.field531 = this.field524.getMinX() * 64;
        this.field525 = this.field524.getMinY() * 64;
        this.field536 = (this.field524.method319() - this.field524.getMinX() + 1) * 64;
        this.field538 = (this.field524.method313() - this.field524.getMinY() + 1) * 64;
        int var18 = this.field524.method319() - this.field524.getMinX() + 1;
        int var10 = this.field524.method313() - this.field524.getMinY() + 1;
        System.nanoTime();
        System.nanoTime();
        BoundingBox.method57();
        this.mapRegions = new WorldMapRegion[var18][var10];
        Iterator var11 = this.field524.field557.iterator();
        int var14;
        int var15;
        while (var11.hasNext()) {
            class22 var12 = (class22) var11.next();
            int var13 = var12.field390;
            var14 = var12.field387;
            var15 = var13 - this.field524.getMinX();
            int var16 = var14 - this.field524.getMinY();
            this.mapRegions[var15][var16] = new WorldMapRegion(var13, var14, this.field524.method316(), this.mapFonts);
            this.mapRegions[var15][var16].method508(var12, this.field524.field555);
        }
        for (int var19 = 0; var19 < var18; ++var19) {
            for (int var20 = 0; var20 < var10; ++var20) {
                if (this.mapRegions[var19][var20] == null) {
                    this.mapRegions[var19][var20] = new WorldMapRegion(this.field524.getMinX() + var19, this.field524.getMinY() + var20, this.field524.method316(), this.mapFonts);
                    this.mapRegions[var19][var20].method392(this.field524.field554, this.field524.field555);
                }
            }
        }
        System.nanoTime();
        System.nanoTime();
        if (var1.method4571(MapCacheArchiveNames.COMPOSITE_TEXTURE.name, var2)) {
            byte[] var27 = var1.takeRecordByNames(MapCacheArchiveNames.COMPOSITE_TEXTURE.name, var2);
            BufferedImage var21 = null;
            SpritePixels var28;
            label46: {
                try {
                    var21 = ImageIO.read(new ByteArrayInputStream(var27));
                    var14 = var21.getWidth();
                    var15 = var21.getHeight();
                    int[] var22 = new int[var15 * var14];
                    PixelGrabber var17 = new PixelGrabber(var21, 0, 0, var14, var15, var22, 0, var14);
                    var17.grabPixels();
                    var28 = new SpritePixels(var22, var14, var15);
                    break label46;
                } catch (IOException var25) {
                    ;
                } catch (InterruptedException var26) {
                    ;
                }
                var28 = new SpritePixels(0, 0);
            }
            this.field534 = var28;
        }
        System.nanoTime();
        var1.method4556();
        var1.reset();
        this.loaded = true;
    }
}
Also used : IOException(java.io.IOException) BufferedImage(java.awt.image.BufferedImage) ByteArrayInputStream(java.io.ByteArrayInputStream) Iterator(java.util.Iterator) PixelGrabber(java.awt.image.PixelGrabber) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 9 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapManager method method590.

@ObfuscatedName("d")
@ObfuscatedSignature(signature = "(I)V", garbageValue = "1446693813")
void method590() {
    if (this.field526 == null) {
        this.field526 = new HashMap();
    }
    this.field526.clear();
    for (int var1 = 0; var1 < this.mapRegions.length; ++var1) {
        for (int var2 = 0; var2 < this.mapRegions[var1].length; ++var2) {
            List var3 = this.mapRegions[var1][var2].method426();
            Iterator var4 = var3.iterator();
            while (var4.hasNext()) {
                MapIcon var5 = (MapIcon) var4.next();
                if (!this.field526.containsKey(Integer.valueOf(var5.areaId))) {
                    LinkedList var6 = new LinkedList();
                    var6.add(var5);
                    this.field526.put(Integer.valueOf(var5.areaId), var6);
                } else {
                    List var7 = (List) this.field526.get(Integer.valueOf(var5.areaId));
                    var7.add(var5);
                }
            }
        }
    }
}
Also used : HashMap(java.util.HashMap) Iterator(java.util.Iterator) List(java.util.List) LinkedList(java.util.LinkedList) LinkedList(java.util.LinkedList) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 10 with ObfuscatedName

use of net.runelite.mapping.ObfuscatedName in project runelite by runelite.

the class WorldMapRegion method method399.

@ObfuscatedName("b")
@ObfuscatedSignature(signature = "(Laz;[Llq;Laa;B)V", garbageValue = "-90")
void method399(class47 var1, IndexedSprite[] var2, class33 var3) {
    Iterator var4 = this.field462.iterator();
    class46 var5;
    int var6;
    int var7;
    while (var4.hasNext()) {
        var5 = (class46) var4.next();
        for (var6 = var5.method687() * 8; var6 < var5.method687() * 8 + 8; ++var6) {
            for (var7 = var5.method679() * 8; var7 < var5.method679() * 8 + 8; ++var7) {
                this.method461(var6, var7, var5, var1, var3);
                this.method420(var6, var7, var5, var1);
            }
        }
    }
    var4 = this.field462.iterator();
    while (var4.hasNext()) {
        var5 = (class46) var4.next();
        for (var6 = var5.method687() * 8; var6 < var5.method687() * 8 + 8; ++var6) {
            for (var7 = var5.method679() * 8; var7 < var5.method679() * 8 + 8; ++var7) {
                this.method502(var6, var7, var5, var1, var2);
            }
        }
    }
}
Also used : Iterator(java.util.Iterator) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Aggregations

ObfuscatedName (net.runelite.mapping.ObfuscatedName)72 ObfuscatedSignature (net.runelite.mapping.ObfuscatedSignature)71 Iterator (java.util.Iterator)30 Export (net.runelite.mapping.Export)23 IOException (java.io.IOException)11 LinkedList (java.util.LinkedList)10 List (java.util.List)6 Container (java.awt.Container)5 Insets (java.awt.Insets)5 HashSet (java.util.HashSet)5 JSObject (netscape.javascript.JSObject)5 URL (java.net.URL)4 HashMap (java.util.HashMap)4 ByteArrayInputStream (java.io.ByteArrayInputStream)3 File (java.io.File)3 URI (java.net.URI)3 Canvas (java.awt.Canvas)2 Graphics (java.awt.Graphics)2 BufferedImage (java.awt.image.BufferedImage)2 PixelGrabber (java.awt.image.PixelGrabber)2