Search in sources :

Example 11 with ObfuscatedName

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

the class WorldMapRegion method method404.

@ObfuscatedName("g")
@ObfuscatedSignature(signature = "([Lao;I)Laa;", garbageValue = "-768703734")
class33 method404(WorldMapRegion[] var1) {
    class44 var2 = new class44(64, 64);
    if (this.field457 != null) {
        this.method406(0, 0, 64, 64, this.field457, var2);
    } else {
        Iterator var3 = this.field462.iterator();
        while (var3.hasNext()) {
            class46 var4 = (class46) var3.next();
            this.method406(var4.method687() * 8, var4.method679() * 8, 8, 8, var4, var2);
        }
    }
    this.method405(var1, var2);
    class33 var5 = new class33();
    var5.method377(var2);
    return var5;
}
Also used : Iterator(java.util.Iterator) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 12 with ObfuscatedName

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

the class WorldMapRegion method method425.

@ObfuscatedName("ad")
@ObfuscatedSignature(signature = "(IIIIII)Ljava/util/List;", garbageValue = "-1174225388")
List method425(int var1, int var2, int var3, int var4, int var5) {
    LinkedList var6 = new LinkedList();
    if (var4 >= var1 && var5 >= var2) {
        if (var4 < var3 + var1 && var5 < var3 + var2) {
            Iterator var7 = this.field466.values().iterator();
            MapIcon var8;
            while (var7.hasNext()) {
                var8 = (MapIcon) var7.next();
                if (var8.method563(var4, var5)) {
                    var6.add(var8);
                }
            }
            var7 = this.field471.iterator();
            while (var7.hasNext()) {
                var8 = (MapIcon) var7.next();
                if (var8.method563(var4, var5)) {
                    var6.add(var8);
                }
            }
            return var6;
        } else {
            return var6;
        }
    } else {
        return var6;
    }
}
Also used : Iterator(java.util.Iterator) LinkedList(java.util.LinkedList) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 13 with ObfuscatedName

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

the class WorldMapRegion method drawNonLinkMapIcons.

@ObfuscatedName("ab")
@ObfuscatedSignature(signature = "(IILjava/util/HashSet;IS)V", garbageValue = "256")
@Export("drawNonLinkMapIcons")
void drawNonLinkMapIcons(int var1, int var2, HashSet var3, int var4) {
    float var5 = (float) var4 / 64.0F;
    float var6 = var5 / 2.0F;
    Iterator var7 = this.field466.entrySet().iterator();
    while (var7.hasNext()) {
        Entry var8 = (Entry) var7.next();
        Coordinates var9 = (Coordinates) var8.getKey();
        int var10 = (int) ((float) var9.worldX * var5 + (float) var1 - var6);
        int var11 = (int) ((float) (var2 + var4) - (float) var9.worldY * var5 - var6);
        MapIcon var12 = (MapIcon) var8.getValue();
        if (var12 != null) {
            var12.screenX = var10;
            var12.screenY = var11;
            Area var13 = Area.mapAreaType[var12.areaId];
            if (!var3.contains(Integer.valueOf(var13.method4755()))) {
                this.method518(var12, var10, var11, var5);
            }
        }
    }
}
Also used : Entry(java.util.Map.Entry) Iterator(java.util.Iterator) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 14 with ObfuscatedName

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

the class WorldMapRegion method method392.

@ObfuscatedName("x")
@ObfuscatedSignature(signature = "(Ljava/util/HashSet;Ljava/util/List;I)V", garbageValue = "1320872508")
void method392(HashSet var1, List var2) {
    this.field466.clear();
    Iterator var3 = var1.iterator();
    while (var3.hasNext()) {
        class46 var4 = (class46) var3.next();
        if (var4.method260() == this.field459 && var4.method247() == this.field456) {
            this.field462.add(var4);
            this.method393(var4.method687() * 8, var4.method679() * 8, 8, 8, var4);
        }
    }
    this.method394(var2);
}
Also used : Iterator(java.util.Iterator) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 15 with ObfuscatedName

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

the class WorldMapRegion method method475.

@ObfuscatedName("ae")
@ObfuscatedSignature(signature = "(IILal;I)V", garbageValue = "-2071079517")
void method475(int var1, int var2, class28 var3) {
    field468.set(0, var1, var2);
    for (int var4 = 0; var4 < var3.field391; ++var4) {
        WorldMapDecoration[] var5 = var3.decorations[var4][var1][var2];
        if (var5 != null && var5.length != 0) {
            WorldMapDecoration[] var6 = var5;
            for (int var7 = 0; var7 < var6.length; ++var7) {
                WorldMapDecoration var8 = var6[var7];
                Area var9 = this.method424(var8.objectDefinitionId);
                if (var9 != null) {
                    MapIcon var10 = (MapIcon) this.field466.get(field468);
                    if (var10 != null) {
                        if (var10.areaId != var9.id) {
                            MapIcon var16 = new MapIcon(var9.id, var10.field506, var10.field512, this.method509(var9));
                            this.field466.put(new Coordinates(field468), var16);
                            var10 = var16;
                        }
                        int var15 = var10.field506.plane - var10.field512.plane;
                        var10.field512.plane = var4;
                        var10.field506.plane = var4 + var15;
                        return;
                    }
                    Coordinates var11 = new Coordinates(var4, this.field459 * 64 + var1, this.field456 * 64 + var2);
                    Coordinates var12 = null;
                    if (this.field457 != null) {
                        var12 = new Coordinates(this.field457.field392 + var4, this.field457.field390 * 64 + var1, var2 + this.field457.field387 * 64);
                    } else {
                        Iterator var13 = this.field462.iterator();
                        while (var13.hasNext()) {
                            class46 var14 = (class46) var13.next();
                            if (var14.method674(var1, var2)) {
                                var12 = new Coordinates(var4 + var14.field392, var14.field390 * 64 + var1 + var14.method676() * 8, var14.field387 * 64 + var2 + var14.method677() * 8);
                                break;
                            }
                        }
                    }
                    if (var12 != null) {
                        var10 = new MapIcon(var9.id, var12, var11, this.method509(var9));
                        this.field466.put(new Coordinates(field468), var10);
                        return;
                    }
                }
            }
        }
    }
    this.field466.remove(field468);
}
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