Search in sources :

Example 56 with ObfuscatedName

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

the class SourceDataSoundSystem method create.

@ObfuscatedName("i")
@ObfuscatedSignature(signature = "(II)V", garbageValue = "1217716284")
@Export("create")
protected void create(int var1) throws LineUnavailableException {
    try {
        Info var2 = new Info(SourceDataLine.class, this.audioFormat, var1 << (UnitPriceComparator.audioHighMemory ? 2 : 1));
        this.source = (SourceDataLine) AudioSystem.getLine(var2);
        this.source.open();
        this.source.start();
        this.size = var1;
    } catch (LineUnavailableException var5) {
        int var4 = (var1 >>> 1 & 1431655765) + (var1 & 1431655765);
        var4 = (var4 >>> 2 & 858993459) + (var4 & 858993459);
        var4 = (var4 >>> 4) + var4 & 252645135;
        var4 += var4 >>> 8;
        var4 += var4 >>> 16;
        int var3 = var4 & 255;
        if (var3 != 1) {
            this.create(WallObject.nextPowerOfTwo(var1));
        } else {
            this.source = null;
            throw var5;
        }
    }
}
Also used : LineUnavailableException(javax.sound.sampled.LineUnavailableException) Info(javax.sound.sampled.DataLine.Info) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 57 with ObfuscatedName

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

the class WorldMapRegion method method394.

@ObfuscatedName("p")
@ObfuscatedSignature(signature = "(Ljava/util/List;S)V", garbageValue = "-14065")
void method394(List var1) {
    Iterator var2 = var1.iterator();
    while (var2.hasNext()) {
        class25 var3 = (class25) var2.next();
        if (var3.field354.worldX >> 6 == this.field459 && var3.field354.worldY >> 6 == this.field456) {
            MapIcon var4 = new MapIcon(var3.field355, var3.field354, var3.field354, this.method451(var3.field355));
            this.field471.add(var4);
        }
    }
}
Also used : Iterator(java.util.Iterator) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 58 with ObfuscatedName

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

the class WorldMapRegion method drawMapLinks.

@ObfuscatedName("am")
@ObfuscatedSignature(signature = "(IILjava/util/HashSet;II)V", garbageValue = "129011931")
@Export("drawMapLinks")
void drawMapLinks(int var1, int var2, HashSet var3, int var4) {
    float var5 = (float) var4 / 64.0F;
    Iterator var6 = this.field471.iterator();
    while (var6.hasNext()) {
        MapIcon var7 = (MapIcon) var6.next();
        int var8 = var7.field512.worldX % 64;
        int var9 = var7.field512.worldY % 64;
        var7.screenX = (int) ((float) var8 * var5 + (float) var1);
        var7.screenY = (int) ((float) (63 - var9) * var5 + (float) var2);
        if (!var3.contains(Integer.valueOf(var7.areaId))) {
            this.method518(var7, var7.screenX, var7.screenY, var5);
        }
    }
}
Also used : Iterator(java.util.Iterator) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 59 with ObfuscatedName

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

the class WorldMapRegion method method414.

@ObfuscatedName("r")
@ObfuscatedSignature(signature = "(IIILjava/util/HashSet;I)V", garbageValue = "962214860")
void method414(int var1, int var2, int var3, HashSet var4) {
    if (var4 == null) {
        var4 = new HashSet();
    }
    this.drawNonLinkMapIcons(var1, var2, var4, var3);
    this.drawMapLinks(var1, var2, var4, var3);
}
Also used : HashSet(java.util.HashSet) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 60 with ObfuscatedName

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

the class WorldMapRegion method method412.

@ObfuscatedName("ak")
@ObfuscatedSignature(signature = "(Ljava/util/HashSet;III)V", garbageValue = "1424049642")
void method412(HashSet var1, int var2, int var3) {
    Iterator var4 = this.field471.iterator();
    while (var4.hasNext()) {
        MapIcon var5 = (MapIcon) var4.next();
        Area var6 = Area.mapAreaType[var5.areaId];
        if (var6 != null && var1.contains(Integer.valueOf(var6.method4755()))) {
            this.method413(var6, var5.screenX, var5.screenY, var2, var3);
        }
    }
}
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