project: Rev 202

This commit is contained in:
Owain van Brakel
2021-12-14 18:20:58 +01:00
parent e974585ce8
commit 7c7bf0901a
406 changed files with 39725 additions and 39842 deletions

View File

@@ -72,24 +72,24 @@ public class GraphicsObject extends Renderable {
boolean isFinished;
GraphicsObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7) {
this.frame = 0; // L: 16
this.frameCycle = 0; // L: 17
this.isFinished = false; // L: 18
this.id = var1; // L: 21
this.plane = var2; // L: 22
this.x = var3; // L: 23
this.y = var4; // L: 24
this.height = var5; // L: 25
this.cycleStart = var7 + var6; // L: 26
int var8 = AccessFile.SpotAnimationDefinition_get(this.id).sequence; // L: 27
if (var8 != -1) { // L: 28
this.isFinished = false; // L: 29
this.sequenceDefinition = UserComparator5.SequenceDefinition_get(var8); // L: 30
this.frame = 0;
this.frameCycle = 0;
this.isFinished = false;
this.id = var1;
this.plane = var2;
this.x = var3;
this.y = var4;
this.height = var5;
this.cycleStart = var7 + var6;
int var8 = AccessFile.SpotAnimationDefinition_get(this.id).sequence;
if (var8 != -1) {
this.isFinished = false;
this.sequenceDefinition = UserComparator5.SequenceDefinition_get(var8);
} else {
this.isFinished = true; // L: 32
this.isFinished = true;
}
} // L: 33
}
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -98,20 +98,20 @@ public class GraphicsObject extends Renderable {
)
@Export("advance")
final void advance(int var1) {
if (!this.isFinished) { // L: 36
this.frameCycle += var1; // L: 37
if (!this.sequenceDefinition.method3690()) { // L: 38
if (!this.isFinished) {
this.frameCycle += var1;
if (!this.sequenceDefinition.method3690()) {
while (this.frameCycle > this.sequenceDefinition.frameLengths[this.frame]) {
this.frameCycle -= this.sequenceDefinition.frameLengths[this.frame];
++this.frame;
if (this.frame >= this.sequenceDefinition.frameIds.length) {
this.isFinished = true; // L: 43
this.isFinished = true;
break;
}
}
} else {
this.frame += var1;
if (this.frame >= this.sequenceDefinition.method3647()) { // L: 50
if (this.frame >= this.sequenceDefinition.method3647()) {
this.isFinished = true;
}
}
@@ -128,7 +128,7 @@ public class GraphicsObject extends Renderable {
protected final Model getModel() {
SpotAnimationDefinition var1 = AccessFile.SpotAnimationDefinition_get(this.id);
Model var2;
if (!this.isFinished) { // L: 57
if (!this.isFinished) {
var2 = var1.getModel(this.frame);
} else {
var2 = var1.getModel(-1);
@@ -144,34 +144,34 @@ public class GraphicsObject extends Renderable {
)
@Export("itemContainerSetItem")
static void itemContainerSetItem(int var0, int var1, int var2, int var3) {
ItemContainer var4 = (ItemContainer)ItemContainer.itemContainers.get((long)var0); // L: 39
if (var4 == null) { // L: 40
var4 = new ItemContainer(); // L: 41
ItemContainer.itemContainers.put(var4, (long)var0); // L: 42
ItemContainer var4 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
if (var4 == null) {
var4 = new ItemContainer();
ItemContainer.itemContainers.put(var4, (long)var0);
}
if (var4.ids.length <= var1) { // L: 44
int[] var5 = new int[var1 + 1]; // L: 45
int[] var6 = new int[var1 + 1]; // L: 46
if (var4.ids.length <= var1) {
int[] var5 = new int[var1 + 1];
int[] var6 = new int[var1 + 1];
int var7;
for (var7 = 0; var7 < var4.ids.length; ++var7) { // L: 47
var5[var7] = var4.ids[var7]; // L: 48
var6[var7] = var4.quantities[var7]; // L: 49
for (var7 = 0; var7 < var4.ids.length; ++var7) {
var5[var7] = var4.ids[var7];
var6[var7] = var4.quantities[var7];
}
for (var7 = var4.ids.length; var7 < var1; ++var7) { // L: 51
var5[var7] = -1; // L: 52
var6[var7] = 0; // L: 53
for (var7 = var4.ids.length; var7 < var1; ++var7) {
var5[var7] = -1;
var6[var7] = 0;
}
var4.ids = var5; // L: 55
var4.quantities = var6; // L: 56
var4.ids = var5;
var4.quantities = var6;
}
var4.ids[var1] = var2; // L: 58
var4.quantities[var1] = var3; // L: 59
} // L: 60
var4.ids[var1] = var2;
var4.quantities[var1] = var3;
}
@ObfuscatedName("j")
@ObfuscatedSignature(
@@ -179,11 +179,11 @@ public class GraphicsObject extends Renderable {
garbageValue = "-76"
)
public static void method1956() {
if (NetCache.NetCache_socket != null) { // L: 266
if (NetCache.NetCache_socket != null) {
NetCache.NetCache_socket.close();
}
} // L: 267
}
@ObfuscatedName("kl")
@ObfuscatedSignature(
@@ -191,10 +191,10 @@ public class GraphicsObject extends Renderable {
garbageValue = "54739776"
)
static final void method1955(int var0) {
if (class242.loadInterface(var0)) { // L: 12070
class328.drawModelComponents(MouseRecorder.Widget_interfaceComponents[var0], -1); // L: 12071
if (class242.loadInterface(var0)) {
class328.drawModelComponents(MouseRecorder.Widget_interfaceComponents[var0], -1);
}
} // L: 12072
}
public GraphicsObject() {
}