113 lines
2.2 KiB
Java
113 lines
2.2 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.Implements;
|
|
import net.runelite.mapping.ObfuscatedGetter;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("hx")
|
|
@Implements("Coord")
|
|
public class Coord {
|
|
@ObfuscatedName("c")
|
|
@ObfuscatedGetter(
|
|
intValue = 556251855
|
|
)
|
|
@Export("graphicsTickTimeIdx")
|
|
static int graphicsTickTimeIdx;
|
|
@ObfuscatedName("u")
|
|
@ObfuscatedGetter(
|
|
intValue = 1348059781
|
|
)
|
|
@Export("plane")
|
|
public int plane;
|
|
@ObfuscatedName("f")
|
|
@ObfuscatedGetter(
|
|
intValue = 1294830225
|
|
)
|
|
@Export("x")
|
|
public int x;
|
|
@ObfuscatedName("b")
|
|
@ObfuscatedGetter(
|
|
intValue = 358494981
|
|
)
|
|
@Export("y")
|
|
public int y;
|
|
|
|
@ObfuscatedSignature(
|
|
signature = "(Lhx;)V"
|
|
)
|
|
public Coord(Coord var1) {
|
|
this.plane = var1.plane;
|
|
this.x = var1.x;
|
|
this.y = var1.y;
|
|
}
|
|
|
|
public Coord(int var1, int var2, int var3) {
|
|
this.plane = var1;
|
|
this.x = var2;
|
|
this.y = var3;
|
|
}
|
|
|
|
public Coord(int var1) {
|
|
if (var1 == -1) {
|
|
this.plane = -1;
|
|
} else {
|
|
this.plane = var1 >> 28 & 3;
|
|
this.x = var1 >> 14 & 16383;
|
|
this.y = var1 & 16383;
|
|
}
|
|
|
|
}
|
|
|
|
@ObfuscatedName("u")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)I",
|
|
garbageValue = "-633329475"
|
|
)
|
|
@Export("packed")
|
|
public int packed() {
|
|
return this.plane << 28 | this.x << 14 | this.y;
|
|
}
|
|
|
|
@ObfuscatedName("f")
|
|
@ObfuscatedSignature(
|
|
signature = "(Lhx;I)Z",
|
|
garbageValue = "1606698981"
|
|
)
|
|
@Export("equalsCoord")
|
|
boolean equalsCoord(Coord var1) {
|
|
if (this.plane != var1.plane) {
|
|
return false;
|
|
} else if (this.x != var1.x) {
|
|
return false;
|
|
} else {
|
|
return this.y == var1.y;
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("b")
|
|
@ObfuscatedSignature(
|
|
signature = "(Ljava/lang/String;B)Ljava/lang/String;",
|
|
garbageValue = "-38"
|
|
)
|
|
@Export("toString")
|
|
String toString(String var1) {
|
|
return this.plane + var1 + (this.x >> 6) + var1 + (this.y >> 6) + var1 + (this.x & 63) + var1 + (this.y & 63);
|
|
}
|
|
|
|
public boolean equals(Object var1) {
|
|
if (this == var1) {
|
|
return true;
|
|
} else {
|
|
return !(var1 instanceof Coord) ? false : this.equalsCoord((Coord)var1);
|
|
}
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.packed();
|
|
}
|
|
|
|
public String toString() {
|
|
return this.toString(",");
|
|
}
|
|
}
|