More refactoring (tm)
This commit is contained in:
@@ -469,7 +469,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
garbageValue = "559367680"
|
||||
)
|
||||
@Export("startThread")
|
||||
protected final void startThread(int var1, int var2, int var3) {
|
||||
protected final void startThread(int width, int height, int revision) {
|
||||
try {
|
||||
if (gameShell != null) {
|
||||
++field361;
|
||||
@@ -483,9 +483,9 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
}
|
||||
|
||||
gameShell = this;
|
||||
SoundCache.canvasWidth = var1;
|
||||
Huffman.canvasHeight = var2;
|
||||
RunException.revision = var3;
|
||||
SoundCache.canvasWidth = width;
|
||||
Huffman.canvasHeight = height;
|
||||
RunException.revision = revision;
|
||||
RunException.applet = this;
|
||||
if (taskHandler == null) {
|
||||
taskHandler = new TaskHandler();
|
||||
@@ -810,13 +810,13 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
garbageValue = "39"
|
||||
)
|
||||
@Export("error")
|
||||
protected void error(String var1) {
|
||||
protected void error(String type) {
|
||||
if (!this.hasErrored) {
|
||||
this.hasErrored = true;
|
||||
System.out.println("error_game_" + var1);
|
||||
System.out.println("error_game_" + type);
|
||||
|
||||
try {
|
||||
this.getAppletContext().showDocument(new URL(this.getCodeBase(), "error_game_" + var1 + ".ws"), "_self");
|
||||
this.getAppletContext().showDocument(new URL(this.getCodeBase(), "error_game_" + type + ".ws"), "_self");
|
||||
} catch (Exception var3) {
|
||||
}
|
||||
}
|
||||
@@ -1002,7 +1002,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
}
|
||||
|
||||
@ObfuscatedName("postDecode")
|
||||
public abstract void vmethod117();
|
||||
public abstract void init();
|
||||
|
||||
@ObfuscatedName("stop")
|
||||
public final void method118() {
|
||||
@@ -1034,23 +1034,23 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
garbageValue = "17"
|
||||
)
|
||||
@Export("updateGameState")
|
||||
static void updateGameState(int var0) {
|
||||
if (var0 != Client.gameState) {
|
||||
static void updateGameState(int gameState) {
|
||||
if (gameState != Client.gameState) {
|
||||
if (Client.gameState == 0) {
|
||||
TextureProvider.client.method113();
|
||||
}
|
||||
|
||||
if (var0 == 20 || var0 == 40 || var0 == 45) {
|
||||
if (gameState == 20 || gameState == 40 || gameState == 45) {
|
||||
Client.loginState = 0;
|
||||
Client.field168 = 0;
|
||||
Client.field169 = 0;
|
||||
Client.timer.method331(var0);
|
||||
if (var0 != 20) {
|
||||
Client.timer.method331(gameState);
|
||||
if (gameState != 20) {
|
||||
class15.method184(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (var0 != 20 && var0 != 40 && ClientParameter.field341 != null) {
|
||||
if (gameState != 20 && gameState != 40 && ClientParameter.field341 != null) {
|
||||
ClientParameter.field341.close();
|
||||
ClientParameter.field341 = null;
|
||||
}
|
||||
@@ -1063,10 +1063,10 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
Client.field180 = 1;
|
||||
}
|
||||
|
||||
if (var0 != 5 && var0 != 10) {
|
||||
if (var0 == 20) {
|
||||
if (gameState != 5 && gameState != 10) {
|
||||
if (gameState == 20) {
|
||||
class2.method27(class16.archive10, WorldMapSection3.archive8, true, Client.gameState == 11 ? 4 : 0);
|
||||
} else if (var0 == 11) {
|
||||
} else if (gameState == 11) {
|
||||
class2.method27(class16.archive10, WorldMapSection3.archive8, false, 4);
|
||||
} else {
|
||||
class80.method2015();
|
||||
@@ -1075,7 +1075,7 @@ public abstract class GameShell extends Applet implements Runnable, FocusListene
|
||||
class2.method27(class16.archive10, WorldMapSection3.archive8, true, 0);
|
||||
}
|
||||
|
||||
Client.gameState = var0;
|
||||
Client.gameState = gameState;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user