657 lines
15 KiB
Java
657 lines
15 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("cy")
|
|
@Implements("Actor")
|
|
public abstract class Actor extends Renderable {
|
|
@ObfuscatedName("jw")
|
|
@ObfuscatedGetter(
|
|
intValue = -920273095
|
|
)
|
|
@Export("oculusOrbFocalPointY")
|
|
static int oculusOrbFocalPointY;
|
|
@ObfuscatedName("an")
|
|
@Export("isWalking")
|
|
boolean isWalking;
|
|
@ObfuscatedName("am")
|
|
@ObfuscatedGetter(
|
|
intValue = -797221037
|
|
)
|
|
@Export("x")
|
|
int x;
|
|
@ObfuscatedName("az")
|
|
@ObfuscatedGetter(
|
|
intValue = -378004067
|
|
)
|
|
@Export("y")
|
|
int y;
|
|
@ObfuscatedName("au")
|
|
@ObfuscatedGetter(
|
|
intValue = 1848624375
|
|
)
|
|
@Export("rotation")
|
|
int rotation;
|
|
@ObfuscatedName("av")
|
|
@ObfuscatedGetter(
|
|
intValue = 1728936343
|
|
)
|
|
int field1120;
|
|
@ObfuscatedName("ap")
|
|
@ObfuscatedGetter(
|
|
intValue = 467296973
|
|
)
|
|
@Export("playerCycle")
|
|
int playerCycle;
|
|
@ObfuscatedName("ac")
|
|
@ObfuscatedGetter(
|
|
intValue = -913877769
|
|
)
|
|
@Export("idleSequence")
|
|
int idleSequence;
|
|
@ObfuscatedName("aj")
|
|
@ObfuscatedGetter(
|
|
intValue = 383490447
|
|
)
|
|
@Export("turnLeftSequence")
|
|
int turnLeftSequence;
|
|
@ObfuscatedName("af")
|
|
@ObfuscatedGetter(
|
|
intValue = -15560867
|
|
)
|
|
@Export("turnRightSequence")
|
|
int turnRightSequence;
|
|
@ObfuscatedName("ar")
|
|
@ObfuscatedGetter(
|
|
intValue = 1191511995
|
|
)
|
|
@Export("walkSequence")
|
|
int walkSequence;
|
|
@ObfuscatedName("ag")
|
|
@ObfuscatedGetter(
|
|
intValue = -1495792429
|
|
)
|
|
@Export("walkBackSequence")
|
|
int walkBackSequence;
|
|
@ObfuscatedName("al")
|
|
@ObfuscatedGetter(
|
|
intValue = 731481149
|
|
)
|
|
@Export("walkLeftSequence")
|
|
int walkLeftSequence;
|
|
@ObfuscatedName("aa")
|
|
@ObfuscatedGetter(
|
|
intValue = -1761005899
|
|
)
|
|
@Export("walkRightSequence")
|
|
int walkRightSequence;
|
|
@ObfuscatedName("as")
|
|
@ObfuscatedGetter(
|
|
intValue = 80446087
|
|
)
|
|
@Export("runSequence")
|
|
int runSequence;
|
|
@ObfuscatedName("at")
|
|
@Export("overheadText")
|
|
String overheadText;
|
|
@ObfuscatedName("ai")
|
|
@Export("isAutoChatting")
|
|
boolean isAutoChatting;
|
|
@ObfuscatedName("aq")
|
|
boolean field1114;
|
|
@ObfuscatedName("aw")
|
|
@ObfuscatedGetter(
|
|
intValue = 1997962917
|
|
)
|
|
@Export("overheadTextCyclesRemaining")
|
|
int overheadTextCyclesRemaining;
|
|
@ObfuscatedName("ay")
|
|
@ObfuscatedGetter(
|
|
intValue = -662438945
|
|
)
|
|
@Export("overheadTextColor")
|
|
int overheadTextColor;
|
|
@ObfuscatedName("ae")
|
|
@ObfuscatedGetter(
|
|
intValue = 106086783
|
|
)
|
|
@Export("overheadTextEffect")
|
|
int overheadTextEffect;
|
|
@ObfuscatedName("ad")
|
|
@Export("hitSplatCount")
|
|
byte hitSplatCount;
|
|
@ObfuscatedName("bp")
|
|
@Export("hitSplatTypes")
|
|
int[] hitSplatTypes;
|
|
@ObfuscatedName("bd")
|
|
@Export("hitSplatValues")
|
|
int[] hitSplatValues;
|
|
@ObfuscatedName("ba")
|
|
@Export("hitSplatCycles")
|
|
int[] hitSplatCycles;
|
|
@ObfuscatedName("bq")
|
|
@Export("hitSplatTypes2")
|
|
int[] hitSplatTypes2;
|
|
@ObfuscatedName("bg")
|
|
@Export("hitSplatValues2")
|
|
int[] hitSplatValues2;
|
|
@ObfuscatedName("br")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Llr;"
|
|
)
|
|
@Export("healthBars")
|
|
IterableNodeDeque healthBars;
|
|
@ObfuscatedName("bi")
|
|
@ObfuscatedGetter(
|
|
intValue = -962879023
|
|
)
|
|
@Export("targetIndex")
|
|
int targetIndex;
|
|
@ObfuscatedName("bm")
|
|
@Export("false0")
|
|
boolean false0;
|
|
@ObfuscatedName("bw")
|
|
@ObfuscatedGetter(
|
|
intValue = -1964951137
|
|
)
|
|
int field1122;
|
|
@ObfuscatedName("bl")
|
|
boolean field1118;
|
|
@ObfuscatedName("bz")
|
|
@ObfuscatedGetter(
|
|
intValue = 1411460693
|
|
)
|
|
@Export("movementSequence")
|
|
int movementSequence;
|
|
@ObfuscatedName("bu")
|
|
@ObfuscatedGetter(
|
|
intValue = -1470905675
|
|
)
|
|
@Export("movementFrame")
|
|
int movementFrame;
|
|
@ObfuscatedName("bs")
|
|
@ObfuscatedGetter(
|
|
intValue = 892078037
|
|
)
|
|
@Export("movementFrameCycle")
|
|
int movementFrameCycle;
|
|
@ObfuscatedName("bv")
|
|
@ObfuscatedGetter(
|
|
intValue = -1419164143
|
|
)
|
|
@Export("sequence")
|
|
int sequence;
|
|
@ObfuscatedName("bb")
|
|
@ObfuscatedGetter(
|
|
intValue = 126354783
|
|
)
|
|
@Export("sequenceFrame")
|
|
int sequenceFrame;
|
|
@ObfuscatedName("bc")
|
|
@ObfuscatedGetter(
|
|
intValue = -1624543435
|
|
)
|
|
@Export("sequenceFrameCycle")
|
|
int sequenceFrameCycle;
|
|
@ObfuscatedName("bx")
|
|
@ObfuscatedGetter(
|
|
intValue = -538098431
|
|
)
|
|
@Export("sequenceDelay")
|
|
int sequenceDelay;
|
|
@ObfuscatedName("bt")
|
|
@ObfuscatedGetter(
|
|
intValue = -524732497
|
|
)
|
|
int field1126;
|
|
@ObfuscatedName("bh")
|
|
@ObfuscatedGetter(
|
|
intValue = -1337511095
|
|
)
|
|
@Export("spotAnimation")
|
|
int spotAnimation;
|
|
@ObfuscatedName("bn")
|
|
@ObfuscatedGetter(
|
|
intValue = -2016638493
|
|
)
|
|
@Export("spotAnimationFrame")
|
|
int spotAnimationFrame;
|
|
@ObfuscatedName("bj")
|
|
@ObfuscatedGetter(
|
|
intValue = -921802207
|
|
)
|
|
@Export("spotAnimationFrameCycle")
|
|
int spotAnimationFrameCycle;
|
|
@ObfuscatedName("by")
|
|
@ObfuscatedGetter(
|
|
intValue = 1121204749
|
|
)
|
|
int field1130;
|
|
@ObfuscatedName("bk")
|
|
@ObfuscatedGetter(
|
|
intValue = -2034554825
|
|
)
|
|
int field1131;
|
|
@ObfuscatedName("bo")
|
|
@ObfuscatedGetter(
|
|
intValue = -873586319
|
|
)
|
|
int field1132;
|
|
@ObfuscatedName("bf")
|
|
@ObfuscatedGetter(
|
|
intValue = 1359620153
|
|
)
|
|
int field1133;
|
|
@ObfuscatedName("be")
|
|
@ObfuscatedGetter(
|
|
intValue = 415157759
|
|
)
|
|
int field1134;
|
|
@ObfuscatedName("ce")
|
|
@ObfuscatedGetter(
|
|
intValue = 288830733
|
|
)
|
|
int field1135;
|
|
@ObfuscatedName("cl")
|
|
@ObfuscatedGetter(
|
|
intValue = -2010992435
|
|
)
|
|
int field1136;
|
|
@ObfuscatedName("cp")
|
|
@ObfuscatedGetter(
|
|
intValue = -1055433063
|
|
)
|
|
int field1157;
|
|
@ObfuscatedName("cd")
|
|
@ObfuscatedGetter(
|
|
intValue = -473786329
|
|
)
|
|
int field1138;
|
|
@ObfuscatedName("ck")
|
|
@ObfuscatedGetter(
|
|
intValue = 987624827
|
|
)
|
|
@Export("npcCycle")
|
|
int npcCycle;
|
|
@ObfuscatedName("cg")
|
|
@ObfuscatedGetter(
|
|
intValue = 384336211
|
|
)
|
|
@Export("defaultHeight")
|
|
int defaultHeight;
|
|
@ObfuscatedName("cy")
|
|
@ObfuscatedGetter(
|
|
intValue = -529478277
|
|
)
|
|
int field1141;
|
|
@ObfuscatedName("cn")
|
|
@ObfuscatedGetter(
|
|
intValue = 1020348289
|
|
)
|
|
int field1140;
|
|
@ObfuscatedName("cv")
|
|
byte field1143;
|
|
@ObfuscatedName("co")
|
|
byte field1144;
|
|
@ObfuscatedName("cc")
|
|
byte field1095;
|
|
@ObfuscatedName("cs")
|
|
byte field1146;
|
|
@ObfuscatedName("cr")
|
|
@ObfuscatedGetter(
|
|
intValue = 592803175
|
|
)
|
|
@Export("orientation")
|
|
int orientation;
|
|
@ObfuscatedName("cb")
|
|
@ObfuscatedGetter(
|
|
intValue = -399857819
|
|
)
|
|
int field1148;
|
|
@ObfuscatedName("cj")
|
|
@ObfuscatedGetter(
|
|
intValue = -771997279
|
|
)
|
|
int field1149;
|
|
@ObfuscatedName("ca")
|
|
@ObfuscatedGetter(
|
|
intValue = 832053673
|
|
)
|
|
@Export("pathLength")
|
|
int pathLength;
|
|
@ObfuscatedName("cz")
|
|
@Export("pathX")
|
|
int[] pathX;
|
|
@ObfuscatedName("cw")
|
|
@Export("pathY")
|
|
int[] pathY;
|
|
@ObfuscatedName("ct")
|
|
@ObfuscatedSignature(
|
|
descriptor = "[Lgj;"
|
|
)
|
|
class185[] field1153;
|
|
@ObfuscatedName("ci")
|
|
@ObfuscatedGetter(
|
|
intValue = -154765815
|
|
)
|
|
int field1117;
|
|
@ObfuscatedName("ch")
|
|
@ObfuscatedGetter(
|
|
intValue = 1854868211
|
|
)
|
|
int field1098;
|
|
@ObfuscatedName("cq")
|
|
@ObfuscatedGetter(
|
|
intValue = 658677507
|
|
)
|
|
int field1119;
|
|
|
|
Actor() {
|
|
this.isWalking = false; // L: 13
|
|
this.field1120 = 1; // L: 14
|
|
this.idleSequence = -1;
|
|
this.turnLeftSequence = -1;
|
|
this.turnRightSequence = -1; // L: 18
|
|
this.walkSequence = -1;
|
|
this.walkBackSequence = -1;
|
|
this.walkLeftSequence = -1; // L: 21
|
|
this.walkRightSequence = -1;
|
|
this.runSequence = -1; // L: 23
|
|
this.overheadText = null;
|
|
this.field1114 = false; // L: 26
|
|
this.overheadTextCyclesRemaining = 100;
|
|
this.overheadTextColor = 0;
|
|
this.overheadTextEffect = 0; // L: 29
|
|
this.hitSplatCount = 0;
|
|
this.hitSplatTypes = new int[4];
|
|
this.hitSplatValues = new int[4];
|
|
this.hitSplatCycles = new int[4]; // L: 34
|
|
this.hitSplatTypes2 = new int[4];
|
|
this.hitSplatValues2 = new int[4];
|
|
this.healthBars = new IterableNodeDeque(); // L: 37
|
|
this.targetIndex = -1;
|
|
this.false0 = false;
|
|
this.field1122 = -1; // L: 40
|
|
this.movementSequence = -1;
|
|
this.movementFrame = 0;
|
|
this.movementFrameCycle = 0;
|
|
this.sequence = -1;
|
|
this.sequenceFrame = 0; // L: 46
|
|
this.sequenceFrameCycle = 0; // L: 47
|
|
this.sequenceDelay = 0;
|
|
this.field1126 = 0; // L: 49
|
|
this.spotAnimation = -1;
|
|
this.spotAnimationFrame = 0;
|
|
this.spotAnimationFrameCycle = 0; // L: 52
|
|
this.npcCycle = 0;
|
|
this.defaultHeight = 200;
|
|
this.field1141 = -1;
|
|
this.field1140 = -1; // L: 65
|
|
this.field1148 = 0; // L: 71
|
|
this.field1149 = 32; // L: 72
|
|
this.pathLength = 0;
|
|
this.pathX = new int[10];
|
|
this.pathY = new int[10];
|
|
this.field1153 = new class185[10];
|
|
this.field1117 = 0; // L: 77
|
|
this.field1098 = 0; // L: 78
|
|
this.field1119 = -1;
|
|
} // L: 81
|
|
|
|
@ObfuscatedName("f")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(B)Z",
|
|
garbageValue = "1"
|
|
)
|
|
@Export("isVisible")
|
|
boolean isVisible() {
|
|
return false; // L: 89
|
|
}
|
|
|
|
@ObfuscatedName("bv")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "1722592983"
|
|
)
|
|
final void method2228() {
|
|
this.pathLength = 0; // L: 84
|
|
this.field1098 = 0; // L: 85
|
|
} // L: 86
|
|
|
|
@ObfuscatedName("bb")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(IIIIIII)V",
|
|
garbageValue = "1118050478"
|
|
)
|
|
@Export("addHitSplat")
|
|
final void addHitSplat(int var1, int var2, int var3, int var4, int var5, int var6) {
|
|
boolean var7 = true; // L: 93
|
|
boolean var8 = true; // L: 94
|
|
|
|
int var9;
|
|
for (var9 = 0; var9 < 4; ++var9) { // L: 95
|
|
if (this.hitSplatCycles[var9] > var5) { // L: 96
|
|
var7 = false;
|
|
} else {
|
|
var8 = false; // L: 97
|
|
}
|
|
}
|
|
|
|
var9 = -1; // L: 99
|
|
int var10 = -1; // L: 100
|
|
int var11 = 0; // L: 101
|
|
if (var1 >= 0) { // L: 102
|
|
HitSplatDefinition var12 = UserComparator6.method2554(var1); // L: 103
|
|
var10 = var12.field1946; // L: 104
|
|
var11 = var12.field1934; // L: 105
|
|
}
|
|
|
|
int var14;
|
|
if (var8) { // L: 107
|
|
if (var10 == -1) { // L: 108
|
|
return;
|
|
}
|
|
|
|
var9 = 0; // L: 109
|
|
var14 = 0; // L: 110
|
|
if (var10 == 0) { // L: 111
|
|
var14 = this.hitSplatCycles[0];
|
|
} else if (var10 == 1) { // L: 112
|
|
var14 = this.hitSplatValues[0];
|
|
}
|
|
|
|
for (int var13 = 1; var13 < 4; ++var13) { // L: 113
|
|
if (var10 == 0) { // L: 114
|
|
if (this.hitSplatCycles[var13] < var14) { // L: 115
|
|
var9 = var13; // L: 116
|
|
var14 = this.hitSplatCycles[var13]; // L: 117
|
|
}
|
|
} else if (var10 == 1 && this.hitSplatValues[var13] < var14) { // L: 120 121
|
|
var9 = var13; // L: 122
|
|
var14 = this.hitSplatValues[var13]; // L: 123
|
|
}
|
|
}
|
|
|
|
if (var10 == 1 && var14 >= var2) { // L: 127
|
|
return;
|
|
}
|
|
} else {
|
|
if (var7) { // L: 130
|
|
this.hitSplatCount = 0;
|
|
}
|
|
|
|
for (var14 = 0; var14 < 4; ++var14) { // L: 131
|
|
byte var15 = this.hitSplatCount; // L: 132
|
|
this.hitSplatCount = (byte)((this.hitSplatCount + 1) % 4); // L: 133
|
|
if (this.hitSplatCycles[var15] <= var5) { // L: 134
|
|
var9 = var15; // L: 135
|
|
break; // L: 136
|
|
}
|
|
}
|
|
}
|
|
|
|
if (var9 >= 0) { // L: 140
|
|
this.hitSplatTypes[var9] = var1; // L: 141
|
|
this.hitSplatValues[var9] = var2; // L: 142
|
|
this.hitSplatTypes2[var9] = var3; // L: 143
|
|
this.hitSplatValues2[var9] = var4; // L: 144
|
|
this.hitSplatCycles[var9] = var5 + var11 + var6; // L: 145
|
|
}
|
|
} // L: 146
|
|
|
|
@ObfuscatedName("bc")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(IIIIIII)V",
|
|
garbageValue = "-1630331843"
|
|
)
|
|
@Export("addHealthBar")
|
|
final void addHealthBar(int var1, int var2, int var3, int var4, int var5, int var6) {
|
|
HealthBarDefinition var7 = class118.method2683(var1); // L: 149
|
|
HealthBar var8 = null; // L: 150
|
|
HealthBar var9 = null; // L: 151
|
|
int var10 = var7.int2; // L: 152
|
|
int var11 = 0; // L: 153
|
|
|
|
HealthBar var12;
|
|
for (var12 = (HealthBar)this.healthBars.last(); var12 != null; var12 = (HealthBar)this.healthBars.previous()) { // L: 154
|
|
++var11; // L: 155
|
|
if (var12.definition.field1796 == var7.field1796) { // L: 156
|
|
var12.put(var2 + var4, var5, var6, var3); // L: 157
|
|
return; // L: 158
|
|
}
|
|
|
|
if (var12.definition.int1 <= var7.int1) { // L: 160
|
|
var8 = var12;
|
|
}
|
|
|
|
if (var12.definition.int2 > var10) { // L: 161
|
|
var9 = var12; // L: 162
|
|
var10 = var12.definition.int2; // L: 163
|
|
}
|
|
}
|
|
|
|
if (var9 != null || var11 < 4) { // L: 166
|
|
var12 = new HealthBar(var7); // L: 167
|
|
if (var8 == null) { // L: 168
|
|
this.healthBars.addLast(var12);
|
|
} else {
|
|
IterableNodeDeque.IterableNodeDeque_addBefore(var12, var8); // L: 169
|
|
}
|
|
|
|
var12.put(var2 + var4, var5, var6, var3); // L: 170
|
|
if (var11 >= 4) { // L: 171
|
|
var9.remove();
|
|
}
|
|
|
|
}
|
|
} // L: 172
|
|
|
|
@ObfuscatedName("bx")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(IB)V",
|
|
garbageValue = "-93"
|
|
)
|
|
@Export("removeHealthBar")
|
|
final void removeHealthBar(int var1) {
|
|
HealthBarDefinition var2 = class118.method2683(var1); // L: 175
|
|
|
|
for (HealthBar var3 = (HealthBar)this.healthBars.last(); var3 != null; var3 = (HealthBar)this.healthBars.previous()) { // L: 176
|
|
if (var2 == var3.definition) { // L: 177
|
|
var3.remove(); // L: 178
|
|
return; // L: 179
|
|
}
|
|
}
|
|
|
|
} // L: 182
|
|
|
|
@ObfuscatedName("c")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(III)I",
|
|
garbageValue = "1718558788"
|
|
)
|
|
static int method2235(int var0, int var1) {
|
|
FloorOverlayDefinition var2 = class18.method302(var0); // L: 15
|
|
if (var2 == null) { // L: 16
|
|
return var1; // L: 17
|
|
} else if (var2.secondaryRgb >= 0) { // L: 19
|
|
return var2.secondaryRgb | -16777216; // L: 20
|
|
} else {
|
|
int var3;
|
|
int var4;
|
|
byte var5;
|
|
int var7;
|
|
if (var2.texture >= 0) { // L: 22
|
|
var4 = Rasterizer3D.Rasterizer3D_textureLoader.getAverageTextureRGB(var2.texture); // L: 24
|
|
var5 = 96; // L: 25
|
|
if (var4 == -2) { // L: 27
|
|
var3 = 12345678; // L: 28
|
|
} else if (var4 == -1) { // L: 31
|
|
if (var5 < 0) { // L: 32
|
|
var5 = 0; // L: 33
|
|
} else if (var5 > 127) { // L: 35
|
|
var5 = 127; // L: 36
|
|
}
|
|
|
|
var7 = 127 - var5; // L: 38
|
|
var3 = var7; // L: 39
|
|
} else {
|
|
var7 = var5 * (var4 & 127) / 128; // L: 42
|
|
if (var7 < 2) { // L: 43
|
|
var7 = 2;
|
|
} else if (var7 > 126) { // L: 44
|
|
var7 = 126;
|
|
}
|
|
|
|
var3 = var7 + (var4 & 65408); // L: 45
|
|
}
|
|
|
|
return Rasterizer3D.Rasterizer3D_colorPalette[var3] | -16777216; // L: 48
|
|
} else if (var2.primaryRgb == 16711935) { // L: 50
|
|
return var1; // L: 51
|
|
} else {
|
|
var3 = WorldMapRectangle.method4794(var2.hue, var2.saturation, var2.lightness); // L: 54
|
|
var5 = 96; // L: 56
|
|
if (var3 == -2) { // L: 58
|
|
var4 = 12345678; // L: 59
|
|
} else if (var3 == -1) { // L: 62
|
|
if (var5 < 0) { // L: 63
|
|
var5 = 0; // L: 64
|
|
} else if (var5 > 127) {
|
|
var5 = 127;
|
|
}
|
|
|
|
var7 = 127 - var5;
|
|
var4 = var7; // L: 70
|
|
} else {
|
|
var7 = var5 * (var3 & 127) / 128; // L: 73
|
|
if (var7 < 2) { // L: 74
|
|
var7 = 2;
|
|
} else if (var7 > 126) { // L: 75
|
|
var7 = 126;
|
|
}
|
|
|
|
var4 = var7 + (var3 & 65408); // L: 76
|
|
}
|
|
|
|
return Rasterizer3D.Rasterizer3D_colorPalette[var4] | -16777216; // L: 79
|
|
}
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("w")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(IB)I",
|
|
garbageValue = "28"
|
|
)
|
|
static int method2233(int var0) {
|
|
Message var1 = (Message)Messages.Messages_hashTable.get((long)var0); // L: 66
|
|
if (var1 == null) { // L: 67
|
|
return -1;
|
|
} else {
|
|
return var1.nextDual == Messages.Messages_queue.sentinel ? -1 : ((Message)var1.nextDual).count; // L: 68 69
|
|
}
|
|
}
|
|
}
|