Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Source code recreated from a .class file by IntelliJ IDEA
- // (powered by Fernflower decompiler)
- //
- import com.nokia.mid.ui.FullCanvas;
- import java.io.ByteArrayInputStream;
- import java.io.ByteArrayOutputStream;
- import java.io.DataInputStream;
- import java.io.DataOutputStream;
- import java.io.InputStream;
- import java.util.Random;
- import javax.microedition.lcdui.Alert;
- import javax.microedition.lcdui.AlertType;
- import javax.microedition.lcdui.Graphics;
- import javax.microedition.lcdui.Image;
- import javax.microedition.media.Manager;
- import javax.microedition.media.Player;
- import javax.microedition.media.control.VolumeControl;
- import javax.microedition.rms.RecordStore;
- public final class a extends FullCanvas implements Runnable {
- private int g = 20;
- private int h = 48;
- private int i = 48;
- private int j = 24;
- private int k = 24;
- private int l = 12;
- private int m = 12;
- private int n = 6;
- private int o = 6;
- private int p = 5;
- private int q = 5;
- private int r = 4;
- public String[] a = null;
- public String b = null;
- private Player s = null;
- public byte c;
- private Bobby t;
- private int u;
- private int v;
- private int w;
- private int x;
- private String y = "EN";
- private Random z;
- public boolean d = false;
- public boolean e = false;
- public boolean f;
- private byte[] A = new byte[4];
- private boolean[] B = new boolean[4];
- private boolean C;
- private byte[] D = new byte[7];
- private boolean E;
- private boolean F;
- private boolean G;
- private byte H;
- private short I;
- private short J;
- private long K;
- private int L;
- private String[] M = new String[5];
- private boolean N;
- private boolean O;
- private boolean P;
- private boolean Q;
- private boolean R;
- private boolean S;
- private boolean T;
- private boolean U;
- private int[] V = new int[]{49, 49, 51, 51, 55, 55, 57, 57};
- private int W = 0;
- private boolean X = false;
- private boolean Y = false;
- private short[] Z = new short[5];
- private short[] aa = new short[5];
- private byte[] ab = new byte[5];
- private int ac;
- private byte ad;
- private String ae;
- private char[] af;
- private int ag;
- private int ah;
- private String ai;
- private String aj;
- private int ak;
- private int al;
- private int am;
- private int an;
- private int ao;
- private int ap;
- private int aq;
- private int ar;
- private int as;
- private int at;
- private int au;
- private int av;
- private int aw;
- private int ax;
- private int ay;
- private int az;
- private int aA;
- private int aB;
- private int aC;
- private int aD;
- private int aE;
- private int aF;
- private int aG;
- private int aH;
- private int aI;
- private int aJ;
- private int aK;
- private int aL;
- private int aM;
- private int aN;
- private int aO;
- private int aP;
- private int aQ;
- private int aR;
- private int aS;
- private int aT;
- private byte aU;
- private byte aV;
- private byte aW;
- private byte aX;
- private byte aY;
- private byte aZ;
- private boolean ba;
- private boolean bb;
- private boolean bc;
- private boolean bd;
- private boolean be;
- private boolean bf;
- private boolean bg;
- private boolean bh;
- private boolean bi;
- private boolean bj;
- private boolean bk;
- private boolean bl;
- private int bm;
- private int bn;
- private int bo;
- private static final byte[] bp = new byte[]{94, 95, -112, -111};
- private byte bq = 3;
- private final byte[] br = new byte[]{5, 10, 30, 20, 10, 25, 10};
- private byte bs;
- private int bt;
- private int bu;
- private int bv;
- private int bw;
- private byte bx;
- private boolean by;
- private int bz;
- private int bA;
- private int bB;
- private int bC;
- private int bD;
- private boolean bE;
- private int bF;
- private int bG;
- private int bH;
- private int bI;
- private int bJ;
- private int bK;
- private int bL;
- private int bM;
- private int bN;
- private int bO;
- private int bP;
- private int bQ;
- private int bR;
- private int bS;
- private int bT;
- private int bU;
- private int bV;
- private long bW;
- private long bX;
- private boolean bY;
- private int bZ;
- private int ca;
- private byte cb;
- private int cc;
- private int[] cd = new int[5];
- private int[] ce = new int[5];
- private Image cf;
- private Image cg;
- private Image ch;
- private Image ci;
- private Image cj;
- private Image ck;
- private Image cl;
- private Image cm;
- private Image cn;
- private Image[] co = new Image[10];
- private Image cp;
- private byte[][] cq;
- private byte[][] cr;
- private String cs;
- private String ct;
- private byte cu;
- private String[] cv = new String[4];
- private byte[] cw = new byte[4];
- private int cx;
- private int cy;
- private int cz;
- private byte[] cA;
- private byte[] cB;
- private byte[] cC;
- private boolean[] cD;
- private short[] cE;
- private short[] cF;
- private short cG;
- private short cH;
- private short cI;
- private short cJ;
- private short cK;
- private short cL;
- private short cM;
- private short cN;
- private short cO;
- private short cP;
- private boolean cQ;
- private boolean cR;
- private boolean cS;
- private boolean cT;
- private boolean cU;
- private boolean cV;
- private boolean cW;
- private boolean cX;
- private boolean cY;
- private boolean cZ;
- private boolean da;
- private boolean db;
- private boolean dc;
- private byte[] dd;
- private byte[] de;
- private byte[] df;
- private byte[] dg;
- private byte[] dh = new byte[5];
- private byte[] di = new byte[5];
- private byte[] dj = new byte[5];
- private int dk;
- private int dl;
- private int dm;
- private int dn;
- private byte do;
- private byte dp;
- private byte dq;
- private byte dr;
- private int ds;
- private int dt;
- private int du;
- private int dv;
- private int dw;
- private int dx;
- private int dy;
- private int dz;
- private int dA;
- private int dB;
- private boolean dC;
- private byte[][] dD;
- private byte[][] dE;
- private Image dF;
- private Graphics dG;
- private Image dH;
- private Image dI = null;
- private int dJ;
- private boolean dK;
- private int dL;
- private byte dM;
- private byte dN;
- private final short[] dO = new short[]{0, 0, 1, 3, 5, 8, 12, 17, 23, 31, 41, 53, 70, 91, 118, 153, 198, 256, 256};
- private boolean dP = false;
- private boolean dQ = false;
- private boolean dR = false;
- private boolean dS = false;
- private boolean dT = false;
- private String[] dU;
- private short[] dV;
- private byte dW;
- private byte dX;
- private byte dY;
- private byte dZ;
- private byte ea;
- private byte eb;
- private byte ec;
- private byte ed;
- private String ee;
- private int ef;
- private int eg;
- private int eh;
- private int ei;
- private String ej;
- private int ek;
- private int el;
- private int em;
- private int en;
- private int eo;
- private int ep;
- private int eq;
- private int er;
- private int es;
- private int et;
- private boolean eu;
- private byte ev;
- private String ew;
- private byte ex = 0;
- private short[] ey = new short[]{59, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80};
- private byte[][] ez = new byte[][]{new byte[0], new byte[0], {-54, -52}, {-57, -56}, {-106}, {-36, -96, -35}, {-72, -74, -94}, {-19}, {-61, -58, -65, -62}, {-80, -81}, {-71, -69, -66, -67, -92}, {89, 87, -90}, {-20}, {-13}, {-12, -11}, {-29, -24, -40, -39}, {-79, -78, -76, -77}, {-44, -43, -42}, {-32, -30, -14, -15}, {-48, -45, -87, -86}, {-49, -33}, {-97, 124}, {-10}};
- private byte eA;
- public final void a(String var1) {
- boolean var2 = false;
- DataInputStream var3 = null;
- this.a = null;
- try {
- var3 = new DataInputStream(this.getClass().getResourceAsStream(var1));
- short var16 = var3.readShort();
- this.a = new String[var16];
- for(int var4 = 0; var4 < var16; ++var4) {
- this.a[var4] = var3.readUTF();
- }
- } catch (Exception var14) {
- this.c();
- } finally {
- if(var3 != null) {
- try {
- var3.close();
- } catch (Exception var13) {
- ;
- }
- }
- }
- }
- public final void a(String var1, int var2, boolean var3) {
- if(var3) {
- if(this.b != null && this.b.compareTo(var1) == 0) {
- return;
- }
- } else {
- this.b = null;
- }
- this.a();
- try {
- InputStream var4 = this.getClass().getResourceAsStream(var1);
- this.s = Manager.createPlayer(var4, "audio/midi");
- this.s.setLoopCount(var3?-1:1);
- this.s.realize();
- try {
- VolumeControl var5 = (VolumeControl)this.s.getControl("VolumeControl");
- if(var5 != null) {
- var5.setLevel(var2 > 0?var2 * 25 - (5 - var2) * 5:0);
- }
- } catch (Exception var7) {
- ;
- }
- this.s.prefetch();
- this.s.start();
- this.b = var1;
- try {
- Thread.sleep(250L);
- } catch (Exception var6) {
- ;
- }
- } catch (Exception var8) {
- ;
- }
- }
- public final void a() {
- if(this.s != null) {
- try {
- this.s.stop();
- this.s.deallocate();
- this.s.close();
- try {
- Thread.sleep(250L);
- } catch (Throwable var2) {
- ;
- }
- } catch (Throwable var3) {
- ;
- }
- this.s = null;
- }
- this.b = null;
- }
- public a(Bobby var1) {
- this.t = var1;
- this.a(this.y + ".dat");
- this.z = new Random(System.currentTimeMillis());
- this.c = 1;
- this.u = this.getWidth();
- this.v = this.getHeight();
- this.w = this.v - 2 - 16 - 6;
- this.b(this.u, this.v, true);
- this.cf = this.a(this.cf, "/font.png");
- this.dH = this.a(this.dH, "/logo.png");
- this.bZ = 0;
- this.cb = -1;
- this.a(true, 0);
- this.x = 10;
- }
- private final void c() {
- Alert var1 = new Alert("Error", this.a[51], (Image)null, AlertType.ERROR);
- var1.setTimeout(-2);
- this.t.a.setCurrent(var1, this);
- while(!this.R) {
- try {
- Thread.sleep(50L);
- } catch (Exception var3) {
- ;
- }
- }
- this.t.destroyApp(true);
- }
- public void hideNotify() {
- if(this.d) {
- this.d = false;
- if(this.c == 1 && this.x != 16) {
- this.a();
- this.c = 0;
- }
- }
- if(!this.dQ) {
- this.U = false;
- this.dQ = true;
- this.k();
- }
- }
- public void showNotify() {
- if(!this.d && this.dU != null) {
- for(int var1 = 0; var1 < this.dY; ++var1) {
- if(this.dV[var1] == 11) {
- this.dU[var1] = this.a[4] + this.a[this.c == 1?2:3];
- }
- }
- }
- this.d = true;
- }
- public void run() {
- boolean var5 = true;
- while(!this.e) {
- long var1 = System.currentTimeMillis();
- var5 |= this.b();
- if(this.d && var5) {
- var5 = false;
- this.repaint();
- this.serviceRepaints();
- }
- var5 |= this.b();
- long var3 = System.currentTimeMillis() - var1 + 10L;
- if(var3 < 62L) {
- try {
- Thread.sleep(62L - var3);
- } catch (Exception var7) {
- ;
- }
- }
- }
- if(this.c == 1) {
- this.a();
- }
- this.t.notifyDestroyed();
- }
- private final void d() {
- this.dZ = (byte)((this.w - 26) / 31);
- this.C = false;
- this.e();
- String var1 = this.y;
- this.f();
- if(var1.compareTo(this.y) != 0) {
- this.a(this.y + ".dat");
- }
- this.aa();
- this.i();
- this.cg = this.a(this.cg, "/numbers.png");
- this.ch = this.a(this.ch, "/arrows.png");
- this.cj = this.a(this.cj, "/misc.png");
- this.ck = this.a(this.ck, "/ts.png");
- this.cl = this.a(this.cl, "/mow.png");
- this.ac();
- if(!this.f) {
- this.d((byte)2);
- } else {
- this.S = this.T = this.R = false;
- this.x = 11;
- this.c((byte)2, (byte)-1);
- }
- }
- private final void e() {
- this.f = false;
- try {
- RecordStore var1 = null;
- int var2 = -1;
- try {
- var1 = RecordStore.openRecordStore("BC5Data", true);
- var2 = var1.getNumRecords();
- } catch (Exception var5) {
- ;
- }
- if(var2 != 1) {
- this.f = true;
- if(var2 != 0) {
- if(var1 != null) {
- var1.closeRecordStore();
- }
- RecordStore.deleteRecordStore("BC5Data");
- var1 = RecordStore.openRecordStore("BC5Data", true);
- }
- int var3;
- for(var3 = 0; var3 < 4; ++var3) {
- this.A[var3] = 0;
- this.B[var3] = false;
- }
- for(var3 = 0; var3 < this.D.length; ++var3) {
- this.D[var3] = 0;
- }
- this.E = false;
- this.F = false;
- this.H = 0;
- this.I = 0;
- this.J = 0;
- this.K = 0L;
- this.L = this.z.nextInt();
- for(var3 = 0; var3 < this.M.length; ++var3) {
- this.M[var3] = "";
- }
- this.G = false;
- byte[] var4 = this.h();
- var1.addRecord(var4, 0, var4.length);
- }
- var1.closeRecordStore();
- } catch (Exception var6) {
- this.c();
- }
- }
- private final void f() {
- ByteArrayInputStream var1 = null;
- DataInputStream var2 = null;
- try {
- var1 = new ByteArrayInputStream(this.a((String)"BC5Data", 1));
- var2 = new DataInputStream(var1);
- this.y = var2.readUTF();
- this.bq = var2.readByte();
- int var3;
- for(var3 = 0; var3 < 4; ++var3) {
- this.A[var3] = var2.readByte();
- this.B[var3] = var2.readBoolean();
- }
- for(var3 = 0; var3 < this.D.length; ++var3) {
- this.D[var3] = var2.readByte();
- }
- this.E = var2.readBoolean();
- this.F = var2.readBoolean();
- this.H = var2.readByte();
- this.I = var2.readShort();
- this.J = var2.readShort();
- this.K = var2.readLong();
- this.L = var2.readInt();
- for(var3 = 0; var3 < this.M.length; ++var3) {
- this.M[var3] = var2.readUTF();
- }
- this.G = var2.readBoolean();
- } catch (Exception var17) {
- this.c();
- } finally {
- if(var2 != null) {
- try {
- var2.close();
- } catch (Exception var16) {
- ;
- }
- var2 = null;
- }
- if(var1 != null) {
- try {
- var1.close();
- } catch (Exception var15) {
- ;
- }
- var1 = null;
- }
- }
- }
- private final void g() {
- this.a("BC5Data", 1, this.h());
- }
- private final byte[] h() {
- byte[] var1 = null;
- ByteArrayOutputStream var2 = null;
- DataOutputStream var3 = null;
- try {
- var2 = new ByteArrayOutputStream();
- var3 = new DataOutputStream(var2);
- var3.writeUTF(this.y);
- var3.writeByte(this.bq);
- int var4;
- for(var4 = 0; var4 < 4; ++var4) {
- var3.writeByte(this.A[var4]);
- var3.writeBoolean(this.B[var4]);
- }
- for(var4 = 0; var4 < this.D.length; ++var4) {
- var3.writeByte(this.D[var4]);
- }
- var3.writeBoolean(this.E);
- var3.writeBoolean(this.F);
- var3.writeByte(this.H);
- var3.writeShort(this.I);
- var3.writeShort(this.J);
- var3.writeLong(this.K);
- var3.writeInt(this.L);
- for(var4 = 0; var4 < this.M.length; ++var4) {
- var3.writeUTF(this.M[var4]);
- }
- var3.writeBoolean(this.G);
- var1 = var2.toByteArray();
- } catch (Exception var18) {
- this.c();
- } finally {
- if(var3 != null) {
- try {
- var3.close();
- } catch (Exception var17) {
- ;
- }
- var3 = null;
- }
- if(var2 != null) {
- try {
- var2.close();
- } catch (Exception var16) {
- ;
- }
- var2 = null;
- }
- }
- return var1;
- }
- private final byte[] a(String var1, int var2) {
- byte[] var3 = null;
- try {
- RecordStore var4 = RecordStore.openRecordStore(var1, false);
- var3 = var4.getRecord(var2);
- var4.closeRecordStore();
- } catch (Exception var7) {
- try {
- RecordStore.deleteRecordStore(var1);
- } catch (Exception var6) {
- ;
- }
- this.c();
- }
- return var3;
- }
- private final void a(String var1, int var2, byte[] var3) {
- try {
- RecordStore var4 = RecordStore.openRecordStore(var1, false);
- var4.setRecord(var2, var3, 0, var3.length);
- var4.closeRecordStore();
- } catch (Exception var7) {
- try {
- RecordStore.deleteRecordStore(var1);
- } catch (Exception var6) {
- ;
- }
- this.c();
- }
- }
- private final void i() {
- this.x = 6;
- this.repaint();
- this.serviceRepaints();
- }
- public final void keyPressed(int var1) {
- if(var1 != 0) {
- if(!this.X) {
- if(var1 == this.V[this.W]) {
- ++this.W;
- if(this.W >= this.V.length) {
- this.W = 0;
- this.X = true;
- }
- } else {
- this.W = 0;
- }
- }
- if(this.x == 1 && this.C) {
- if(var1 == 42) {
- this.Y = true;
- } else if(var1 == 35) {
- if(this.Y) {
- this.Y = false;
- this.I = (short)(this.I + 5);
- }
- } else {
- this.Y = false;
- }
- }
- this.U = true;
- if(var1 == -6) {
- this.S = true;
- } else if(var1 == -7) {
- this.T = true;
- } else {
- if(var1 == 50) {
- this.N = true;
- } else if(var1 == 56) {
- this.O = true;
- } else if(var1 == 52) {
- this.P = true;
- } else if(var1 == 54) {
- this.Q = true;
- } else if(var1 == 53) {
- this.R = true;
- } else if(var1 == -1) {
- this.N = true;
- } else if(var1 == -2) {
- this.O = true;
- } else if(var1 == -3) {
- this.P = true;
- } else if(var1 == -4) {
- this.Q = true;
- } else if(var1 == -5) {
- this.R = true;
- }
- }
- }
- }
- public final void keyReleased(int var1) {
- if(var1 != 0) {
- if(var1 == -6) {
- this.S = false;
- } else if(var1 == -7) {
- this.T = false;
- } else {
- if(var1 == 50) {
- this.N = false;
- } else if(var1 == 56) {
- this.O = false;
- } else if(var1 == 52) {
- this.P = false;
- } else if(var1 == 54) {
- this.Q = false;
- } else if(var1 == 53) {
- this.R = false;
- } else if(var1 == -1) {
- this.N = false;
- } else if(var1 == -2) {
- this.O = false;
- } else if(var1 == -3) {
- this.P = false;
- } else if(var1 == -4) {
- this.Q = false;
- } else if(var1 == -5) {
- this.R = false;
- }
- }
- }
- }
- private final void a(Graphics var1) {
- this.d(var1, this.bF, this.bG);
- this.c(var1, this.bF, this.bG);
- if(this.bn != -1 && this.bm % 8 >= 4) {
- this.a(var1, true, -8, this.bn - this.bF, this.bo - this.bG);
- }
- this.b(var1, this.bF, this.bG);
- int var2;
- if(this.cW) {
- for(var2 = 0; var2 < 3; ++var2) {
- this.a(var1, false, (byte)(52 + this.bC), this.cG * this.h - this.bF, this.cH * this.i - this.k - this.i * var2 - this.bG);
- }
- }
- if(this.cX) {
- for(var2 = 0; var2 < 3; ++var2) {
- this.a(var1, false, (byte)(52 + this.bC), this.cI * this.h - this.bF, this.cJ * this.i + this.k + this.i * var2 - this.bG);
- }
- }
- if(this.cY) {
- for(var2 = 0; var2 < 3; ++var2) {
- this.a(var1, false, (byte)(55 + this.bC), this.cK * this.h - this.j - this.h * var2 - this.bF, this.cL * this.i - this.bG);
- }
- }
- if(this.cZ) {
- for(var2 = 0; var2 < 3; ++var2) {
- this.a(var1, false, (byte)(55 + this.bC), this.cM * this.h + this.j + this.h * var2 - this.bF, this.cN * this.i - this.bG);
- }
- }
- this.a(var1, this.bF, this.bG);
- if(this.do > 0) {
- this.b(var1, this.ci, this.bs < 4?282:310, 0, 28, 28, this.dl - 14 - this.bF, this.dm - 14 - this.bG);
- }
- if(this.ax > 0 && this.ay >= 4) {
- short var4;
- byte var5;
- byte var6;
- switch(this.aV) {
- case 0:
- var4 = 82;
- var5 = 39;
- var6 = 37;
- break;
- case 1:
- var4 = 121;
- var5 = 22;
- var6 = 35;
- break;
- case 2:
- var4 = 143;
- var5 = 36;
- var6 = 36;
- break;
- case 3:
- var4 = 179;
- var5 = 37;
- var6 = 38;
- break;
- default:
- var4 = 247;
- var5 = 35;
- var6 = 36;
- }
- var2 = this.am + (this.h - var5 >> 1);
- int var3 = this.an - 1 + -36 - var6;
- if(var3 - this.bG < 0) {
- var3 += var6 + 72 + 2;
- }
- this.b(var1, this.ci, var4, 0, var5, var6, var2 - this.bF, var3 - this.bG);
- }
- if(this.cS) {
- for(var2 = 0; var2 < 5; ++var2) {
- this.b(var1, this.ci, 338, 0, 12, 8, this.cd[var2] >> this.r, this.ce[var2] >> this.r);
- }
- } else {
- this.b(var1, this.cm, 0, this.bx / 3 * 24, 24, 24, (this.bt >> this.r) - this.bF, (this.bu >> this.r) - this.bG);
- }
- this.b(var1);
- if(this.aX != -1) {
- this.b(var1, this.cn, this.aX * 48, 0, 48, 48, this.u - 48 >> 1, this.v - 48 >> 1);
- }
- if(this.cb > 0) {
- this.c(var1);
- }
- if(!this.dS) {
- if(this.dQ) {
- this.a(var1, this.a[37], 1, 0);
- } else if(this.ec > 0) {
- this.a(var1, this.ee, this.ed, 0);
- } else if(this.at == 5) {
- this.a(var1, this.a[this.aX == -1?53:54], (byte)(this.aX == -1?0:1), 0);
- }
- }
- }
- private final void b(Graphics var1) {
- byte var2 = 2;
- byte var3 = 2;
- int var10;
- if(this.bS != 0) {
- long var4;
- if(!this.bY) {
- var4 = System.currentTimeMillis() - this.bX + this.bW;
- } else {
- var4 = this.bW;
- }
- if(this.cR) {
- if(this.db) {
- var4 = 60000L - var4;
- if(var4 < 0L) {
- var4 = 0L;
- }
- } else {
- var4 = 60000L;
- }
- }
- int var8 = (int)var4 / '\uea60';
- long var6 = var4 % 60000L;
- this.a(var1, var2, var3, var8, 2);
- var10 = var2 + 32;
- int var9 = (int)var6 / 1000;
- this.a(var1, var10, var3, var9, 2);
- if(this.bY || var9 % 2 == 0) {
- var10 -= 6;
- var1.setClip(var10, var3, 5, 13);
- var1.drawImage(this.cg, var10 - 120, var3, 20);
- }
- var10 = this.u - (this.cQ?40:31) - 2;
- var1.setClip(var10, var3, this.cQ?40:31, this.cQ?38:38);
- var1.drawImage(this.ci, var10 - (this.cQ?42:216), var3, 20);
- var10 -= 28;
- this.a(var1, var10, var3 + ((this.cQ?40:31) - 13 >> 1), this.cy, 2);
- }
- if(this.dR) {
- var10 = this.u - 42 >> 1;
- var1.setClip(var10, var3, 42, 38);
- var1.drawImage(this.ci, var10 - 0, var3, 20);
- }
- if(this.bS != 0) {
- var10 = this.u;
- int var11 = var3 + (this.cQ?38:38) + 2;
- if(this.cT) {
- var10 -= 41;
- var1.setClip(var10, var11, 39, 37);
- var1.drawImage(this.ci, var10 - 82, var11, 20);
- }
- if(this.cU) {
- var10 -= 38;
- var1.setClip(var10, var11, 36, 36);
- var1.drawImage(this.ci, var10 - 143, var11, 20);
- }
- if(this.cV) {
- var10 -= 39;
- var1.setClip(var10, var11, 37, 38);
- var1.drawImage(this.ci, var10 - 179, var11, 20);
- }
- if(this.cz > 0) {
- var10 -= 37;
- var1.setClip(var10, var11, 35, 36);
- var1.drawImage(this.ci, var10 - 247, var11, 20);
- }
- if(this.da || this.D[2] > 0) {
- var10 -= 24;
- var1.setClip(var10, var11, 22, 35);
- var1.drawImage(this.ci, var10 - 121, var11, 20);
- }
- }
- }
- private final void a(Graphics var1, Image var2, int var3, int var4, int var5, int var6, int var7, int var8) {
- this.b(var1, var2, var3, var4, var5, var6, var7, var8);
- if(var5 + var7 < this.u) {
- this.b(var1, var2, var3, var4, var5, var6, 384 + var7, var8);
- }
- }
- public final void paint(Graphics var1) {
- try {
- label104:
- switch(this.x) {
- case 1:
- this.a(var1);
- break;
- case 2:
- this.a(var1);
- this.a(var1, 22935, 10370, true, false, true, true);
- this.a(var1, this.ai, this.aj, true);
- return;
- case 3:
- default:
- break;
- case 4:
- this.d(var1, this.bF, this.bG);
- this.c(var1, 0, 0);
- this.a((Graphics)var1, 0, (int)0);
- var1.setClip(0, 0, this.u, this.v);
- var1.drawImage(this.dH, this.u >> 1, this.w - this.dH.getHeight() - this.i - 72 >> 1, 17);
- if(!this.dS && this.dK) {
- this.a(var1, this.a[81], 3, this.v - (this.g + 10) - 5);
- }
- if(this.cb > 0) {
- this.c(var1);
- }
- break;
- case 5:
- this.a(var1, 22935, 10370, true, true, true, true);
- this.a(var1, this.ev == 0?this.a[31]:null, this.ev != 0?this.a[29]:null, true);
- break;
- case 6:
- var1.setClip(0, 0, this.u, this.v);
- var1.setColor(0);
- var1.fillRect(0, 0, this.u, this.v);
- this.a(var1, this.a[38], 0, 0);
- return;
- case 7:
- if(this.cb > 0) {
- this.a(var1);
- } else {
- var1.setColor(0);
- var1.fillRect(0, 0, this.u, this.v);
- }
- if(this.ej != null) {
- this.d(var1);
- this.a(var1, this.a[31], (String)null, true);
- }
- break;
- case 8:
- this.e(var1);
- break;
- case 9:
- this.a(var1, 22935, 10370, true, true, true, true);
- switch(this.eA) {
- case 0:
- case 1:
- case 2:
- this.a(var1, this.a[32], this.a[33], true);
- break label104;
- default:
- this.a(var1, this.a[30], (String)null, true);
- break label104;
- }
- case 10:
- var1.setColor(16777215);
- var1.fillRect(0, 0, this.u, this.v);
- this.b(var1, this.dH, 0, this.bZ * 100, 176, 100, (this.u - 176 >> 1) + (this.dM == 1?-this.e(this.u):this.e(this.u)), this.v - 100 >> 1);
- break;
- case 11:
- var1.setColor(0);
- var1.fillRect(0, 0, this.u, this.v);
- break;
- case 12:
- var1.setClip(0, 0, this.u, this.v);
- var1.setColor(1259130);
- var1.fillRect(0, 0, this.u, this.v);
- this.b(var1, this.dI, 0, 0, 384, 96, 0, 0);
- this.a(var1, this.dI, 0, 96, 384, 37, -(this.ag >> 4), 59);
- this.b(var1, this.dI, 0, 153, 384, 54, 0, 34);
- this.a(var1, this.dI, 0, 133, 384, 20, -(this.ah >> 4), 76);
- if(this.cb > 0) {
- this.c(var1);
- }
- if(this.dY > 0) {
- this.a(var1, true);
- } else {
- this.a(var1, 22935, 10370, false, false, true, true);
- this.a(var1, (String)null, this.a[29], false);
- }
- return;
- case 13:
- this.d(var1, this.bF, this.bG);
- this.c(var1, 0, 0);
- var1.setClip(0, 0, this.u, this.v);
- var1.drawImage(this.dH, this.u >> 1, this.v, 33);
- int var2 = this.u - this.h - ((this.ae.length() - 1) * 12 + 10) >> 1;
- int var3 = this.i >> 1;
- this.a(var1, true, -10, var2, var3);
- this.a(this.ae, var1, var2 + this.h, var3 + (this.i - 16 >> 1), false);
- this.a(var1, 22935, 10370, false, false, false, false);
- if(this.cb > 0) {
- this.c(var1);
- }
- return;
- case 14:
- this.d(var1, this.bF, this.bG);
- this.c(var1, 0, 0);
- if(this.ao == -1) {
- this.a((Graphics)var1, 0, (int)0);
- this.a(var1, 22935, 10370, false, false, false, true);
- } else {
- this.a(var1, true, -10, this.ao, this.ap);
- this.a((Graphics)var1, 0, (int)0);
- }
- if(this.cb > 0) {
- this.c(var1);
- }
- return;
- case 15:
- var1.setClip(0, 0, this.u, this.v);
- var1.setColor(1259130);
- var1.fillRect(0, 0, this.u, this.v);
- this.a(var1, 22935, 10370, false, false, true, true);
- this.a(var1, true, -10, this.u - this.h >> 1, this.i >> 1);
- if(this.cb > 0) {
- this.c(var1);
- }
- this.a(var1, this.a[31], (String)null, false);
- return;
- case 16:
- this.a(var1, 22935, 10370, true, true, true, true);
- this.a(var1, this.ai, this.aj, true);
- return;
- }
- if(this.dS) {
- this.a(var1, true);
- }
- if(this.dT && this.cb == 0) {
- this.b(var1, this.ch, 0, 9, 17, 9, 2, this.v - 9 - 2);
- }
- } catch (Throwable var4) {
- ;
- }
- }
- private final void a(Graphics var1, boolean var2, byte var3, int var4, int var5) {
- int var9 = var2?4:2;
- int var6 = (var3 & 255) >> var9;
- int var8 = var6 * this.i;
- int var7 = ((var3 & 255) - (var6 << var9)) * this.h;
- this.b(var1, var2?this.ck:this.cp, var7, var8, this.h, this.i, var4, var5);
- }
- private final void c(Graphics var1) {
- int var3 = this.bZ;
- int var4 = this.bZ;
- int var6 = (this.v + this.i - 1) / this.i;
- int var8 = (this.u + this.h - 1) / this.h;
- var1.setClip(0, 0, this.u, this.v);
- var1.setColor(0);
- int var2;
- int var5;
- int var7;
- switch(this.cb) {
- case 1:
- var5 = (var6 - 1) * this.i;
- var7 = 0;
- for(var2 = 0; var2 < var8; ++var2) {
- var1.fillRect(var7, 0, this.h - var4, this.v);
- var4 -= 3;
- if(var4 < 0) {
- var4 = 0;
- }
- var7 += this.h;
- }
- for(var2 = 0; var2 < var6; ++var2) {
- var1.fillRect(0, var5, this.u, this.i - var3);
- var3 -= 3;
- if(var3 < 0) {
- var3 = 0;
- }
- var5 -= this.i;
- }
- if(var3 >= this.i && var4 >= this.h) {
- this.cb = 0;
- }
- break;
- case 2:
- var5 = 0;
- var7 = (var8 - 1) * this.h;
- for(var2 = 0; var2 < var8; ++var2) {
- var1.fillRect(var7, 0, var4, this.v);
- var4 -= 3;
- if(var4 < 0) {
- var4 = 0;
- }
- var7 -= this.h;
- }
- for(var2 = 0; var2 < var6; ++var2) {
- var1.fillRect(0, var5, this.u, var3);
- var3 -= 3;
- if(var3 < 0) {
- var3 = 0;
- }
- var5 += this.i;
- }
- if(var3 >= this.i && var4 >= this.h) {
- this.cb = 0;
- }
- }
- }
- private final void j() {
- this.bZ += 3;
- }
- private final void a(Graphics var1, int var2, int var3) {
- int var4;
- byte var6;
- byte var7;
- byte var9;
- boolean var10;
- int var11;
- if(this.bf) {
- var10 = true;
- var11 = 0;
- byte var8;
- switch(this.at) {
- case 0:
- var6 = 60;
- var8 = -6;
- var4 = 0;
- var11 = this.h;
- break;
- case 1:
- var6 = 60;
- var8 = -6;
- var4 = var6;
- var11 = -this.h;
- break;
- case 2:
- var6 = 48;
- var8 = 0;
- var4 = 120;
- var10 = false;
- break;
- default:
- var6 = 48;
- var8 = 0;
- var4 = 120 + var6;
- }
- var7 = 83;
- var9 = -48;
- if((this.aK > 0 || this.bh) && var10) {
- this.a(var1, var11, var2, var3);
- }
- this.b(var1, this.co[7], var4, this.as * var7, var6, var7, this.am + var8 - var2, this.an + var9 - var3);
- if((this.aK > 0 || this.bh) && !var10) {
- this.a(var1, var11, var2, var3);
- }
- } else {
- short var12;
- if(this.bj) {
- switch(this.at) {
- case 0:
- var12 = 0;
- break;
- case 1:
- var12 = 120;
- break;
- case 2:
- var12 = 240;
- break;
- default:
- var12 = 360;
- }
- this.b(var1, this.co[9], var12, 0, 120, 72, this.am + -36 - var2, this.an + -36 - this.aT - var3);
- } else if(this.aZ > 0) {
- switch(this.at) {
- case 0:
- var12 = 0;
- break;
- case 1:
- var12 = 72;
- break;
- case 2:
- var12 = 144;
- break;
- default:
- var12 = 216;
- }
- this.b(var1, this.co[8], var12, this.as / 3 * 72, 72, 72, this.am + -12 - var2, this.an + -36 - this.aT - var3);
- } else {
- var10 = false;
- var11 = 0;
- byte var13;
- if(this.at == 5) {
- var6 = 48;
- var7 = 72;
- var13 = 0;
- var9 = -36;
- } else {
- var6 = 48;
- var7 = 72;
- var13 = 0;
- var9 = -36;
- if(this.aK > 0) {
- switch(!this.bg?this.at:2) {
- case 0:
- var11 = this.h - this.l;
- break;
- case 1:
- var11 = -this.h + this.l;
- case 2:
- default:
- break;
- case 3:
- var10 = true;
- }
- }
- }
- var4 = this.am + var13;
- int var5 = this.an + var9 - this.aT;
- if(this.aK > 0 && var10) {
- this.a(var1, var11, var2, var3);
- }
- this.b(var1, this.co[!this.bg?this.at:2], this.as * var6, 0, var6, var7, var4 - var2, var5 - var3);
- if(this.aK > 0 && !var10) {
- this.a(var1, var11, var2, var3);
- }
- }
- }
- }
- private final void a(Graphics var1, int var2, int var3, int var4) {
- this.b(var1, this.cl, this.aA / 3 * this.h, this.bh?0:this.i, this.h, this.i, this.am + var2 - var3, this.an - this.m - var4);
- }
- private final void b(Graphics var1, int var2, int var3) {
- for(int var10 = 0; var10 < this.cx; ++var10) {
- int var9 = this.cA[var10] & 255;
- int var8 = var9 >> 4;
- int var7 = var8 * this.i;
- int var6 = (var9 - (var8 << 4)) * this.h;
- int var4 = this.cE[var10] - var2;
- int var5 = this.cF[var10] - var3;
- this.b(var1, this.ck, var6, var7, this.h, this.i, var4, var5);
- }
- }
- private final void b(Graphics var1, Image var2, int var3, int var4, int var5, int var6, int var7, int var8) {
- var1.setClip(var7, var8, var5, var6);
- var1.drawImage(var2, var7 - var3, var8 - var4, 20);
- }
- private final void a(byte var1, byte var2, int var3, int var4) {
- this.dG.setClip(var3, var4, this.h, this.i);
- this.a(var1, var3, var4);
- if(var1 != -1 && var1 != -57) {
- this.a(var2, var3, var4);
- }
- }
- private final void a(byte var1, int var2, int var3) {
- boolean var9 = false;
- int var4;
- if(this.bB != 0 && var1 == -106 && this.cy == 0) {
- var4 = 0 + this.bB - 1;
- } else if(this.bB != 0 && var1 == -8 && this.bE) {
- var4 = 15 + this.bB - 1;
- } else if(this.bA != 0 && var1 == -12) {
- var4 = 26 + this.bA - 1;
- } else if(this.bz != 0 && var1 == 86) {
- var4 = 39 + this.bz - 1;
- } else {
- byte var10;
- if(this.bC != 0 && (var1 == 88 || var1 == 87 || var1 == 90 || var1 == 89 || var1 == 91 || var1 == 92 || var1 == 93)) {
- switch(var1) {
- case 87:
- var10 = 33;
- break;
- case 88:
- var10 = 31;
- break;
- case 89:
- var10 = 37;
- break;
- case 90:
- var10 = 35;
- break;
- case 91:
- var10 = 46;
- break;
- case 92:
- var10 = 48;
- break;
- default:
- var10 = 50;
- }
- var4 = var10 + (this.bC - 1);
- } else if(this.bB != 0 && (var1 == -75 || var1 == -74 || var1 == -73 || var1 == -72)) {
- switch(var1) {
- case -75:
- var10 = 3;
- break;
- case -74:
- var10 = 6;
- break;
- case -73:
- var10 = 9;
- break;
- default:
- var10 = 12;
- }
- var4 = var10 + (this.bB - 1);
- } else if(this.cW && this.bC != 0 && var1 == -48) {
- var4 = 18 + this.bC - 1;
- } else if(this.cX && this.bC != 0 && var1 == -47) {
- var4 = 20 + this.bC - 1;
- } else if(this.cY && this.bC != 0 && var1 == -46) {
- var4 = 22 + this.bC - 1;
- } else if(this.cZ && this.bC != 0 && var1 == -45) {
- var4 = 24 + this.bC - 1;
- } else {
- var9 = true;
- var4 = var1 & 255;
- }
- }
- int var8 = var9?4:2;
- int var5 = var4 >> var8;
- int var7 = var5 * this.i;
- int var6 = (var4 - (var5 << var8)) * this.h;
- this.dG.drawImage(var9?this.ck:this.cp, var2 - var6, var3 - var7, 20);
- }
- private final void k() {
- this.bW += System.currentTimeMillis() - this.bX;
- this.bY = true;
- }
- private final void l() {
- this.bX = System.currentTimeMillis();
- this.bY = false;
- }
- public final boolean b() {
- try {
- if(this.cb > 0) {
- this.j();
- }
- if(this.dS) {
- return this.ag() || this.cb > 0;
- }
- switch(this.x) {
- case 0:
- this.d();
- return true;
- case 1:
- if(this.dT && this.S && this.cb == 0) {
- this.S = false;
- this.c((byte)1, (byte)-1);
- return true;
- }
- if(this.dQ) {
- if(this.U) {
- this.S = false;
- this.T = false;
- this.R = false;
- this.P = false;
- this.Q = false;
- this.N = false;
- this.O = false;
- this.dQ = false;
- this.l();
- return true;
- }
- return this.cb > 0;
- }
- if(this.ec > 0) {
- --this.ec;
- }
- if(!this.ba && this.aQ == 0 && this.at != 5 && this.R) {
- this.R = false;
- this.dR = !this.dR;
- if(!this.dR) {
- this.T();
- }
- }
- if(this.ax > 0) {
- this.ay = (this.ay + 1) % 8;
- if(this.ay == 0) {
- --this.ax;
- }
- }
- if(this.E()) {
- if(this.x != 1) {
- return true;
- }
- if(this.do > 0) {
- this.N();
- }
- this.M();
- this.P();
- this.S();
- if(this.cS) {
- this.Q();
- } else {
- this.R();
- }
- this.D();
- if(this.E) {
- this.C();
- } else {
- this.bn = -1;
- }
- if(this.dR) {
- if(this.P) {
- this.bL -= 24;
- } else if(this.Q) {
- this.bL += 24;
- } else if(this.N) {
- this.bM -= 24;
- } else if(this.O) {
- this.bM += 24;
- }
- this.U();
- }
- if(this.bL != this.bF || this.bM != this.bG && this.aL == 0) {
- this.V();
- }
- }
- return true;
- case 2:
- return this.z();
- case 3:
- this.t.destroyApp(true);
- return false;
- case 4:
- return this.af() || this.cb > 0;
- case 5:
- return this.ak();
- case 6:
- case 11:
- default:
- break;
- case 7:
- return this.an() || this.cb > 0;
- case 8:
- return this.ap();
- case 9:
- return this.aq();
- case 10:
- if(this.cb == -1) {
- --this.dL;
- if(this.dL < 0) {
- this.dM = 0;
- this.dL = 0;
- this.cb = -2;
- }
- } else if(this.cb == -2) {
- ++this.az;
- if(this.az >= 3) {
- this.az = 0;
- ++this.bZ;
- if(this.bZ >= 3) {
- this.cb = -3;
- }
- }
- } else if(this.cb == -3) {
- ++this.az;
- if(this.az >= 40) {
- this.a(false, 0);
- this.cb = -4;
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dM = 0;
- this.dL = 0;
- this.cb = 0;
- this.bZ = 0;
- this.dH = null;
- this.x = 0;
- }
- }
- return true;
- case 12:
- return this.y();
- case 13:
- return this.v();
- case 14:
- return this.q();
- case 15:
- return this.s();
- case 16:
- return this.B();
- }
- } catch (Throwable var2) {
- this.c();
- }
- return false;
- }
- private final void c(Graphics var1, int var2, int var3) {
- for(int var8 = 0; var8 < 5; ++var8) {
- byte var7 = this.ab[var8];
- if(var7 >= 0) {
- int var4 = var7 / 6;
- int var6 = var4 * 16;
- int var5 = (var7 - var4 * 6) * 16;
- this.b(var1, this.cp, 96 + var5, 672 + var6, 16, 16, this.Z[var8] - var2 - 8, this.aa[var8] - var3 - 8);
- }
- }
- }
- private final void m() {
- this.cq = (byte[][])null;
- this.cr = (byte[][])null;
- int var4 = this.u / this.h + 1;
- this.ds = var4 * 3;
- this.dt = this.v / this.i + 1;
- this.cq = new byte[this.dt][this.ds];
- this.cr = new byte[this.dt][this.ds];
- this.bF = this.bG = 0;
- int var1;
- int var2;
- for(var2 = 0; var2 < this.dt; ++var2) {
- for(var1 = 0; var1 < var4 * 2; ++var1) {
- int var3 = this.b((int)10);
- byte var5;
- if(var3 == 9) {
- var5 = 71;
- } else if(var3 >= 7) {
- var5 = 72;
- } else {
- var5 = 73;
- }
- this.cq[var2][var1] = var5;
- this.cr[var2][var1] = -1;
- this.cq[var2][var1 + var4] = var5;
- this.cr[var2][var1 + var4] = -1;
- }
- }
- for(var2 = 0; var2 < this.dt; ++var2) {
- for(var1 = 0; var1 < var4; ++var1) {
- this.cq[var2][var1 + var4 * 2] = this.cq[var2][var1];
- this.cr[var2][var1 + var4 * 2] = this.cr[var2][var1];
- }
- }
- this.ad();
- this.f(this.bF, this.bG);
- this.aq = this.ds * this.h - 1;
- this.ar = this.dt * this.i - 1;
- this.bH = (var4 << 1) * this.h - 1;
- this.bI = this.ar - this.dv;
- if(this.bH < 0) {
- this.bH = 0;
- }
- if(this.bI < 0) {
- this.bI = 0;
- }
- for(int var6 = 0; var6 < 5; ++var6) {
- this.ab[var6] = (byte)this.b((int)8);
- this.Z[var6] = (short)(this.h + this.b(this.u));
- this.aa[var6] = -16;
- }
- }
- private final void n() {
- byte var1 = 3;
- this.bF += var1;
- if(this.bF > this.bH) {
- this.bF -= this.bF / this.h * this.h;
- this.f(this.bF, this.bG);
- }
- this.g(this.bF, this.bG);
- for(int var2 = 0; var2 < 5; ++var2) {
- byte var4 = this.ab[var2];
- if(this.bD == 0) {
- ++var4;
- }
- short var3 = (short)(this.Z[var2] - var1);
- if(var4 >= 8 || var3 <= -16) {
- var4 = 0;
- var3 = (short)(this.h + this.b(this.u));
- this.aa[var2] = (short)this.b(this.v);
- }
- this.ab[var2] = var4;
- this.Z[var2] = var3;
- }
- ++this.bD;
- if(this.bD >= 4) {
- this.bD = 0;
- }
- }
- private final void o() {
- this.d(false);
- this.bf = false;
- this.bg = false;
- this.aT = 0;
- this.aK = 0;
- this.bj = true;
- this.as = 0;
- this.av = 1;
- this.at = 1;
- this.am = (this.u >> 1) - (this.h >> 1);
- this.an = this.v / 3;
- this.ao = -1;
- this.ap = this.an;
- this.d(this.bT);
- this.ac = 0;
- this.p();
- this.m();
- this.b(true, -1);
- this.x = 14;
- this.b("/fly.mid");
- }
- private final void p() {
- int var1 = this.ct.indexOf(35, this.ac);
- if(var1 == -1) {
- var1 = this.ct.length();
- }
- String var2 = this.ct.substring(this.ac, var1);
- this.ac = var1 + 1;
- this.ew = var2;
- this.ep = 0;
- this.en = this.an + this.i;
- this.eo = 0;
- this.er = this.u;
- this.a((Graphics)null, 0, 0, false, false, false, true);
- this.aN = 192;
- }
- private final boolean q() {
- if(this.cb == 0) {
- if(this.ca == 0) {
- this.r();
- return true;
- }
- if(this.ao == -1) {
- --this.aN;
- if(this.aN < 0) {
- if(this.ac < this.ct.length()) {
- this.p();
- } else {
- this.ao = this.u;
- }
- }
- } else if(this.ao > this.am) {
- this.ao -= 3;
- } else {
- ++this.J;
- this.a(true, this.bT, 10);
- this.g();
- this.b(false, 0);
- }
- }
- if(this.cb != 2) {
- this.L();
- this.n();
- }
- return true;
- }
- private final void r() {
- this.ew = this.a[120] + this.J + this.a[121];
- this.ep = 0;
- this.en = this.i << 1;
- this.eo = 0;
- this.er = this.u;
- this.a((Graphics)null, 0, 0, false, false, true, true);
- if(this.c == 1) {
- this.a("/cleared.mid", this.bq, false);
- }
- this.b(true, -1);
- this.x = 15;
- }
- private final boolean s() {
- if(this.cb != 0) {
- return true;
- } else {
- if(this.ca == 0) {
- if(this.bS == 0) {
- this.ae();
- } else {
- this.f(true);
- }
- } else {
- if(this.S || this.R) {
- this.S = this.R = false;
- this.b(false, 0);
- return true;
- }
- if(this.N) {
- this.N = false;
- if(this.ep > 0) {
- this.ep -= 2;
- if(this.ep < 0) {
- this.ep = 0;
- }
- return true;
- }
- } else if(this.O) {
- this.O = false;
- if(this.ep < this.eq) {
- this.ep += 2;
- if(this.ep > this.eq) {
- this.ep = this.eq;
- }
- return true;
- }
- }
- }
- return false;
- }
- }
- private final void t() {
- this.d(false);
- this.ad = (byte)(this.J > 100?100:this.J);
- this.ae = " X " + this.ad;
- this.aN = 256;
- this.ew = "0000 0000 0000 0000##" + this.a[105];
- this.af = this.ew.toCharArray();
- this.ep = 0;
- this.en = this.i << 1;
- this.eo = 0;
- this.er = this.u;
- this.u();
- this.a((Graphics)null, 0, 0, false, false, false, false);
- this.m();
- this.b(true, -1);
- this.dH = this.a((Image)null, "/sleep.png");
- this.x = 13;
- this.b("/universe.mid");
- }
- private final void u() {
- int var3 = 0;
- for(int var1 = 1; var1 <= 16; ++var1) {
- int var2 = this.b((int)32);
- this.af[var3] = (char)(var2 < 10?var2 + 48:var2 - 10 + 65);
- ++var3;
- if(var1 % 4 == 0) {
- ++var3;
- }
- }
- this.ew = new String(this.af);
- }
- private final boolean v() {
- if(this.cb == 0) {
- if(this.ca == 0) {
- this.dH = null;
- if(this.M[1].length() > 0) {
- this.ae();
- } else {
- this.a((String)(this.a[107] + this.ad + this.a[108]), 0, (byte)0);
- }
- } else if(this.aN > 0) {
- --this.aN;
- if(this.aN == 0) {
- String var1 = this.w();
- for(int var2 = this.M.length - 1; var2 > 0; --var2) {
- this.M[var2] = this.M[var2 - 1];
- }
- this.M[0] = var1;
- this.ew = var1 + "##" + this.a[106];
- this.af = null;
- this.ep = 0;
- this.en = this.i << 1;
- this.eo = 0;
- this.er = this.u;
- this.a((Graphics)null, 0, 0, false, false, false, false);
- this.J = (short)(this.J - this.ad);
- this.g();
- } else {
- this.u();
- }
- } else if(this.R || this.S) {
- this.R = this.S = false;
- this.b(false, 0);
- }
- }
- this.n();
- return true;
- }
- private final String w() {
- byte[] var2 = new byte[10];
- this.a((byte[])var2, 0, (int)this.L);
- var2[5] = this.ad;
- this.a((byte[])var2, 6, (int)((int)System.currentTimeMillis()));
- byte var3 = 76;
- for(int var1 = 0; var1 < 10; ++var1) {
- if(var1 != 4) {
- var3 = (byte)(var3 + ~((byte)(var2[var1] + var1)));
- }
- }
- var2[4] = var3;
- String var4 = this.a(var2, var2.length << 3);
- var4 = var4.substring(0, 4) + ' ' + var4.substring(4, 8) + ' ' + var4.substring(8, 12) + ' ' + var4.substring(12);
- return var4;
- }
- private final void a(byte[] var1, int var2, int var3) {
- int var5 = 24;
- for(int var4 = 0; var4 < 4; ++var4) {
- var1[var2 + var4] = (byte)(255 & var3 >>> var5);
- var5 -= 8;
- }
- }
- private final String a(byte[] var1, int var2) {
- StringBuffer var3 = new StringBuffer(19);
- String var4 = "";
- int var7 = 0;
- boolean var8 = false;
- int var9 = 0;
- for(int var5 = 0; var5 < var2; ++var5) {
- int var6 = var1[var5 >> 3] >> 7 - var5 % 8 & 1;
- var7 |= var6 << 4 - var9;
- ++var9;
- if(var9 > 4) {
- var3.append(this.a(var7));
- var9 = 0;
- var7 = 0;
- }
- }
- if(var9 > 0) {
- var3.append(this.a(var7));
- }
- return var3.toString();
- }
- private final char a(int var1) {
- return var1 < 10?(char)(var1 + 48):(char)(var1 - 10 + 65);
- }
- private final void x() {
- this.c((byte)4, (byte)-1);
- this.dS = false;
- if(this.dY == 0) {
- this.ew = this.a[119];
- this.ep = 0;
- this.en = 96;
- this.eo = 0;
- this.er = this.u;
- this.a((Graphics)null, 0, 0, false, false, true, true);
- }
- this.ag = this.ah = 0;
- this.dI = this.a(this.dI, "/train.png");
- this.b(true, -1);
- this.a(true, 0);
- this.x = 12;
- this.b("/train.mid");
- }
- private final boolean y() {
- if(this.dM == 0) {
- if(this.dY > 0) {
- if(this.N) {
- this.N = false;
- if(this.dX > 0) {
- --this.dX;
- } else {
- this.dX = (byte)(this.dY - 1);
- }
- if(this.dX < this.ea) {
- this.ea = this.dX;
- } else if(this.dX >= this.ea + this.dZ) {
- this.ea = (byte)(this.dX - this.dZ + 1);
- }
- } else if(this.O) {
- this.Q = this.O = false;
- if(this.dX < this.dY - 1) {
- ++this.dX;
- } else {
- this.dX = 0;
- }
- if(this.dX < this.ea) {
- this.ea = this.dX;
- } else if(this.dX >= this.ea + this.dZ) {
- this.ea = (byte)(this.dX - this.dZ + 1);
- }
- } else if(this.R || this.S) {
- this.R = this.S = false;
- this.b(false, -1);
- this.a(false, 2);
- }
- } else if(this.N) {
- this.N = false;
- if(this.ep > 0) {
- this.ep -= 2;
- if(this.ep < 0) {
- this.ep = 0;
- }
- }
- } else if(this.O) {
- this.O = false;
- if(this.ep < this.eq) {
- this.ep += 2;
- if(this.ep > this.eq) {
- this.ep = this.eq;
- }
- }
- }
- if(this.T) {
- this.T = false;
- this.b(false, -1);
- this.a(false, 1);
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dL = 0;
- if(this.dM == 2) {
- this.dM = 0;
- switch(this.dN) {
- case 0:
- default:
- break;
- case 1:
- this.ae();
- this.dI = null;
- return true;
- case 2:
- this.i();
- if(this.c == 1) {
- this.a();
- }
- this.bS = 0;
- this.bR = this.dV[this.dX] == 1?3:2;
- this.X();
- this.x = 1;
- this.d(true);
- this.dI = null;
- }
- } else {
- this.dM = 0;
- }
- }
- }
- this.ag += 24;
- if(this.ag >> 4 >= 384) {
- this.ag -= 6144;
- }
- this.ah += 64;
- if(this.ah >> 4 >= 384) {
- this.ah -= 6144;
- }
- return true;
- }
- private final void a(int var1, String var2, String var3, String var4) {
- this.ak = var1;
- this.ai = var3;
- this.aj = var4;
- this.ew = var2;
- this.ep = 0;
- this.en = this.k;
- this.eo = this.k;
- this.er = this.u - this.h;
- this.a((Graphics)null, 0, 0, true, false, true, true);
- if(this.et > this.es) {
- int var5 = (this.et - this.es) * this.g;
- this.en += var5 >> 1;
- this.eo += var5 >> 1;
- this.eq = 0;
- }
- this.x = 2;
- this.a(true, -1);
- }
- private final boolean z() {
- boolean var1 = false;
- if(this.dM == 0) {
- if(this.N) {
- this.N = false;
- if(this.ep > 0) {
- this.ep -= 2;
- if(this.ep < 0) {
- this.ep = 0;
- }
- var1 = true;
- }
- } else if(this.O) {
- this.O = false;
- if(this.ep < this.eq) {
- this.ep += 2;
- if(this.ep > this.eq) {
- this.ep = this.eq;
- }
- var1 = true;
- }
- } else if(this.ai != null && this.S) {
- this.S = false;
- this.a(false, 0);
- } else if(this.aj != null && this.T) {
- this.T = false;
- this.a(false, 1);
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dL = 0;
- if(this.dM == 2) {
- this.dM = 0;
- switch(this.dN) {
- case 0:
- var1 = this.a(true);
- break;
- case 1:
- var1 = this.a(false);
- }
- } else {
- this.dM = 0;
- }
- }
- var1 = true;
- }
- return var1;
- }
- private final boolean a(boolean var1) {
- this.x = 1;
- if(this.ak == -1) {
- return true;
- } else if(!var1) {
- if(this.ak == 10) {
- this.ae();
- }
- return true;
- } else {
- if(this.ak == 8) {
- this.C = true;
- } else if(this.ak == 7) {
- if(this.I < 3) {
- this.dc = true;
- } else {
- this.I = (short)(this.I - 3);
- }
- this.da = true;
- } else if(this.ak == 9) {
- this.t();
- } else if(this.ak == 10) {
- this.o();
- } else {
- this.I = (short)(this.I - this.br[this.ak]);
- this.cq[this.ap][this.ao] = -98;
- this.f(this.bF, this.bG);
- ++this.D[this.ak];
- if(this.ak == 4) {
- this.H = this.D[4];
- }
- this.g();
- }
- return true;
- }
- }
- private final void A() {
- this.d(false);
- this.dH = null;
- this.c(false);
- this.b(0, this.a[111], this.a[30], (String)null);
- this.x = 16;
- }
- private final void b(int var1, String var2, String var3, String var4) {
- this.b("/universe.mid");
- this.ai = var3;
- this.aj = var4;
- this.al = var1;
- this.ew = var2;
- this.ep = 0;
- this.eo = 0;
- this.er = this.u;
- this.en = 0;
- this.a((Graphics)null, 0, 0, true, true, true, true);
- this.a(true, -1);
- }
- private final boolean B() {
- boolean var1 = false;
- if(this.dM == 0) {
- if(this.N) {
- this.N = false;
- if(this.al != 5 && this.ep > 0) {
- this.ep -= 2;
- if(this.ep < 0) {
- this.ep = 0;
- }
- var1 = true;
- }
- } else if(this.O) {
- this.O = false;
- if(this.al != 5 && this.ep < this.eq) {
- this.ep += 2;
- if(this.ep > this.eq) {
- this.ep = this.eq;
- }
- var1 = true;
- }
- } else if(this.ai != null && this.S) {
- this.S = false;
- this.a(false, 0);
- } else if(this.aj != null && this.T) {
- this.T = false;
- this.a(false, 1);
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dL = 0;
- this.dP = false;
- if(this.dM == 2) {
- this.dM = 0;
- switch(this.dN) {
- case 0:
- var1 = this.b(true);
- break;
- case 1:
- var1 = this.b(false);
- }
- } else {
- this.dM = 0;
- }
- }
- var1 = true;
- }
- return var1;
- }
- private final boolean b(boolean var1) {
- this.ai = null;
- this.aj = null;
- boolean var2 = false;
- switch(this.al) {
- case 0:
- var2 = true;
- default:
- if(var2) {
- this.dH = null;
- this.ae();
- }
- return true;
- }
- }
- private final int b(int var1) {
- int var2 = this.z.nextInt();
- if(var2 < 0) {
- var2 = -var2;
- }
- return var2 % var1;
- }
- private final void C() {
- if(this.bn != -1) {
- --this.bm;
- if(this.bm <= 0) {
- this.bn = -1;
- }
- } else {
- int var1 = (this.bF + this.b(this.du)) / this.h;
- int var2 = (this.bG + this.b(this.dv)) / this.i;
- if(var1 < this.ds && var2 < this.dt && this.cr[var2][var1] == -8 && (this.cq[var2][var1] == -57 || this.cq[var2][var1] == -56)) {
- this.bn = var1 * this.h;
- this.bo = var2 * this.i;
- this.bm = 32;
- }
- }
- }
- private final void D() {
- if(this.aL > 0) {
- --this.aL;
- int var1 = this.h * this.aL / 8;
- int var2 = this.b(var1 + 1) - (var1 >> 1);
- int var3 = this.b(var1 + 1) - (var1 >> 1);
- this.bF += var2;
- this.bG += var3;
- if(this.bF < 0) {
- this.bF = 0;
- } else if(this.bF > this.bH) {
- this.bF = this.bH;
- }
- if(this.bG < 0) {
- this.bG = 0;
- } else if(this.bG > this.bI) {
- this.bG = this.bI;
- }
- this.g(this.bF, this.bG);
- }
- }
- private final boolean E() {
- if(this.cR && this.db && this.at != 5) {
- long var1;
- if(!this.bY) {
- var1 = 60000L - (System.currentTimeMillis() - this.bX + this.bW);
- } else {
- var1 = 60000L - this.bW;
- }
- if(var1 <= 0L) {
- this.aX = 0;
- this.H();
- }
- }
- if(this.aQ > 0 && this.bL == this.bF && this.bM == this.bG) {
- --this.aQ;
- if(this.aQ == 0) {
- this.aW = -1;
- this.aB = -1;
- this.T();
- }
- }
- if(this.bS == 0 && this.bR == 1 && !this.C && this.X) {
- this.X = false;
- this.a(8, "DO YOU WANT TO ENABLE THE CHEAT?", this.a[32], this.a[33]);
- return false;
- } else {
- int var11 = this.bF;
- int var2 = this.bG;
- if(this.at <= 4 && this.av == 0 && this.aZ == 0) {
- this.bk = false;
- if(this.be) {
- this.be = false;
- this.aK = 0;
- boolean var12 = false;
- boolean var13 = true;
- byte var6 = this.cA[this.aw];
- short var7 = this.cE[this.aw];
- short var8 = this.cF[this.aw];
- if(var6 == -20) {
- int var10 = var8 / this.i;
- int var9 = var7 / this.h;
- byte var5 = this.cq[var10][var9];
- if((var5 == 87 || var5 == 91 || var5 == 92 || var5 == 93) && this.at == 2) {
- var13 = false;
- } else if(var5 == 88 && this.at == 3) {
- var13 = false;
- } else if(var5 == 89 && this.at == 0) {
- var13 = false;
- } else if(var5 == 90 && this.at == 1) {
- var13 = false;
- }
- if(var13) {
- switch(this.at) {
- case 0:
- if(this.a(var9 - 1, var10, this.at, var6) && !this.a((int)(var7 - this.h), (int)var8, this.aw, (int)0)) {
- var12 = true;
- }
- break;
- case 1:
- if(this.a(var9 + 1, var10, this.at, var6) && !this.a((int)(var7 + this.h), (int)var8, this.aw, (int)1)) {
- var12 = true;
- }
- break;
- case 2:
- if(this.a(var9, var10 - 1, this.at, var6) && !this.a((int)var7, (int)(var8 - this.i), this.aw, (int)2)) {
- var12 = true;
- }
- break;
- case 3:
- if(this.a(var9, var10 + 1, this.at, var6) && !this.a((int)var7, (int)(var8 + this.i), this.aw, (int)3)) {
- var12 = true;
- }
- }
- }
- if(var12) {
- this.cC[this.aw] = (byte)this.h;
- this.cB[this.aw] = (byte)this.at;
- this.cD[this.aw] = false;
- }
- }
- }
- if(this.aw == -1 || this.cB[this.aw] == 4) {
- if(this.J()) {
- if(!this.be) {
- this.aw = -1;
- }
- this.bd = true;
- if(!this.bf && !this.bj) {
- this.as = 3;
- }
- } else if(this.az == 0 && !this.bf && !this.bj && this.aZ == 0) {
- this.as = 3;
- }
- }
- } else if(this.aZ > 0) {
- --this.aZ;
- if(this.aZ <= 0) {
- this.aZ = 0;
- int var3 = this.ao;
- int var4 = this.ap;
- switch(this.at) {
- case 0:
- --var3;
- break;
- case 1:
- ++var3;
- break;
- case 2:
- --var4;
- break;
- case 3:
- ++var4;
- }
- this.cq[var4][var3] = 124;
- this.f(this.bF, this.bG);
- this.as = 3;
- this.az = 0;
- this.bl = true;
- }
- }
- if(this.L()) {
- return false;
- } else if(this.at != 5 || !this.R && !this.S && !this.T) {
- if(this.av != 0) {
- if(this.bd && this.av <= this.j) {
- this.bd = false;
- this.G();
- if(this.aY == 0 && !this.bj) {
- this.aT = this.aw != -1?this.m:0;
- }
- }
- switch(this.aY) {
- case 1:
- this.aT += 6;
- break;
- case 2:
- this.aT -= 6;
- }
- this.az = 0;
- this.K();
- if(this.av == 0) {
- switch(this.aY) {
- case 1:
- this.aY = 0;
- this.bj = true;
- this.aT = this.k;
- this.as = 0;
- this.aK = 1;
- break;
- case 2:
- this.aY = 0;
- this.bj = false;
- this.aT = 0;
- this.as = 0;
- }
- this.az = 0;
- this.bi = false;
- if(this.bh) {
- this.bh = false;
- if(this.cq[this.ap][this.ao] == -56) {
- this.cr[this.ap][this.ao] = (byte)(this.cQ?202:203);
- }
- this.cq[this.ap][this.ao] = bp[this.b((int)4)];
- this.f(this.bF, this.bG);
- }
- switch(this.aU) {
- case 1:
- this.aU = 0;
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- this.aK = 0;
- this.bf = true;
- this.as = 0;
- this.b(this.F());
- break;
- case 2:
- this.aU = 0;
- this.bf = false;
- this.aK = 0;
- this.cr[this.ap][this.ao] = -36;
- this.f(this.bF, this.bG);
- ++this.ao;
- this.am += this.h;
- this.b(this.F());
- this.P = this.Q = this.N = this.O = false;
- }
- }
- } else if(!this.bf && !this.bg && !this.bj && this.aZ == 0 && this.at < 4 && ++this.az >= 160) {
- this.at = 4;
- this.as = 0;
- this.bb = true;
- }
- if(this.aI != -1) {
- --this.aM;
- if(this.aM <= 0) {
- if(this.cr[this.aJ][this.aI] == -43) {
- this.cr[this.aJ][this.aI] = -42;
- this.aM = 6;
- } else {
- this.cr[this.aJ][this.aI] = -1;
- this.aI = -1;
- }
- this.f(this.bF, this.bG);
- }
- }
- if(this.dn > 0) {
- this.O();
- }
- if(this.do == 0) {
- --this.aN;
- if(this.aN <= 0) {
- byte var14 = this.cr[this.cP][this.cO];
- switch(var14) {
- case -41:
- var14 = -24;
- break;
- case -24:
- var14 = -23;
- break;
- default:
- var14 = -41;
- this.dl = this.cO * this.h;
- this.dm = this.cP * this.i + (this.i >> 1);
- this.dp = 0;
- this.dq = -1;
- this.dr = 4;
- this.do = 1;
- }
- this.cr[this.cP][this.cO] = var14;
- this.aN = 6;
- this.f(this.bF, this.bG);
- }
- }
- if(!this.dR && this.aQ == 0) {
- this.d(this.am, this.an);
- }
- if(this.bF != var11 || this.bG != var2) {
- this.g(this.bF, this.bG);
- }
- return true;
- } else {
- this.R = this.S = this.T = false;
- if(!this.dc) {
- this.Y();
- this.d(true);
- } else {
- this.f(false);
- }
- return true;
- }
- }
- }
- private final String F() {
- return this.bf?"/mow.mid":(this.bS != 0?(!this.cR?(this.H != -1?"/ingame" + this.H + ".mid":"/ingame" + this.b(this.D[4] + 1) + ".mid"):(!this.db?"/shop.mid":"/bonus.mid")):(this.bR == 1?"/shop.mid":(this.bR != 2 && this.bR != 4 && this.bR != 5?"/shop.mid":"/sandman.mid")));
- }
- private final void b(String var1) {
- if(this.c == 1) {
- this.a(var1, this.bq, true);
- }
- }
- private final void G() {
- byte var1 = this.cq[this.ap][this.ao];
- byte var2 = this.cr[this.ap][this.ao];
- if(this.aC != -1) {
- this.cq[this.aD][this.aC] = -81;
- this.f(this.bF, this.bG);
- this.aC = -1;
- } else if(this.aE != -1) {
- this.cq[this.aF][this.aE] = this.b(this.cq[this.aF][this.aE]);
- this.f(this.bF, this.bG);
- this.aE = -1;
- } else if(this.aR != -1) {
- this.cq[this.aS][this.aR] = this.c(this.cq[this.aS][this.aR]);
- this.f(this.bF, this.bG);
- this.aR = -1;
- } else if(this.aG != -1) {
- if(this.aI != -1) {
- this.cr[this.aJ][this.aI] = -1;
- this.f(this.bF, this.bG);
- }
- this.cr[this.aH][this.aG] = -43;
- this.f(this.bF, this.bG);
- this.aI = this.aG;
- this.aJ = this.aH;
- this.aM = 6;
- this.aG = -1;
- } else if(this.aO != -1) {
- --this.cy;
- this.cr[this.aP][this.aO] = -52;
- this.f(this.bF, this.bG);
- this.aO = -1;
- }
- if(this.bj) {
- if(var2 != -11) {
- return;
- }
- this.aY = 2;
- } else if(var2 == -12) {
- this.aY = 1;
- this.aT = 0;
- return;
- }
- if(var2 == -44) {
- this.aG = this.ao;
- this.aH = this.ap;
- } else {
- if(var2 == -39 && this.cO != -1 && this.do == -1) {
- this.do = 0;
- this.aN = 6;
- }
- this.bg = false;
- if(!this.bf) {
- if(var2 == -51) {
- this.da = false;
- if(this.cR && !this.db) {
- this.db = true;
- this.b(this.F());
- this.l();
- this.bW = 0L;
- }
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- } else if(var2 == -8) {
- ++this.bU;
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- } else if(var2 == -35) {
- this.ax = 0;
- this.cT = true;
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- } else if(var2 == -13) {
- this.ax = 0;
- this.cU = true;
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- } else if(var2 == -49) {
- ++this.cz;
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- } else if(var2 == -54) {
- --this.cy;
- this.cr[this.ap][this.ao] = -55;
- this.f(this.bF, this.bG);
- } else if(var2 == -53) {
- this.aO = this.ao;
- this.aP = this.ap;
- } else if(var2 == -33) {
- if(this.cz > 0) {
- --this.cz;
- this.dd[this.dk] = (byte)this.ao;
- this.de[this.dk] = (byte)this.ap;
- this.df[this.dk] = 1;
- this.dg[this.dk] = 16;
- ++this.dk;
- this.cr[this.ap][this.ao] = -17;
- this.f(this.bF, this.bG);
- } else {
- this.aV = 4;
- this.ax = 4;
- }
- } else if(var2 != -18 && var2 != -34 && var2 != -50) {
- if(var2 == -36) {
- this.aU = 1;
- } else if(var2 == -10) {
- ++this.J;
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- this.a(true, this.bS, this.bR);
- this.I = (short)(this.I + this.bU);
- this.ec = 0;
- this.g();
- this.d(false);
- this.k();
- this.r();
- return;
- }
- } else {
- this.bg = true;
- }
- }
- if(var1 == -92) {
- this.I();
- } else if(var1 == -94) {
- this.c((int)0);
- } else if(var1 == -108) {
- this.bk = true;
- this.as = 1;
- } else if((var1 & 255) >= 191 && (var1 & 255) <= 194) {
- this.a(var1);
- } else if(var1 == -90) {
- this.c((int)1);
- } else if(var1 == -80) {
- this.aC = this.ao;
- this.aD = this.ap;
- } else if(!this.bf && (var1 & 255) >= 185 && (var1 & 255) <= 190) {
- this.aE = this.ao;
- this.aF = this.ap;
- } else if(!this.bf && (var1 & 255) >= 177 && (var1 & 255) <= 180) {
- this.aR = this.ao;
- this.aS = this.ap;
- } else if(!this.bf && var1 == -97) {
- this.cV = true;
- this.cq[this.ap][this.ao] = 124;
- this.f(this.bF, this.bG);
- } else if(var1 == -89) {
- this.cW = false;
- this.a(-89, -88);
- } else if(var1 == -87) {
- this.cX = false;
- this.a(-87, -86);
- } else if(var1 == -85) {
- this.cY = false;
- this.a(-85, -84);
- } else if(var1 == -83) {
- this.cZ = false;
- this.a(-83, -82);
- } else if(var1 == -88) {
- this.cW = true;
- this.aW = 2;
- this.a(-88, -89);
- this.aQ = 64;
- this.d(this.cG * this.h, this.cH * this.i);
- } else if(var1 == -86) {
- this.cX = true;
- this.aW = 3;
- this.a(-86, -87);
- this.aQ = 64;
- this.d(this.cI * this.h, this.cJ * this.i);
- } else if(var1 == -84) {
- this.cY = true;
- this.aW = 0;
- this.a(-84, -85);
- this.aQ = 64;
- this.d(this.cK * this.h, this.cL * this.i);
- } else if(var1 == -82) {
- this.cZ = true;
- this.aW = 1;
- this.a(-82, -83);
- this.aQ = 64;
- this.d(this.cM * this.h, this.cN * this.i);
- } else if(!this.bf && var1 == -81) {
- this.H();
- } else if(!this.bf && this.cy == 0 && var1 == -106) {
- this.d(false);
- this.k();
- this.au = this.at;
- this.at = 6;
- this.as = 0;
- this.bb = true;
- } else if(this.bf && var1 == -96) {
- this.aU = 2;
- } else if((var1 & 255) >= 151 && (var1 & 255) <= 157) {
- int var3 = (var1 & 255) - 151;
- boolean var4 = this.I >= this.br[var3];
- this.a(var4?var3:-1, this.a[82 + var3] + this.a[91 + var3] + (var4?this.a[99]:this.a[98]), var4?this.a[32]:this.a[30], var4?this.a[33]:null);
- }
- }
- }
- private final void H() {
- this.d(false);
- this.k();
- this.av = 0;
- this.at = 5;
- this.bg = this.bj = false;
- this.as = 0;
- if(this.dR) {
- this.dR = false;
- this.T();
- }
- if(this.c == 1) {
- this.a(this.aX == -1?"/death.mid":"/alarm.mid", this.bq, false);
- }
- this.U = false;
- }
- private final void I() {
- for(int var1 = 0; var1 < this.dt; ++var1) {
- for(int var2 = 0; var2 < this.ds; ++var2) {
- this.cq[var1][var2] = this.b(this.cq[var1][var2]);
- }
- }
- this.f(this.bF, this.bG);
- }
- private final void c(int var1) {
- byte var2;
- byte var3;
- byte var4;
- byte var5;
- byte var6;
- byte var7;
- switch(var1) {
- case 0:
- var2 = -73;
- var3 = -72;
- var4 = -75;
- var5 = -74;
- var6 = -95;
- var7 = -94;
- break;
- default:
- var2 = 90;
- var3 = 89;
- var4 = 88;
- var5 = 87;
- var6 = -91;
- var7 = -90;
- }
- for(int var8 = 0; var8 < this.dt; ++var8) {
- for(int var9 = 0; var9 < this.ds; ++var9) {
- this.cq[var8][var9] = this.a(this.cq[var8][var9], var2, var4, var3, var5, var6, var7);
- }
- }
- this.f(this.bF, this.bG);
- }
- private final void a(byte var1) {
- byte var2;
- byte var3;
- byte var4;
- byte var5;
- switch(var1) {
- case -65:
- case -64:
- var2 = -65;
- var3 = -64;
- var4 = -61;
- var5 = -60;
- break;
- case -63:
- case -62:
- var2 = -63;
- var3 = -62;
- var4 = -59;
- var5 = -58;
- break;
- default:
- return;
- }
- for(int var6 = 0; var6 < this.dt; ++var6) {
- for(int var7 = 0; var7 < this.ds; ++var7) {
- var1 = this.cq[var6][var7];
- if(var1 == var2) {
- this.cq[var6][var7] = var3;
- } else if(var1 == var3) {
- this.cq[var6][var7] = var2;
- } else if(var1 == var4) {
- this.cq[var6][var7] = var5;
- } else if(var1 == var5) {
- this.cq[var6][var7] = var4;
- }
- }
- }
- this.f(this.bF, this.bG);
- }
- private final void a(byte var1, byte var2) {
- for(int var3 = 0; var3 < this.dt; ++var3) {
- for(int var4 = 0; var4 < this.ds; ++var4) {
- if(this.cq[var3][var4] == var1) {
- this.cq[var3][var4] = var2;
- }
- }
- }
- this.f(this.bF, this.bG);
- }
- private final byte a(byte var1, byte var2, byte var3, byte var4, byte var5, byte var6, byte var7) {
- return var1 == var6?var7:(var1 == var7?var6:(var1 == var5?var3:(var1 == var3?var5:(var1 == var4?var2:(var1 == var2?var4:var1)))));
- }
- private final byte b(byte var1) {
- switch(var1) {
- case -93:
- return -92;
- case -92:
- return -93;
- case -91:
- case -90:
- case -89:
- case -88:
- case -87:
- case -86:
- case -85:
- case -84:
- case -83:
- case -82:
- case -81:
- case -80:
- case -79:
- case -78:
- case -77:
- case -76:
- case -75:
- case -74:
- case -73:
- case -72:
- default:
- return var1;
- case -71:
- return -68;
- case -70:
- return -71;
- case -69:
- return -70;
- case -68:
- return -69;
- case -67:
- return -66;
- case -66:
- return -67;
- }
- }
- private final byte c(byte var1) {
- switch(var1) {
- case -79:
- return -78;
- case -78:
- return -76;
- case -77:
- return -79;
- case -76:
- return -77;
- default:
- return var1;
- }
- }
- private final boolean a(int var1, int var2) {
- var1 *= this.h;
- var2 *= this.i;
- for(int var3 = 0; var3 < this.cx; ++var3) {
- if(this.cB[var3] == 4 && this.cE[var3] == var1 && this.cF[var3] == var2) {
- this.be = true;
- this.aw = (byte)var3;
- return true;
- }
- }
- return false;
- }
- private final boolean J() {
- byte var1 = this.cq[this.ap][this.ao];
- byte var2 = this.cr[this.ap][this.ao];
- if(this.bl) {
- this.bl = false;
- switch(this.at) {
- case 0:
- if(this.a(-1, 0, false)) {
- --this.ao;
- this.av = this.h;
- if(this.F) {
- this.bi = true;
- }
- return true;
- }
- break;
- case 1:
- if(this.a(1, 0, false)) {
- ++this.ao;
- this.av = this.h;
- if(this.F) {
- this.bi = true;
- }
- return true;
- }
- break;
- case 2:
- if(this.a(0, -1, false)) {
- --this.ap;
- this.av = this.i;
- if(this.F) {
- this.bi = true;
- }
- return true;
- }
- break;
- case 3:
- if(this.a(0, 1, false)) {
- ++this.ap;
- this.av = this.i;
- if(this.F) {
- this.bi = true;
- }
- return true;
- }
- }
- }
- if(this.bj) {
- switch(this.at) {
- case 0:
- --this.ao;
- this.av = this.h;
- break;
- case 1:
- ++this.ao;
- this.av = this.h;
- break;
- case 2:
- --this.ap;
- this.av = this.i;
- break;
- case 3:
- ++this.ap;
- this.av = this.i;
- }
- return true;
- } else {
- if(var2 != -44) {
- if(var1 == -73 && this.a(-1, 0, true)) {
- this.at = 0;
- this.aK = 3;
- } else if(var1 == -72 && this.a(1, 0, true)) {
- this.at = 1;
- this.aK = 3;
- } else if(var1 == -75 && this.a(0, -1, true)) {
- this.at = 2;
- this.aK = 3;
- } else if(var1 == -74 && this.a(0, 1, true)) {
- this.at = 3;
- this.aK = 3;
- }
- }
- boolean var3;
- if(this.aK > 0) {
- var3 = true;
- boolean var4 = false;
- switch(this.at) {
- case 0:
- if(this.a(-1, 0, false)) {
- --this.ao;
- if(!this.dR && this.P) {
- var3 = false;
- }
- } else {
- var4 = true;
- }
- break;
- case 1:
- if(this.a(1, 0, false)) {
- ++this.ao;
- if(!this.dR && this.Q) {
- var3 = false;
- }
- } else {
- var4 = true;
- }
- break;
- case 2:
- if(this.a(0, -1, false)) {
- --this.ap;
- if(!this.dR && this.N) {
- var3 = false;
- }
- } else {
- var4 = true;
- }
- break;
- case 3:
- if(this.a(0, 1, false)) {
- ++this.ap;
- if(!this.dR && this.O) {
- var3 = false;
- }
- } else {
- var4 = true;
- }
- }
- if(!var4) {
- if(this.bf && this.c(this.ao, this.ap) == -19) {
- this.cr[this.ap][this.ao] = -1;
- this.f(this.bF, this.bG);
- this.aL = 8;
- }
- if(var3 && var1 != -108) {
- --this.aK;
- } else {
- this.aK = 3;
- }
- if(var1 == -108) {
- this.bk = true;
- this.aK = 3;
- }
- this.av = this.h;
- return true;
- }
- this.aK = 0;
- this.aL = 8;
- this.bc = false;
- }
- if(this.av == 0 && var1 == -108) {
- var3 = false;
- switch(this.at) {
- case 0:
- if(this.a(-1, 0, false)) {
- --this.ao;
- } else {
- var3 = true;
- }
- break;
- case 1:
- if(this.a(1, 0, false)) {
- ++this.ao;
- } else {
- var3 = true;
- }
- break;
- case 2:
- if(this.a(0, -1, false)) {
- --this.ap;
- } else {
- var3 = true;
- }
- break;
- case 3:
- if(this.a(0, 1, false)) {
- ++this.ap;
- } else {
- var3 = true;
- }
- break;
- default:
- var3 = true;
- }
- if(!var3) {
- this.av = this.h;
- this.bk = true;
- this.as = 1;
- if(!this.bf && this.F) {
- this.bi = true;
- }
- return true;
- }
- }
- if(!this.dR && this.aQ == 0) {
- if(this.P) {
- if(this.a(-1, 0, false)) {
- --this.ao;
- this.at = 0;
- this.av = this.h;
- if(!this.bf && this.F) {
- this.bi = true;
- }
- return true;
- }
- } else if(this.Q) {
- if(this.a(1, 0, false)) {
- ++this.ao;
- this.at = 1;
- this.av = this.h;
- if(!this.bf && this.F) {
- this.bi = true;
- }
- return true;
- }
- } else if(this.N) {
- if(this.a(0, -1, false)) {
- --this.ap;
- this.at = 2;
- this.av = this.h;
- if(!this.bf && this.F) {
- this.bi = true;
- }
- return true;
- }
- } else if(this.O && this.a(0, 1, false)) {
- ++this.ap;
- this.at = 3;
- this.av = this.h;
- if(!this.bf && this.F) {
- this.bi = true;
- }
- return true;
- }
- }
- return false;
- }
- }
- private final byte b(int var1, int var2) {
- return var1 >= 0 && var2 >= 0 && var1 < this.ds && var2 < this.dt?this.cq[var2][var1]:-1;
- }
- private final byte c(int var1, int var2) {
- return var1 >= 0 && var2 >= 0 && var1 < this.ds && var2 < this.dt?this.cr[var2][var1]:-1;
- }
- private final boolean a(int var1, int var2, boolean var3) {
- int var4 = this.ao + var1;
- int var5 = this.ap + var2;
- this.aZ = 0;
- if(var4 >= 0 && var5 >= 0 && var4 < this.ds && var5 < this.dt) {
- if(this.bj) {
- return true;
- } else {
- byte var6 = this.cq[this.ap][this.ao];
- byte var7 = this.cq[var5][var4];
- byte var8 = this.cr[var5][var4];
- boolean var9 = true;
- if(var6 == -66) {
- var9 = var1 != 0;
- } else if(var6 == -67) {
- var9 = var2 != 0;
- } else if(var6 == -68) {
- var9 = var1 == 1 || var2 == 1;
- } else if(var6 == -69) {
- var9 = var1 == -1 || var2 == 1;
- } else if(var6 == -70) {
- var9 = var1 == -1 || var2 == -1;
- } else if(var6 == -71) {
- var9 = var1 == 1 || var2 == -1;
- }
- if(!var9) {
- return false;
- } else if(!this.bf && this.a(this.ao + var1, this.ap + var2)) {
- return true;
- } else {
- var9 = (var7 & 255) >= 94 && (var7 & 255) <= 200;
- if(var9) {
- if((var7 & 255) >= 185 && (var7 & 255) <= 190) {
- if(!this.bf) {
- switch(var7) {
- case -71:
- var9 = var1 == -1 || var2 == 1;
- break;
- case -70:
- var9 = var1 == 1 || var2 == 1;
- break;
- case -69:
- var9 = var1 == 1 || var2 == -1;
- break;
- case -68:
- var9 = var1 == -1 || var2 == -1;
- break;
- case -67:
- var9 = var2 != 0;
- break;
- case -66:
- var9 = var1 != 0;
- }
- } else {
- var9 = false;
- }
- } else if((var7 & 255) >= 177 && (var7 & 255) <= 180) {
- var9 = !this.bf;
- } else if(var7 != -57 && var7 != -56) {
- if(var7 == -61 || var7 == -59) {
- var9 = false;
- }
- } else if(this.bf) {
- this.bh = true;
- } else {
- var9 = false;
- }
- } else if(var7 == 77 && !this.bf) {
- if(this.cV) {
- this.aZ = 32;
- this.as = 0;
- if(var1 != 0) {
- this.at = var1 < 0?0:1;
- } else {
- this.at = var2 < 0?2:3;
- }
- this.bi = false;
- this.aK = 0;
- this.az = 0;
- } else {
- this.aV = 3;
- this.ax = 4;
- }
- }
- if(!var9) {
- switch(var8) {
- case -50:
- case -44:
- case -34:
- var9 = !this.bf;
- break;
- default:
- var9 = false;
- }
- if(!var9) {
- return false;
- }
- } else {
- switch(var8) {
- case -54:
- var9 = !this.bf;
- break;
- case -53:
- case -50:
- case -49:
- case -44:
- case -43:
- case -42:
- case -39:
- case -35:
- case -34:
- case -33:
- case -32:
- case -31:
- case -30:
- case -28:
- case -27:
- case -26:
- case -24:
- case -23:
- case -20:
- case -18:
- case -17:
- case -16:
- case -15:
- case -14:
- case -13:
- case -11:
- case -10:
- case -8:
- default:
- var9 = true;
- break;
- case -52:
- case -48:
- case -47:
- case -46:
- case -45:
- case -41:
- case -40:
- case -38:
- case -37:
- case -29:
- case -25:
- case -7:
- case -6:
- case -5:
- case -4:
- case -3:
- case -2:
- var9 = false;
- break;
- case -51:
- if(!this.bf) {
- if(!this.da && this.D[2] == 0) {
- this.aV = 1;
- this.ax = 4;
- var9 = false;
- break;
- }
- var9 = true;
- break;
- }
- var9 = false;
- break;
- case -36:
- if(!this.cT) {
- this.aV = 0;
- this.ax = 4;
- var9 = false;
- } else {
- var9 = true;
- }
- break;
- case -22:
- case -9:
- if(this.cR) {
- boolean var11 = false;
- byte var10;
- String var12;
- if(!this.db) {
- if(this.D[2] > 0) {
- var10 = -1;
- var12 = this.a[113] + this.a[114];
- } else if(!this.da) {
- var10 = 7;
- if(this.I >= 3) {
- var12 = this.a[113] + this.a[115] + this.I + this.a[116];
- } else {
- var12 = this.a[113] + this.a[117];
- var11 = true;
- }
- } else {
- var10 = -1;
- var12 = this.a[118];
- }
- } else {
- var10 = -1;
- var12 = this.a[118];
- }
- this.a(var10, var12, this.a[var10 != -1?(var11?34:32):30], var10 != -1?this.a[33]:null);
- } else if(this.bS == 0) {
- if(this.bR == 1) {
- this.a(-1, this.a[100] + this.I + this.a[101], this.a[30], (String)null);
- } else if(this.bR == 2) {
- if(this.J > 0) {
- this.a(9, this.a[102] + this.J + this.a[103], this.a[32], this.a[33]);
- } else {
- this.a(-1, this.a[102] + this.a[104], this.a[30], (String)null);
- }
- } else if(this.bR == 3) {
- this.a(-1, this.a[109], this.a[30], (String)null);
- } else if(this.bR == 4) {
- this.a(10, this.a[112], this.a[32], this.a[33]);
- } else if(this.bR == 5) {
- this.a(-1, this.a[110], this.a[30], (String)null);
- }
- }
- var9 = false;
- break;
- case -21:
- this.A();
- var9 = false;
- break;
- case -19:
- var9 = this.bf && (this.aK > 0 || var3);
- break;
- case -12:
- if(!this.bf) {
- if(this.cU) {
- var9 = true;
- } else {
- this.aV = 2;
- this.ax = 4;
- var9 = false;
- }
- } else {
- var9 = false;
- }
- }
- if(!var9) {
- return false;
- }
- }
- return true;
- }
- }
- } else {
- return false;
- }
- }
- private final void K() {
- int var1 = this.at;
- int var2 = this.aK <= 0 && !this.bi?3:6;
- this.av -= var2;
- if(this.at == 6) {
- var1 = this.au;
- }
- switch(var1) {
- case 0:
- this.am -= var2;
- break;
- case 1:
- this.am += var2;
- break;
- case 2:
- this.an -= var2;
- break;
- case 3:
- this.an += var2;
- }
- }
- private final boolean L() {
- if(!this.bc || this.at <= 3 && !this.bj && (this.aK > 0 || this.F && !this.bf && this.aZ <= 0)) {
- this.aA = (this.aA + 1) % 12;
- if(this.bf) {
- this.as = (this.as + 1) % 2;
- } else if(this.bj) {
- this.as = 0;
- } else if(this.aZ > 0) {
- this.as = (this.as + 1) % 9;
- } else {
- switch(this.at) {
- case 0:
- case 1:
- case 2:
- case 3:
- if(this.av != 0) {
- if(!this.bk) {
- this.as = (this.as + 1) % 8;
- } else {
- this.as = 1;
- }
- }
- break;
- case 4:
- if(this.bb) {
- ++this.as;
- if(this.as >= 3) {
- this.as = 1;
- this.bb = false;
- }
- } else {
- --this.as;
- if(this.as < 0) {
- this.as = 1;
- this.bb = true;
- }
- }
- break;
- case 5:
- if(this.as < 7) {
- ++this.as;
- }
- break;
- case 6:
- if(this.bb) {
- ++this.as;
- if(this.as >= 10) {
- if(this.bS != 0) {
- this.am();
- } else if(this.bR == 1) {
- this.ae();
- this.aL = 0;
- this.bL = this.bF;
- this.bM = this.bG;
- } else if(this.bR == 5) {
- this.G = true;
- this.g();
- this.bS = this.bT;
- this.bR = 1;
- this.X();
- this.d(true);
- } else {
- this.x();
- }
- return true;
- }
- } else {
- --this.as;
- if(this.as < 0) {
- this.at = 3;
- this.as = 3;
- this.l();
- }
- }
- }
- }
- if(this.aX != -1) {
- this.aX = (byte)((this.aX + 1) % 2);
- }
- this.bc = true;
- } else {
- this.bc = false;
- }
- if(this.at <= 3 && this.bk) {
- this.as = 1;
- }
- return false;
- }
- private final void M() {
- byte var6 = 3;
- for(int var13 = 0; var13 < this.cx; ++var13) {
- byte var8 = this.cA[var13];
- byte var5 = this.cB[var13];
- int var1 = this.cE[var13];
- int var2 = this.cF[var13];
- int var7 = this.cC[var13];
- boolean var12 = this.cD[var13];
- boolean var11 = false;
- int var3;
- int var4;
- if(var7 > 0) {
- var4 = 0;
- var3 = 0;
- switch(var5) {
- case 0:
- var3 = var12?-6:-var6;
- break;
- case 1:
- var3 = var12?6:var6;
- break;
- case 2:
- var4 = var12?-6:-var6;
- break;
- case 3:
- var4 = var12?6:var6;
- }
- if(!var12 || !this.a((int)(var1 + var3), (int)(var2 + var4), var13, (int)4)) {
- var1 += var3;
- var2 += var4;
- this.cE[var13] = (short)var1;
- this.cF[var13] = (short)var2;
- if(this.aw == var13) {
- this.am += var3;
- this.an += var4;
- this.ao = this.am / this.h;
- this.ap = this.an / this.i;
- }
- var7 -= var12?6:var6;
- }
- }
- if(var13 == this.aB && this.aQ > 1) {
- this.d(var1, var2);
- --this.aQ;
- }
- if(var7 <= 0) {
- var4 = var2 / this.i;
- var3 = var1 / this.h;
- byte var9 = this.cq[var4][var3];
- byte var10 = this.cr[var4][var3];
- var7 = 0;
- var12 = false;
- if(var8 == -20) {
- if(var9 == 90) {
- if(this.a((int)(var3 - 1), (int)var4, 0, (byte)var8) && !this.a((int)(var1 - this.h), (int)var2, var13, (int)0)) {
- var5 = 0;
- var7 = this.h;
- }
- } else if(var9 == 89) {
- if(this.a((int)(var3 + 1), (int)var4, 1, (byte)var8) && !this.a((int)(var1 + this.h), (int)var2, var13, (int)1)) {
- var5 = 1;
- var7 = this.h;
- }
- } else if(var9 == 88) {
- if(this.a((int)var3, (int)(var4 - 1), 2, (byte)var8) && !this.a((int)var1, (int)(var2 - this.i), var13, (int)2)) {
- var5 = 2;
- var7 = this.i;
- }
- } else if(var9 == 87) {
- if(this.a((int)var3, (int)(var4 + 1), 3, (byte)var8) && !this.a((int)var1, (int)(var2 + this.i), var13, (int)3)) {
- var5 = 3;
- var7 = this.i;
- }
- } else if((var9 == 91 || var9 == 92 || var9 == 93) && this.a((int)var3, (int)(var4 + 1), 3, (byte)var8) && !this.a((int)var1, (int)(var2 + this.i), var13, (int)3)) {
- var5 = 3;
- var7 = this.i;
- var12 = true;
- }
- } else if(var8 == -32 && var10 == -16 || var8 == -31 && var10 == -15 || var8 == -30 && var10 == -14) {
- var11 = true;
- } else if(this.aQ == 0 || this.bL == this.bF && this.bM == this.bG || this.aB != -1) {
- if(this.cW && var5 != 2 && var3 == this.cG && var4 >= this.cH - 3 && var4 <= this.cH - 1 && this.a((int)var3, (int)(var4 - 1), 2, (byte)var8) && !this.a((int)var1, (int)(var2 - this.i), var13, (int)2)) {
- var5 = 2;
- var7 = this.i;
- } else if(this.cX && var5 != 3 && var3 == this.cI && var4 >= this.cJ + 1 && var4 <= this.cJ + 3 && this.a((int)var3, (int)(var4 + 1), 3, (byte)var8) && !this.a((int)var1, (int)(var2 + this.i), var13, (int)3)) {
- var5 = 3;
- var7 = this.i;
- } else if(this.cY && var5 != 0 && var4 == this.cL && var3 >= this.cK - 3 && var3 <= this.cK - 1 && this.a((int)(var3 - 1), (int)var4, 0, (byte)var8) && !this.a((int)(var1 - this.h), (int)var2, var13, (int)0)) {
- var5 = 0;
- var7 = this.h;
- } else if(this.cZ && var5 != 1 && var4 == this.cN && var3 >= this.cM + 1 && var3 <= this.cM + 3 && this.a((int)(var3 + 1), (int)var4, 1, (byte)var8) && !this.a((int)(var1 + this.h), (int)var2, var13, (int)1)) {
- var5 = 1;
- var7 = this.h;
- }
- if(var7 != 0 && this.aW == var5) {
- this.aW = -1;
- this.aB = var13;
- this.aQ = 64;
- this.d(var3 * this.h, var4 * this.i);
- }
- }
- if(!var11 && var7 == 0) {
- switch(var5) {
- case 0:
- if(this.a((int)(var3 - 1), (int)var4, 0, (byte)var8) && !this.a((int)(var1 - this.h), (int)var2, var13, (int)0)) {
- var7 = this.h;
- }
- break;
- case 1:
- if(this.a((int)(var3 + 1), (int)var4, 1, (byte)var8) && !this.a((int)(var1 + this.h), (int)var2, var13, (int)1)) {
- var7 = this.h;
- }
- break;
- case 2:
- if(this.a((int)var3, (int)(var4 - 1), 2, (byte)var8) && !this.a((int)var1, (int)(var2 - this.i), var13, (int)2)) {
- var7 = this.i;
- }
- break;
- case 3:
- if(this.a((int)var3, (int)(var4 + 1), 3, (byte)var8) && !this.a((int)var1, (int)(var2 + this.i), var13, (int)3)) {
- var7 = this.i;
- }
- }
- }
- if(var7 == 0) {
- var5 = 4;
- }
- }
- this.cC[var13] = (byte)var7;
- this.cB[var13] = (byte)var5;
- this.cD[var13] = var12;
- }
- }
- private final boolean a(int var1, int var2, int var3, int var4) {
- for(int var8 = 0; var8 < this.cx; ++var8) {
- if(var8 != var3) {
- if(var3 != -1) {
- if(this.cB[var8] != var4 && this.b(var1, var2, this.cE[var8], this.cF[var8])) {
- return true;
- }
- } else {
- byte var5 = this.cC[var8];
- short var6 = this.cE[var8];
- short var7 = this.cF[var8];
- switch(this.cB[var8]) {
- case 0:
- var6 = (short)(var6 - var5);
- break;
- case 1:
- var6 = (short)(var6 + var5);
- break;
- case 2:
- var7 = (short)(var7 - var5);
- break;
- case 3:
- var7 = (short)(var7 + var5);
- }
- if(this.b(var1, var2, var6, var7)) {
- return true;
- }
- }
- }
- }
- return false;
- }
- private final boolean b(int var1, int var2, int var3, int var4) {
- int var5 = var1 + this.h - 1;
- int var6 = var3 + this.h - 1;
- int var7 = var2 + this.i - 1;
- int var8 = var4 + this.i - 1;
- return var7 < var4?false:(var2 > var8?false:(var5 < var3?false:var1 <= var6));
- }
- private final boolean a(int var1, int var2, int var3, byte var4) {
- if(var1 >= 0 && var2 >= 0 && var1 < this.ds && var2 < this.dt) {
- byte var5 = this.cr[var2][var1];
- switch(var5) {
- case -44:
- case -43:
- case -42:
- case -29:
- case -28:
- case -27:
- case -26:
- case -19:
- case -7:
- case -6:
- case -5:
- case -4:
- case -3:
- case -2:
- return false;
- case -41:
- case -40:
- case -39:
- case -38:
- case -37:
- case -36:
- case -35:
- case -34:
- case -33:
- case -32:
- case -31:
- case -30:
- case -25:
- case -24:
- case -23:
- case -22:
- case -21:
- case -20:
- case -18:
- case -17:
- case -16:
- case -15:
- case -14:
- case -13:
- case -12:
- case -11:
- case -10:
- case -9:
- case -8:
- default:
- var5 = this.cq[var2][var1];
- if(var4 == -20) {
- switch(var5) {
- case 85:
- case 86:
- return true;
- case 87:
- if(var3 == 2) {
- return false;
- }
- return true;
- case 88:
- if(var3 == 3) {
- return false;
- }
- return true;
- case 89:
- if(var3 == 0) {
- return false;
- }
- return true;
- case 90:
- if(var3 == 1) {
- return false;
- }
- return true;
- case 91:
- case 92:
- case 93:
- if(var3 == 2) {
- return false;
- }
- return true;
- }
- } else {
- switch(var3) {
- case 0:
- if(this.cZ && var2 == this.cN && var1 >= this.cM + 1 && var1 <= this.cM + 3) {
- return false;
- }
- break;
- case 1:
- if(this.cY && var2 == this.cL && var1 >= this.cK - 3 && var1 <= this.cK - 1) {
- return false;
- }
- break;
- case 2:
- if(this.cX && var1 == this.cI && var2 >= this.cJ + 1 && var2 <= this.cJ + 3) {
- return false;
- }
- break;
- case 3:
- if(this.cW && var1 == this.cG && var2 >= this.cH - 3 && var2 <= this.cH - 1) {
- return false;
- }
- }
- if((var5 & 255) >= 71 && (var5 & 255) <= 76) {
- return true;
- }
- }
- return false;
- }
- } else {
- return false;
- }
- }
- private final void N() {
- this.bs = (byte)((this.bs + 1) % 8);
- this.aQ = 16;
- this.d(this.dl, this.dm);
- if(this.dr == 3) {
- int var1 = this.dl / this.h;
- int var2 = this.dm / this.i;
- if(var1 < 0 || var2 < 0 || var1 >= this.ds || var2 >= this.dt) {
- this.do = -1;
- return;
- }
- byte var3 = this.cq[var2][var1];
- byte var4 = this.cr[var2][var1];
- boolean var5 = (var3 & 255) >= 94 && (var3 & 255) <= 200 || (var3 & 255) >= 85 && (var3 & 255) <= 93 || (var3 & 255) >= 71 && (var3 & 255) <= 76;
- if(var5) {
- switch(var3) {
- case -61:
- case -59:
- var5 = false;
- }
- }
- if(var5) {
- switch(var4) {
- case -41:
- case -40:
- var5 = false;
- break;
- case -29:
- this.b((byte)var1, (byte)var2);
- break;
- case -19:
- var5 = false;
- }
- }
- if(var5) {
- switch(var3) {
- case -79:
- if(this.dp == 0) {
- this.dq = 3;
- } else if(this.dp == 2) {
- this.dq = 1;
- } else {
- var5 = false;
- }
- break;
- case -78:
- if(this.dp == 1) {
- this.dq = 3;
- } else if(this.dp == 2) {
- this.dq = 0;
- } else {
- var5 = false;
- }
- break;
- case -77:
- if(this.dp == 0) {
- this.dq = 2;
- } else if(this.dp == 3) {
- this.dq = 1;
- } else {
- var5 = false;
- }
- break;
- case -76:
- if(this.dp == 1) {
- this.dq = 2;
- } else if(this.dp == 3) {
- this.dq = 0;
- } else {
- var5 = false;
- }
- }
- }
- if(!var5) {
- this.do = -1;
- return;
- }
- } else if(this.dr == 0) {
- this.dr = 8;
- if(this.dq != -1) {
- this.dp = this.dq;
- this.dq = -1;
- }
- }
- --this.dr;
- byte var6 = 6;
- switch(this.dp) {
- case 0:
- this.dl -= var6;
- break;
- case 1:
- this.dl += var6;
- break;
- case 2:
- this.dm -= var6;
- break;
- default:
- this.dm += var6;
- }
- }
- private final void b(byte var1, byte var2) {
- if(this.dn >= 5) {
- this.cr[this.di[0]][this.dh[0]] = -1;
- for(int var3 = 0; var3 < this.dn - 1; ++var3) {
- this.dh[var3] = this.dh[var3 + 1];
- this.di[var3] = this.di[var3 + 1];
- this.dj[var3] = this.dj[var3 + 1];
- }
- --this.dn;
- }
- this.dh[this.dn] = var1;
- this.di[this.dn] = var2;
- this.dj[this.dn] = 6;
- ++this.dn;
- this.cr[var2][var1] = -28;
- this.f(this.bF, this.bG);
- }
- private final void O() {
- int var1 = 0;
- boolean var6;
- for(var6 = false; var1 < this.dn; ++var1) {
- byte var5 = this.dj[var1];
- if(var5 > 0) {
- this.dj[var1] = (byte)(var5 - 1);
- } else {
- byte var2 = this.dh[var1];
- byte var3 = this.di[var1];
- byte var4 = this.cr[var3][var2];
- boolean var7 = false;
- var6 = true;
- switch(var4) {
- case -28:
- var4 = -27;
- break;
- case -27:
- var4 = -26;
- break;
- case -26:
- var4 = -1;
- var7 = true;
- }
- this.dj[var1] = 6;
- this.cr[var3][var2] = var4;
- if(var7) {
- for(int var8 = var1; var8 < this.dn - 1; ++var8) {
- this.dh[var8] = this.dh[var8 + 1];
- this.di[var8] = this.di[var8 + 1];
- this.dj[var8] = this.dj[var8 + 1];
- }
- --this.dn;
- --var1;
- }
- }
- }
- if(var6) {
- this.f(this.bF, this.bG);
- }
- }
- private final void P() {
- int var1 = 0;
- boolean var7;
- for(var7 = false; var1 < this.dk; ++var1) {
- byte var6 = this.dg[var1];
- if(var6 > 0) {
- this.dg[var1] = (byte)(var6 - 1);
- } else {
- byte var2 = this.dd[var1];
- byte var3 = this.de[var1];
- byte var4 = this.df[var1];
- boolean var8 = true;
- if(var3 - var4 >= 0 && this.cr[var3 - var4][var2] == -1) {
- byte var5 = this.cq[var3 - var4][var2];
- if((var5 & 255) >= 0 && (var5 & 255) <= 93) {
- this.cr[var3 - var4 + 1][var2] = -34;
- if(var4 <= 1) {
- this.cr[var3][var2] = -18;
- }
- this.cr[var3 - var4][var2] = -50;
- this.df[var1] = (byte)(var4 + 1);
- this.dg[var1] = 16;
- var8 = false;
- var7 = true;
- }
- }
- if(var8) {
- for(int var9 = var1; var9 < this.dk - 1; ++var9) {
- this.dd[var9] = this.dd[var9 + 1];
- this.de[var9] = this.de[var9 + 1];
- this.dg[var9] = this.dg[var9 + 1];
- }
- --this.dk;
- --var1;
- }
- }
- }
- if(var7) {
- this.f(this.bF, this.bG);
- }
- }
- private final void Q() {
- int var1 = 48;
- if(this.cc < this.bG) {
- var1 -= 24;
- } else if(this.cc > this.bG) {
- var1 += 24;
- }
- for(int var2 = 0; var2 < 5; ++var2) {
- if(this.ce[var2] >> this.r > this.v) {
- this.cd[var2] = this.b(this.u) << this.r;
- this.ce[var2] = -(this.b((int)10) << this.r);
- }
- this.cd[var2] += this.b((int)3) - 1 << this.r;
- this.ce[var2] += var1;
- }
- this.cc = this.bG;
- }
- private final void R() {
- if(this.by) {
- ++this.bx;
- if(this.bx >= 8) {
- this.by = false;
- this.bx = 8;
- }
- } else {
- --this.bx;
- if(this.bx <= 0) {
- this.by = true;
- this.bx = 0;
- }
- }
- int var1 = this.bt >> this.r;
- int var2 = this.bu >> this.r;
- if(var1 == this.bv) {
- this.bv = this.b(this.aq + 1 - 24);
- }
- if(var2 == this.bw) {
- this.bw = this.b(this.ar + 1 - 24);
- }
- int var3 = this.b((int)48);
- this.bt += var1 < this.bv?var3:-var3;
- var3 = this.b((int)24);
- this.bu += var2 < this.bw?var3:-var3;
- }
- private final void S() {
- if(this.bD == 0) {
- this.bz = (this.bz + 1) % 8;
- this.bA = (this.bA + 1) % 6;
- this.bB = (this.bB + 1) % 4;
- this.bC = (this.bC + 1) % 3;
- int var1;
- int var2;
- for(int var3 = 0; var3 < 3; ++var3) {
- byte var5 = (byte)(this.ab[var3] + 1);
- if(var5 == 0 || var5 >= 8) {
- var1 = this.b(this.u) + this.bF;
- var2 = this.b(this.v) + this.bG;
- if(this.c(var1 / this.h, var2 / this.i) == -1) {
- int var4 = this.b(var1 / this.h, var2 / this.i) & 255;
- if(var4 < 71 || var4 > 76) {
- var5 = -1;
- }
- } else {
- var5 = -1;
- }
- this.Z[var3] = (short)var1;
- this.aa[var3] = (short)var2;
- }
- this.ab[var3] = var5;
- }
- for(var2 = 0; var2 < this.dB; ++var2) {
- for(var1 = 0; var1 < this.dA; ++var1) {
- boolean var8 = false;
- byte var6 = this.dD[var2][var1];
- byte var7 = this.dE[var2][var1];
- switch(var6) {
- case -106:
- if(this.cy == 0) {
- var8 = true;
- }
- break;
- case -75:
- case -74:
- case -73:
- case -72:
- case 86:
- case 87:
- case 88:
- case 89:
- case 90:
- case 91:
- case 92:
- case 93:
- var8 = true;
- }
- if(!var8) {
- switch(var7) {
- case -48:
- var8 = this.cW;
- break;
- case -47:
- var8 = this.cX;
- break;
- case -46:
- var8 = this.cY;
- break;
- case -45:
- var8 = this.cZ;
- break;
- case -12:
- var8 = true;
- break;
- case -8:
- var8 = this.bE;
- }
- }
- if(var8) {
- this.a(var6, var7, var1 * this.h, var2 * this.i);
- }
- }
- }
- }
- if(this.bB == 0) {
- if(this.bE) {
- this.bE = false;
- } else if(this.b((int)7) == 0) {
- this.bE = true;
- }
- }
- ++this.bD;
- if(this.bD >= 4) {
- this.bD = 0;
- }
- }
- private final void T() {
- this.bJ = 0;
- this.bK = 0;
- this.d(this.am, this.an);
- this.bN = this.bO = 0;
- this.bP = this.bQ = 0;
- this.ba = true;
- this.V();
- }
- private final void d(int var1, int var2) {
- this.bL = var1 + this.j - (this.du >> 1) + this.bJ;
- this.bM = var2 + this.k - (this.dv >> 1) + this.bK;
- this.U();
- }
- private final void U() {
- if(this.bL < 0) {
- this.bL = 0;
- } else if(this.bL > this.bH) {
- this.bL = this.bH;
- }
- if(this.bM < 0) {
- this.bM = 0;
- } else if(this.bM > this.bI) {
- this.bM = this.bI;
- }
- }
- private final void V() {
- int var1 = this.bL - this.bF;
- int var2 = this.bM - this.bG;
- boolean var3 = true;
- boolean var4 = true;
- if(var1 < 0) {
- var1 = -var1;
- var3 = false;
- }
- if(var2 < 0) {
- var2 = -var2;
- var4 = false;
- }
- if(var1 != 0) {
- if(var1 > this.bP + this.bN) {
- if(this.bN < (!this.ba && !this.dR && this.aQ <= 0?6:24)) {
- ++this.bN;
- this.bP += this.bN;
- }
- } else if(var1 < this.bP + this.bN && this.bN > 1) {
- this.bP -= this.bN;
- --this.bN;
- }
- } else {
- this.bN = this.bP = 0;
- }
- if(var2 != 0) {
- if(var2 > this.bQ + this.bO) {
- if(this.bO < (!this.ba && !this.dR && this.aQ <= 0?6:24)) {
- ++this.bO;
- this.bQ += this.bO;
- }
- } else if(var2 < this.bQ + this.bO && this.bO > 1) {
- this.bQ -= this.bO;
- --this.bO;
- }
- } else {
- this.bO = this.bQ = 0;
- }
- if(var1 - this.bN < 0) {
- this.bN = var1;
- }
- if(var2 - this.bO < 0) {
- this.bO = var2;
- }
- this.bF += var3?this.bN:-this.bN;
- this.bG += var4?this.bO:-this.bO;
- this.g(this.bF, this.bG);
- if(this.ba && this.bL == this.bF && this.bM == this.bG) {
- this.ba = false;
- }
- }
- private final void W() {
- for(int var1 = 0; var1 < this.co.length; ++var1) {
- this.co[var1] = this.a(this.co[var1], "/b" + var1 + ".png");
- }
- this.cp = this.a(this.cp, "/ta.png");
- this.ci = this.a(this.ci, "/hud.png");
- this.cm = this.a(this.cm, "/bf.png");
- this.cn = this.a(this.cn, "/alarm.png");
- }
- private final void c(boolean var1) {
- for(int var2 = 0; var2 < (var1?9:10); ++var2) {
- this.co[var2] = null;
- }
- if(!var1) {
- this.cp = null;
- }
- this.cm = null;
- this.cn = null;
- }
- private final void X() {
- this.W();
- this.Y();
- }
- private final void Y() {
- this.X = false;
- this.b(true, -1);
- this.cG = this.cI = this.cK = this.cM = -1;
- this.cW = this.cX = this.cY = this.cZ = false;
- this.cO = -1;
- this.dl = -1;
- this.do = -1;
- this.cS = false;
- if(this.bS == 0) {
- this.F = this.E = false;
- }
- this.e(this.bS, this.bR);
- this.ab();
- int var1;
- if(this.cS) {
- for(var1 = 0; var1 < 5; ++var1) {
- this.cd[var1] = this.b(this.u) << this.r;
- this.ce[var1] = this.b(this.v) << this.r;
- }
- } else {
- this.bv = this.b((int)2) == 0?-24:this.aq + 1;
- this.bw = this.b(this.ar + 1 - 24);
- this.bt = this.bv << this.r;
- this.bu = this.bw << this.r;
- }
- this.bn = -1;
- this.bU = 0;
- this.da = this.dc = false;
- this.db = false;
- this.cz = 0;
- this.bY = true;
- this.bW = 0L;
- this.bz = 0;
- this.bA = 0;
- this.bB = 0;
- this.bC = 0;
- this.dQ = false;
- this.av = 0;
- this.at = 6;
- this.bb = false;
- this.bc = false;
- this.as = 9;
- this.bd = false;
- this.cT = this.cU = this.cV = this.be = false;
- this.aK = 0;
- this.aL = 0;
- this.aw = -1;
- this.bf = false;
- this.bg = false;
- this.bj = false;
- this.aY = 0;
- this.bk = this.bl = false;
- this.aU = 0;
- this.bh = false;
- this.aZ = 0;
- this.bi = false;
- this.ax = 0;
- this.az = 0;
- this.aT = 0;
- this.aX = -1;
- this.aQ = 0;
- this.aX = -1;
- this.aW = -1;
- this.aB = -1;
- this.aC = -1;
- this.aO = -1;
- this.aE = -1;
- this.aR = -1;
- this.aG = this.aI = -1;
- for(var1 = 0; var1 < 5; ++var1) {
- this.ab[var1] = (byte)(-this.b((int)8) - 1);
- }
- this.aq = this.ds * this.h - 1;
- this.ar = this.dt * this.i - 1;
- this.bH = this.aq - this.du;
- this.bI = this.ar - this.dv;
- if(this.bH < 0) {
- this.bH = 0;
- }
- if(this.bI < 0) {
- this.bI = 0;
- }
- this.dR = false;
- this.ba = false;
- this.bJ = 0;
- this.bK = 0;
- this.d(this.am, this.an);
- this.bF = this.bL;
- this.bG = this.bM;
- this.ad();
- this.f(this.bF, this.bG);
- String var2;
- if(this.bS != 0) {
- if(this.bR != 11 && this.bR != 12) {
- var2 = this.a[39] + this.bS + '-' + this.bR;
- } else {
- var2 = this.a[42];
- }
- } else {
- switch(this.bR) {
- case 1:
- var2 = this.a[22];
- break;
- case 2:
- var2 = this.a[40];
- break;
- case 3:
- var2 = this.a[41];
- break;
- case 4:
- var2 = this.a[42];
- break;
- default:
- var2 = this.a[43];
- }
- }
- this.a(75, var2, 1);
- this.b(this.F());
- }
- private final void a(byte var1, String var2, byte var3) {
- this.ec = var1;
- this.ee = var2;
- this.ed = var3;
- }
- private final Image a(Image var1, String var2) {
- if(var1 != null) {
- return var1;
- } else {
- try {
- return Image.createImage(var2);
- } catch (Throwable var4) {
- this.c();
- return null;
- }
- }
- }
- private final void Z() {
- this.cq = (byte[][])null;
- this.cr = (byte[][])null;
- this.cA = null;
- this.cB = null;
- this.cC = null;
- this.cE = null;
- this.cF = null;
- this.cD = null;
- this.dd = null;
- this.de = null;
- this.df = null;
- this.dg = null;
- }
- private final void aa() {
- int var2 = 0;
- for(int var1 = 1; var1 <= 4; ++var1) {
- this.d(var1);
- this.cv[var2] = this.cs;
- this.cw[var2] = this.cu;
- ++var2;
- }
- }
- private final void d(int var1) {
- byte var2 = 1;
- if(this.y.compareTo("DE") == 0) {
- var2 = 0;
- } else if(this.y.compareTo("EN") == 0) {
- var2 = 1;
- } else if(this.y.compareTo("FR") == 0) {
- var2 = 2;
- } else if(this.y.compareTo("IT") == 0) {
- var2 = 3;
- } else if(this.y.compareTo("SP") == 0) {
- var2 = 4;
- } else if(this.y.compareTo("PG") == 0) {
- var2 = 5;
- }
- try {
- InputStream var3 = this.getClass().getResourceAsStream((var1 < 10?"0":"") + var1 + ".dat");
- DataInputStream var4 = new DataInputStream(var3);
- var4.readShort();
- this.cu = var4.readByte();
- for(int var5 = 0; var5 <= var2; ++var5) {
- this.cs = var4.readUTF();
- this.ct = var4.readUTF();
- }
- var4.close();
- var4 = null;
- } catch (Exception var7) {
- this.c();
- }
- }
- private final void e(int var1, int var2) {
- this.Z();
- this.bV = 0;
- try {
- InputStream var3 = this.getClass().getResourceAsStream((var1 < 10?"0":"") + var1 + ".dat");
- DataInputStream var4 = new DataInputStream(var3);
- int var5;
- for(var5 = 0; var5 < var2; ++var5) {
- int var8 = var4.readShort();
- while(true) {
- int var12 = var4.skipBytes(var8);
- if(var12 >= var8) {
- break;
- }
- var8 -= var12;
- }
- }
- var4.readShort();
- this.ds = var4.readByte();
- this.dt = var4.readByte();
- this.cq = new byte[this.dt][this.ds];
- for(var5 = 0; var5 < this.dt; ++var5) {
- var4.readFully(this.cq[var5]);
- }
- this.cr = new byte[this.dt][this.ds];
- for(int var7 = 0; var7 < this.dt; ++var7) {
- for(int var6 = 0; var6 < this.ds; ++var6) {
- this.cr[var7][var6] = -1;
- }
- }
- this.cx = var4.readByte();
- this.cA = new byte[this.cx];
- this.cB = new byte[this.cx];
- this.cC = new byte[this.cx];
- this.cE = new short[this.cx];
- this.cF = new short[this.cx];
- this.cD = new boolean[this.cx];
- short var16 = var4.readShort();
- int var9 = 0;
- for(var5 = 0; var5 < var16; ++var5) {
- byte var10 = var4.readByte();
- byte var14 = var4.readByte();
- byte var15 = var4.readByte();
- boolean var11 = false;
- switch(var10) {
- case -41:
- this.cr[var15][var14 + 1] = -40;
- this.cr[var15][var14 + 2] = -39;
- case -40:
- case -39:
- case -36:
- case -35:
- case -34:
- case -33:
- case -29:
- case -28:
- case -27:
- case -26:
- case -24:
- case -23:
- case -22:
- case -21:
- case -19:
- case -18:
- case -17:
- case -16:
- case -15:
- case -14:
- case -13:
- case -12:
- case -11:
- case -10:
- case -9:
- default:
- break;
- case -38:
- this.cr[var15 + 1][var14] = -22;
- break;
- case -37:
- this.cr[var15 + 1][var14] = -21;
- break;
- case -32:
- case -31:
- case -30:
- case -20:
- this.cE[var9] = (short)(var14 * this.h);
- this.cF[var9] = (short)(var15 * this.i);
- this.cB[var9] = 4;
- this.cC[var9] = 0;
- this.cA[var9] = var10;
- ++var9;
- var11 = true;
- break;
- case -25:
- this.cr[var15 + 1][var14] = -9;
- break;
- case -8:
- ++this.bV;
- }
- if(!var11) {
- this.cr[var15][var14] = var10;
- }
- }
- var4.close();
- var4 = null;
- } catch (Exception var13) {
- this.c();
- }
- }
- private final void ab() {
- byte[] var7 = new byte[]{0, 0, 0, 0, 0, 0, 0};
- if(this.bS == 0 && this.bR == 1) {
- var7[6] = (byte)(1 - this.D[6]);
- var7[4] = (byte)(2 - this.D[4]);
- var7[5] = (byte)(1 - this.D[5]);
- var7[2] = (byte)(1 - this.D[2]);
- var7[3] = (byte)(1 - this.D[3]);
- var7[0] = (byte)(1 - this.D[0]);
- var7[1] = (byte)(1 - this.D[1]);
- }
- this.cy = 0;
- int var4 = 0;
- this.cR = this.bS != 0 && (this.bR == 11 || this.bR == 12);
- for(int var2 = 0; var2 < this.dt; ++var2) {
- for(int var1 = 0; var1 < this.ds; ++var1) {
- byte var5 = this.cq[var2][var1];
- byte var6 = this.cr[var2][var1];
- if(var5 == -107) {
- this.ao = var1;
- this.ap = var2;
- this.am = var1 * this.h;
- this.an = var2 * this.i;
- } else if(var5 == -56) {
- ++this.cy;
- } else if(var5 == 77) {
- this.cS = true;
- } else if(this.bS == 0 && this.bR == 1 && (var5 & 255) >= 151 && (var5 & 255) <= 157) {
- int var3 = (var5 & 255) - 151;
- if(var7[var3] > 0) {
- --var7[var3];
- } else {
- this.cq[var2][var1] = -98;
- }
- }
- if(var6 == -54) {
- this.cQ = true;
- ++this.cy;
- } else if(var6 == -53) {
- this.cQ = false;
- ++this.cy;
- } else if(var6 == -33) {
- ++var4;
- } else if(var6 == -48) {
- this.cG = (short)var1;
- this.cH = (short)var2;
- } else if(var6 == -47) {
- this.cI = (short)var1;
- this.cJ = (short)var2;
- } else if(var6 == -46) {
- this.cK = (short)var1;
- this.cL = (short)var2;
- } else if(var6 == -45) {
- this.cM = (short)var1;
- this.cN = (short)var2;
- } else if(var6 == -41) {
- this.cO = (short)var1;
- this.cP = (short)var2;
- }
- }
- }
- this.dk = 0;
- this.dd = new byte[var4];
- this.de = new byte[var4];
- this.df = new byte[var4];
- this.dg = new byte[var4];
- this.dn = 0;
- }
- private final void b(int var1, int var2, boolean var3) {
- this.du = var1;
- this.dv = var2;
- this.dC = var3;
- this.dw = (var1 + this.h - 1) / this.h;
- this.dx = (var2 + this.i - 1) / this.i;
- byte var4;
- if(!this.dC) {
- var4 = 3;
- } else {
- var4 = 1;
- }
- this.dA = this.dw + var4;
- this.dB = this.dx + var4;
- this.dy = this.dA * this.h;
- this.dz = this.dB * this.i;
- }
- private final void ac() {
- this.dG = null;
- this.dF = null;
- this.dF = Image.createImage(this.dy, this.dz);
- this.dG = this.dF.getGraphics();
- this.dD = this.dE = (byte[][])null;
- this.dD = new byte[this.dB][this.dA];
- this.dE = new byte[this.dB][this.dA];
- for(int var1 = 0; var1 < this.dB; ++var1) {
- for(int var2 = 0; var2 < this.dA; ++var2) {
- this.dD[var1][var2] = -1;
- this.dE[var1][var2] = 0;
- }
- }
- }
- private final void ad() {
- this.dG.setColor(0);
- this.dG.setClip(0, 0, this.dy, this.dz);
- this.dG.fillRect(0, 0, this.dy, this.dz);
- for(int var1 = 0; var1 < this.dB; ++var1) {
- for(int var2 = 0; var2 < this.dA; ++var2) {
- this.dD[var1][var2] = -1;
- this.dE[var1][var2] = 0;
- }
- }
- }
- private final void f(int var1, int var2) {
- byte var3;
- if(!this.dC) {
- var3 = 1;
- } else {
- var3 = 0;
- }
- int var4 = var1 / this.h - var3;
- int var5 = var2 / this.i - var3;
- int var6 = var4 + this.dw + var3;
- int var7 = var5 + this.dx + var3;
- if(var4 < 0) {
- var4 = 0;
- }
- if(var6 >= this.ds) {
- var6 = this.ds - 1;
- }
- if(var5 < 0) {
- var5 = 0;
- }
- if(var7 >= this.dt) {
- var7 = this.dt - 1;
- }
- int var12 = var4 % this.dA;
- int var11 = var5 % this.dB;
- for(int var9 = var5; var9 <= var7; ++var9) {
- int var10 = var12;
- for(int var8 = var4; var8 <= var6; ++var8) {
- this.c(var8, var9, var10, var11);
- ++var10;
- if(var10 >= this.dA) {
- var10 = 0;
- }
- }
- ++var11;
- if(var11 >= this.dB) {
- var11 = 0;
- }
- }
- }
- private final void g(int var1, int var2) {
- byte var3;
- if(!this.dC) {
- var3 = 1;
- } else {
- var3 = 0;
- }
- int var4 = var1 / this.h - var3;
- int var5 = var2 / this.i - var3;
- int var6 = var4 + this.dw + var3;
- int var7 = var5 + this.dx + var3;
- int var9 = var4 >= 0?var4:0;
- int var10 = var6 < this.ds?var6:this.ds - 1;
- int var13 = var5 % this.dB;
- int var14 = var7 % this.dB;
- int var11 = var9 % this.dA;
- int var8;
- for(var8 = var9; var8 <= var10; ++var8) {
- if(var5 >= 0) {
- this.c(var8, var5, var11, var13);
- }
- if(var7 < this.dt) {
- this.c(var8, var7, var11, var14);
- }
- ++var11;
- if(var11 >= this.dA) {
- var11 = 0;
- }
- }
- var9 = var5 >= 0?var5:0;
- var10 = var7 < this.dt?var7:this.dt - 1;
- var13 = var4 % this.dA;
- var14 = var6 % this.dA;
- int var12 = var9 % this.dB;
- for(var8 = var9; var8 <= var10; ++var8) {
- if(var4 >= 0) {
- this.c(var4, var8, var13, var12);
- }
- if(var6 < this.ds) {
- this.c(var6, var8, var14, var12);
- }
- ++var12;
- if(var12 >= this.dB) {
- var12 = 0;
- }
- }
- }
- private final void c(int var1, int var2, int var3, int var4) {
- byte var5 = this.cq[var2][var1];
- byte var6 = this.cr[var2][var1];
- if(this.dD[var4][var3] != var5 || this.dE[var4][var3] != var6) {
- this.dD[var4][var3] = var5;
- this.dE[var4][var3] = var6;
- this.a(var5, var6, var3 * this.h, var4 * this.i);
- }
- }
- private final void d(Graphics var1, int var2, int var3) {
- if(this.dF != null) {
- boolean var6 = false;
- boolean var7 = false;
- int var4 = var2 % this.dy;
- int var5 = var3 % this.dz;
- if(var4 + this.du > this.dy) {
- var6 = true;
- }
- if(var5 + this.dv > this.dz) {
- var7 = true;
- }
- var1.drawImage(this.dF, -var4, -var5, 20);
- if(var6) {
- var1.drawImage(this.dF, this.dy - var4, -var5, 20);
- }
- if(var7) {
- var1.drawImage(this.dF, -var4, this.dz - var5, 20);
- }
- if(var6 && var7) {
- var1.drawImage(this.dF, this.dy - var4, this.dz - var5, 20);
- }
- }
- }
- private final void d(boolean var1) {
- this.dT = var1;
- }
- private final void ae() {
- this.i();
- this.c(true);
- this.co[9] = this.a(this.co[9], "/b9.png");
- this.cp = this.a(this.cp, "/ta.png");
- this.dH = this.a(this.dH, "/title.png");
- this.bf = false;
- this.bg = false;
- this.aT = 0;
- this.aK = 0;
- this.bj = true;
- this.as = 0;
- this.av = 1;
- this.az = 0;
- this.at = 1;
- this.au = 0;
- this.aC = 0;
- this.aD = 0;
- this.aF = (this.w - this.dH.getHeight() - this.i - 72 >> 1) + this.dH.getHeight() + this.i + (this.i >> 1);
- this.am = -120;
- this.an = this.w;
- this.ao = this.am << this.r;
- this.ap = this.an << this.r;
- this.m();
- this.b(true, -1);
- this.x = 4;
- this.b("/title.mid");
- this.dJ = 0;
- this.dK = true;
- this.d(false);
- this.U = false;
- }
- private final boolean af() {
- if(this.cb == 0 && this.U) {
- this.R = this.S = this.T = false;
- this.c((byte)0, (byte)-1);
- return true;
- } else {
- ++this.dJ;
- if(this.dJ >= 20) {
- this.dJ = 0;
- this.dK = !this.dK;
- }
- this.ao += this.aC;
- this.am = this.ao >> this.r;
- this.ap += this.aD;
- this.an = this.ap >> this.r;
- if(this.an <= this.aF) {
- this.aD = 0;
- }
- switch(this.au) {
- case 0:
- ++this.az;
- if(this.az >= 64) {
- this.aC = 3 << this.r + 1;
- this.aD = -(1 << this.r);
- ++this.au;
- }
- break;
- case 1:
- if(this.am > this.u - this.h >> 1) {
- ++this.au;
- }
- break;
- case 2:
- if(this.aC > 0) {
- this.aC -= 4;
- } else {
- ++this.au;
- }
- break;
- case 3:
- if(this.aC > -(2 << this.r)) {
- this.aC -= 4;
- }
- if(this.am <= (this.u - this.h >> 1) + this.j) {
- ++this.au;
- }
- break;
- case 4:
- if(this.aC < 0) {
- this.aC += 4;
- } else {
- this.aC = 0;
- ++this.au;
- }
- }
- this.L();
- this.n();
- return true;
- }
- }
- private final int e(int var1) {
- switch(this.dM) {
- case 0:
- return 0;
- case 1:
- return this.dO[this.dL] * var1 >> 8;
- default:
- return this.dO[18 - this.dL] * var1 >> 8;
- }
- }
- private final void a(boolean var1, int var2) {
- this.dM = (byte)(var1?1:2);
- this.dN = (byte)var2;
- this.dL = 18;
- }
- private final void c(byte var1, byte var2) {
- int var4 = 0;
- int var6 = -1;
- this.dW = var1;
- this.eb = var2;
- if(!this.dS) {
- if(!this.dQ) {
- this.k();
- }
- this.d(false);
- this.dS = true;
- }
- int var3;
- int var7;
- this.dU = new String[20];
- this.dV = new short[20];
- this.ea = 0;
- this.dX = 0;
- int var5;
- label170:
- switch(var1) {
- case 0:
- for(var3 = 0; var3 < 4; ++var3) {
- if(this.A[var3] > 0) {
- this.dU[var4] = this.a[1];
- this.dV[var4++] = 1;
- break;
- }
- }
- this.dU[var4] = this.a[0];
- this.dV[var4++] = 0;
- this.dU[var4] = this.a[22];
- this.dV[var4++] = 20;
- this.dU[var4] = this.a[23];
- this.dV[var4++] = 14;
- if(this.M[0].length() > 0) {
- this.dU[var4] = this.a[24];
- this.dV[var4++] = 15;
- }
- this.dU[var4] = this.a[18];
- this.dV[var4++] = 10;
- this.dU[var4] = this.a[4] + this.a[this.c == 1?2:3];
- this.dV[var4++] = 11;
- this.dU[var4] = this.a[5] + this.bq;
- this.dV[var4++] = 13;
- if(this.D[3] > 0) {
- this.dU[var4] = this.a[6];
- this.dV[var4++] = 16;
- }
- this.dU[var4] = this.a[17];
- this.dV[var4++] = 12;
- this.dU[var4] = this.a[19];
- this.dV[var4++] = 3;
- this.dU[var4] = this.a[21];
- this.dV[var4++] = 4;
- break;
- case 1:
- if(this.bS != 0) {
- if(this.C) {
- this.dU[var4] = "CHEAT!";
- this.dV[var4++] = 99;
- }
- if(this.D[5] > 0) {
- this.dU[var4] = this.a[87] + this.a[this.F?2:3];
- this.dV[var4++] = 30;
- }
- if(this.D[6] > 0) {
- this.dU[var4] = this.a[88] + this.a[this.E?2:3];
- this.dV[var4++] = 31;
- }
- if(!this.dc) {
- this.dU[var4] = this.a[27];
- this.dV[var4++] = 6;
- }
- this.dU[var4] = this.a[18];
- this.dV[var4++] = 10;
- }
- this.dU[var4] = this.a[4] + this.a[this.c == 1?2:3];
- this.dV[var4++] = 11;
- if(this.bS != 0 && this.D[4] > 0) {
- this.dU[var4] = this.a[89] + (this.H != -1?Integer.toString(this.H + 1):this.a[90]);
- this.dV[var4++] = 32;
- var6 = this.a[89].length() + this.a[90].length();
- }
- this.dU[var4] = this.a[20];
- this.dV[var4++] = 8;
- break;
- case 2:
- var7 = 0;
- int var8;
- for(var8 = 0; (var5 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(59, var8)) != -1; var8 = var5 + 1) {
- ++var7;
- }
- var8 = 0;
- var3 = 0;
- while(true) {
- if(var3 >= var7) {
- break label170;
- }
- var5 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(61, var8);
- this.dU[var4] = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(var8, var5);
- var8 = var5 + 1;
- this.dV[var4++] = (short)var8;
- var5 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(59, var8);
- if(this.y.compareTo("DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(var8, var5)) == 0) {
- this.dX = (byte)var3;
- }
- var8 = var5 + 1;
- ++var3;
- }
- case 3:
- var5 = 0;
- var3 = 1;
- while(true) {
- if(var3 > 4) {
- break label170;
- }
- if(var2 == 0 || var2 == 1 && this.A[var5] > 0) {
- this.dU[var4] = this.cv[var5];
- this.dV[var4++] = (short)var3;
- }
- ++var5;
- ++var3;
- }
- case 4:
- if(this.D[0] > 0) {
- this.dU[var4] = this.a[25];
- this.dV[var4++] = 1;
- }
- if(this.D[1] > 0) {
- this.dU[var4] = this.a[26];
- this.dV[var4++] = 2;
- }
- break;
- case 5:
- this.dU[var4] = this.a[7];
- this.dV[var4++] = 0;
- this.dU[var4] = this.a[8];
- this.dV[var4++] = 1;
- this.dU[var4] = this.a[9];
- this.dV[var4++] = 2;
- this.dU[var4] = this.a[12];
- this.dV[var4++] = 3;
- this.dU[var4] = this.a[13];
- this.dV[var4++] = 4;
- this.dU[var4] = this.a[14];
- this.dV[var4++] = 5;
- this.dU[var4] = this.a[15];
- this.dV[var4++] = 6;
- this.dU[var4] = this.a[16];
- this.dV[var4++] = 7;
- this.dU[var4] = this.a[10];
- this.dV[var4++] = 8;
- this.dU[var4] = this.a[11];
- this.dV[var4++] = 9;
- }
- this.dY = (byte)var4;
- this.ef = this.w - Math.min(this.dZ, var4) * 31 >> 1;
- if(this.dX >= var4) {
- this.dX = (byte)(var4 - 1);
- }
- if(this.ea > this.dX) {
- this.ea = this.dX;
- }
- if(this.dX >= this.ea + this.dZ) {
- this.ea = (byte)(this.dX - this.dZ + 1);
- }
- this.eg = var6 == -1?0:var6;
- for(var3 = 0; var3 < var4; ++var3) {
- var7 = this.dU[var3].length();
- if(var7 > this.eg) {
- this.eg = var7;
- }
- }
- this.eg = (this.eg + 1) * 12 + 10;
- if(this.dW == 2) {
- this.eh = (this.u - this.eg >> 1) - 27;
- this.eg += 78;
- } else if(this.dW == 3) {
- this.eh = (this.u - this.eg >> 1) - 31;
- this.ei = this.u - this.eh - 31;
- this.eg += 86;
- }
- this.eg = Math.max((this.u << 1) / 3, this.eg);
- this.a(true, -1);
- }
- private final boolean ag() {
- boolean var1 = false;
- if(this.dM == 0) {
- if(this.N) {
- this.N = false;
- if(this.dX > 0) {
- --this.dX;
- } else {
- this.dX = (byte)(this.dY - 1);
- }
- if(this.dX < this.ea) {
- this.ea = this.dX;
- } else if(this.dX >= this.ea + this.dZ) {
- this.ea = (byte)(this.dX - this.dZ + 1);
- }
- var1 = true;
- } else if(this.O) {
- this.Q = this.O = false;
- if(this.dX < this.dY - 1) {
- ++this.dX;
- } else {
- this.dX = 0;
- }
- if(this.dX < this.ea) {
- this.ea = this.dX;
- } else if(this.dX >= this.ea + this.dZ) {
- this.ea = (byte)(this.dX - this.dZ + 1);
- }
- var1 = true;
- } else if(!this.Q && !this.P) {
- if(!this.S && !this.R) {
- if(this.T) {
- this.T = this.U = false;
- if(this.x != 11) {
- this.a(false, 1);
- }
- }
- } else {
- this.S = this.R = this.U = false;
- short var2 = this.dV[this.dX];
- if(this.dW != 5 && (this.dW == 2 || var2 != 11 && var2 != 13 && var2 != 30 && var2 != 31 && var2 != 32 && var2 != 101)) {
- if(this.dW == 0 && var2 != 0 && var2 != 1 && var2 != 16 && var2 != 12 || this.dW == 1 && var2 != 99 && var2 != 100 || this.dW == 3) {
- this.b(false, -1);
- }
- this.a(false, 0);
- } else {
- var1 = this.ah();
- }
- }
- } else {
- var1 = this.e(this.P);
- this.Q = this.P = false;
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dL = 0;
- if(this.cb <= 0) {
- if(this.dM == 2) {
- this.dM = 0;
- switch(this.dN) {
- case 0:
- this.ah();
- break;
- case 1:
- this.ai();
- }
- } else {
- this.dM = 0;
- }
- }
- }
- var1 = true;
- }
- return var1;
- }
- private final boolean e(boolean var1) {
- boolean var2 = false;
- if(this.dW == 0 && this.dV[this.dX] == 13) {
- if(var1 && this.bq > 1) {
- var2 = true;
- --this.bq;
- } else if(!var1 && this.bq < 5) {
- var2 = true;
- ++this.bq;
- }
- if(var2) {
- if(this.c == 1) {
- this.a();
- this.b("/title.mid");
- }
- this.g();
- this.dU[this.dX] = this.a[5] + this.bq;
- }
- }
- return var2;
- }
- private final boolean ah() {
- boolean var1;
- boolean var2;
- var1 = false;
- var2 = false;
- short var3 = this.dV[this.dX];
- String var4;
- label184:
- switch(this.dW) {
- case 0:
- case 1:
- switch(var3) {
- case 0:
- case 1:
- this.c((byte)3, (byte)((byte)var3));
- var1 = true;
- break label184;
- case 3:
- this.a((String)this.a[52], 0, (byte)-1);
- this.dS = false;
- var1 = true;
- break label184;
- case 4:
- this.d((byte)1);
- return true;
- case 6:
- this.i();
- this.Y();
- this.x = 1;
- this.d(true);
- var2 = true;
- break label184;
- case 8:
- if(this.bS == 0 && this.bR != 4) {
- this.aj();
- if(this.bR != 1 && this.bR != 5) {
- if(this.bR == 2 || this.bR == 3) {
- this.x();
- }
- } else {
- this.ae();
- }
- } else {
- this.d((byte)0);
- }
- return true;
- case 10:
- this.ao();
- this.dS = false;
- var1 = true;
- break label184;
- case 11:
- if(this.c == 1) {
- this.c = 0;
- } else {
- this.c = 1;
- }
- if(this.x == 4) {
- if(this.c == 0) {
- this.a();
- } else {
- this.b("/title.mid");
- }
- } else if(this.c == 0) {
- this.a();
- } else {
- this.b(this.F());
- }
- this.g();
- this.dU[this.dX] = this.a[4] + this.a[this.c == 1?2:3];
- var1 = true;
- break label184;
- case 12:
- this.c((byte)2, (byte)-1);
- var1 = true;
- break label184;
- case 13:
- ++this.bq;
- if(this.bq > 5) {
- this.bq = 1;
- }
- if(this.c == 1) {
- this.a();
- this.b("/title.mid");
- }
- this.g();
- this.dU[this.dX] = this.a[5] + this.bq;
- var1 = true;
- break label184;
- case 14:
- this.x();
- this.dH = null;
- break label184;
- case 15:
- var4 = this.a[122];
- for(int var6 = 0; var6 < this.M.length && this.M[var6].length() > 0; ++var6) {
- var4 = var4 + this.M[var6] + '#';
- if(var6 == 0) {
- var4 = var4 + '#';
- }
- }
- this.a((String)var4, 0, (byte)-1);
- this.dS = false;
- var1 = true;
- break label184;
- case 16:
- this.c((byte)5, (byte)0);
- var1 = true;
- break label184;
- case 20:
- this.i();
- this.dH = null;
- if(this.c == 1) {
- this.a();
- }
- this.bS = 0;
- this.bR = 1;
- this.X();
- this.x = 1;
- var2 = true;
- break label184;
- case 30:
- this.F = !this.F;
- this.g();
- this.dU[this.dX] = this.a[87] + this.a[this.F?2:3];
- var1 = true;
- break label184;
- case 31:
- this.E = !this.E;
- this.g();
- this.dU[this.dX] = this.a[88] + this.a[this.E?2:3];
- var1 = true;
- break label184;
- case 32:
- ++this.H;
- if(this.H > this.D[4]) {
- this.H = -1;
- }
- this.b(this.F());
- this.g();
- this.dU[this.dX] = this.a[89] + (this.H != -1?Integer.toString(this.H + 1):this.a[90]);
- var1 = true;
- break label184;
- case 99:
- this.aj();
- this.cy = 0;
- this.d(false);
- this.k();
- if(this.dR) {
- this.dR = false;
- this.T();
- }
- this.au = this.at;
- this.at = 6;
- this.as = 0;
- this.bb = true;
- this.am();
- var1 = true;
- default:
- break label184;
- }
- case 2:
- var4 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(var3, "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(59, var3));
- if(var4.compareTo(this.y) != 0) {
- this.y = var4;
- this.a(this.y + ".dat");
- this.g();
- this.aa();
- }
- if(this.x != 11) {
- this.c((byte)0, (byte)-1);
- } else {
- this.aj();
- this.d((byte)2);
- }
- var1 = true;
- break;
- case 3:
- this.i();
- this.dH = null;
- if(this.c == 1) {
- this.a();
- }
- if(this.G) {
- this.bS = var3;
- if(this.eb == 0) {
- this.bR = 1;
- } else {
- this.bR = this.A[var3 - 1];
- if(this.bR == 11 && this.i(this.bS, 11)) {
- this.bR = 3;
- } else if(this.bR == 12 && this.i(this.bS, 12)) {
- this.bR = 6;
- }
- }
- } else {
- this.bT = var3;
- this.bS = 0;
- this.bR = 5;
- }
- this.X();
- this.x = 1;
- var2 = true;
- case 4:
- default:
- break;
- case 5:
- String var5;
- switch(var3) {
- case 0:
- case 1:
- case 2:
- var5 = "/ingame" + var3 + ".mid";
- break;
- case 3:
- var5 = "/mow.mid";
- break;
- case 4:
- var5 = "/sandman.mid";
- break;
- case 5:
- var5 = "/shop.mid";
- break;
- case 6:
- var5 = "/universe.mid";
- break;
- case 7:
- var5 = "/fly.mid";
- break;
- case 8:
- var5 = "/bonus.mid";
- break;
- default:
- var5 = "/cleared.mid";
- }
- this.a(var5, this.bq, false);
- }
- if(var2) {
- this.aj();
- var1 = true;
- }
- return var1;
- }
- private final boolean ai() {
- boolean var1 = false;
- boolean var2 = false;
- switch(this.dW) {
- case 0:
- case 1:
- var2 = true;
- break;
- case 2:
- case 5:
- this.a();
- this.b("/title.mid");
- case 3:
- this.c((byte)0, (byte)-1);
- var1 = true;
- case 4:
- }
- if(var2) {
- this.aj();
- var1 = true;
- }
- return var1;
- }
- private final void aj() {
- this.dS = false;
- if(this.x != 4 && this.x != 11) {
- this.d(true);
- }
- this.dU = null;
- this.dV = null;
- if(!this.dQ) {
- this.l();
- }
- }
- private final void a(Graphics var1, boolean var2) {
- int var3 = 0;
- int var4 = this.ea;
- int var5 = this.ef;
- var5 -= this.e(this.v);
- int var6 = 31 - this.e(31);
- if(this.ea > 0) {
- this.b(var1, this.ch, 0, 0, 17, 9, this.u - 17 >> 1, var5 - 9 - 2);
- }
- while(var3 < this.dZ && var4 < this.dY) {
- if(var2) {
- this.a(var1, this.u - this.eg >> 1, var5, this.eg, 26, var4 == this.dX?'ꊺ':22935, 10370);
- }
- this.a(this.dU[var4], var1, this.u - (this.dU[var4].length() - 1) * 12 - 10 >> 1, var5 + 3 + 2, false);
- if(this.dW == 2) {
- byte var7 = -1;
- String var8 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(this.dV[var4], "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(59, this.dV[var4]));
- if(var8.compareTo("DE") == 0) {
- var7 = 0;
- } else if(var8.compareTo("EN") == 0) {
- var7 = 1;
- } else if(var8.compareTo("FR") == 0) {
- var7 = 2;
- } else if(var8.compareTo("IT") == 0) {
- var7 = 3;
- } else if(var8.compareTo("SP") == 0) {
- var7 = 4;
- } else if(var8.compareTo("PG") == 0) {
- var7 = 5;
- }
- if(var7 != -1) {
- this.b(var1, this.cj, 72 + var7 * 27, 0, 27, 18, this.eh, var5 + 3 + 2 + -1);
- }
- } else if(this.dW == 3) {
- short var14 = this.dV[var4];
- boolean var13 = this.B[var14 - 1];
- if(var13) {
- this.b(var1, this.cj, 18, 0, 31, 18, this.eh, var5 + 3 + 2 + -1);
- } else {
- this.b(var1, this.cj, 0, 0, 18, 18, this.eh + 6, var5 + 3 + 2 + -1);
- }
- byte var12 = this.cw[var14 - 1];
- byte var9;
- byte var10;
- byte var11;
- switch(var12) {
- case 1:
- var9 = 9;
- var10 = 11;
- var11 = 9;
- break;
- case 2:
- var9 = 9;
- var10 = 23;
- var11 = 9;
- break;
- default:
- var9 = 0;
- var10 = 23;
- var11 = 18;
- }
- this.b(var1, this.cj, 49, var9, var10, var10, this.ei + (31 - var10 >> 1), var5 + 3 + 2 + (16 - var11 >> 1));
- }
- var5 += var6;
- ++var4;
- ++var3;
- }
- if(this.ea + this.dZ < this.dY) {
- this.b(var1, this.ch, 0, 9, 17, 9, this.u - 17 >> 1, var5 + 2);
- }
- this.a(var1, this.a[30], this.x != 11?this.a[29]:null, var2);
- }
- private final void d(Graphics var1) {
- boolean var2 = false;
- int var3 = 0;
- int var5 = 0;
- int var6 = 0;
- int var7 = this.ej.length();
- int var9 = 0;
- int var10 = 0;
- int var12;
- if(var1 != null) {
- var12 = this.u - this.ek >> 1;
- var3 = this.w - this.el >> 1;
- this.a(var1, var12, var3, this.ek, this.el, 22935, 10370);
- var3 += 6;
- }
- for(; var5 < var7; ++var5) {
- char var11 = this.ej.charAt(var5);
- if(var11 == 35 || var5 == var7 - 1) {
- if(var11 != 35) {
- ++var5;
- }
- int var8 = var5 - var6;
- if(var8 > var9) {
- var9 = var8;
- }
- if(var1 != null) {
- var12 = this.u - var8 * 12 >> 1;
- for(int var4 = var6; var4 < var5; ++var4) {
- this.a(var1, var12, var3, this.ej.charAt(var4));
- var12 += 12;
- }
- var3 += this.g;
- }
- var6 = var5 + 1;
- ++var10;
- }
- }
- if(var1 == null) {
- this.ek = var9 * 12 + 16;
- this.el = var10 * this.g + 10;
- }
- }
- private final void a(Graphics var1, int var2, int var3, int var4, int var5, int var6, int var7) {
- var1.setClip(var2, var3, var4, var5);
- var1.setColor(var7);
- var1.fillRect(var2, var3 + 1, var4, var5 - 2);
- var1.fillRect(var2 + 1, var3, var4 - 2, var5);
- var1.setColor(var6);
- var1.fillRect(var2 + 3, var3 + 2, var4 - 6, var5 - 4);
- var1.drawLine(var2 + 2, var3 + 3, var2 + 2, var3 + var5 - 4);
- var1.drawLine(var2 + var4 - 3, var3 + 3, var2 + var4 - 3, var3 + var5 - 4);
- }
- private final void a(Graphics var1, String var2, byte var3, int var4) {
- int var5 = var2.length() * 12 + 16;
- int var6 = this.g + 10;
- int var7 = this.u - var5 >> 1;
- if(var3 != 3) {
- if(var3 == 0) {
- var4 = this.w - var6 >> 1;
- } else if(var3 == 1) {
- var4 = 45;
- } else {
- var4 = this.w - var6 - 5;
- }
- }
- this.a(var1, var7, var4, var5, var6, 22935, 10370);
- this.a(var2, var1, this.u >> 1, var4 + 6, true);
- }
- private final int a(String var1, Graphics var2, int var3, int var4, boolean var5) {
- int var7 = var1.length();
- int var8 = (var7 - 1) * 12 + 10;
- if(var5) {
- var3 -= var8 >> 1;
- }
- for(int var9 = 0; var9 < var7; ++var9) {
- this.a(var2, var3, var4, var1.charAt(var9));
- var3 += 12;
- }
- return var3;
- }
- private final void a(Graphics var1, int var2, int var3, int var4, int var5) {
- int var6 = 10;
- int var7 = 1;
- var2 += 13 * (var5 - 1);
- for(int var8 = 0; var8 < var5; ++var8) {
- var1.setClip(var2, var3, 12, 13);
- var1.drawImage(this.cg, var2 - var4 % var6 / var7 * 12, var3, 20);
- var2 -= 13;
- var7 = var6;
- var6 *= 10;
- }
- }
- private final void a(Graphics var1, int var2, int var3, char var4) {
- byte var8 = -1;
- if(var1 != null) {
- var1.setClip(var2, var3, 10, 16);
- }
- int var5;
- if(var4 >= 48 && var4 <= 57) {
- var5 = var4 - 48;
- } else if(var4 >= 65 && var4 <= 90) {
- var5 = 10 + var4 - 65;
- } else {
- switch(var4) {
- case '!':
- var5 = 40;
- break;
- case '\'':
- var5 = 43;
- break;
- case '*':
- var5 = 42;
- break;
- case ',':
- var5 = 37;
- break;
- case '-':
- var5 = 38;
- break;
- case '.':
- var5 = 36;
- break;
- case ':':
- var5 = 39;
- break;
- case '?':
- var5 = 41;
- break;
- case '@':
- var5 = 45;
- break;
- case '©':
- var5 = 44;
- break;
- case 'À':
- var5 = 46;
- var8 = 0;
- break;
- case 'Á':
- var5 = 46;
- var8 = 4;
- break;
- case 'Â':
- var5 = 46;
- var8 = 2;
- break;
- case 'Ã':
- var5 = 46;
- var8 = 3;
- break;
- case 'Ä':
- var5 = 46;
- var8 = 1;
- break;
- case 'Ç':
- var5 = 12;
- var8 = 5;
- break;
- case 'È':
- var5 = 47;
- var8 = 0;
- break;
- case 'É':
- var5 = 47;
- var8 = 4;
- break;
- case 'Ê':
- var5 = 47;
- var8 = 2;
- break;
- case 'Ë':
- var5 = 47;
- var8 = 1;
- break;
- case 'Ì':
- var5 = 48;
- var8 = 0;
- break;
- case 'Í':
- var5 = 48;
- var8 = 4;
- break;
- case 'Î':
- var5 = 48;
- var8 = 2;
- break;
- case 'Ï':
- var5 = 48;
- var8 = 1;
- break;
- case 'Ñ':
- var5 = 51;
- var8 = 3;
- break;
- case 'Ò':
- var5 = 49;
- var8 = 0;
- break;
- case 'Ó':
- var5 = 49;
- var8 = 4;
- break;
- case 'Ô':
- var5 = 49;
- var8 = 2;
- break;
- case 'Õ':
- var5 = 49;
- var8 = 3;
- break;
- case 'Ö':
- var5 = 49;
- var8 = 1;
- break;
- case 'Ù':
- var5 = 50;
- var8 = 0;
- break;
- case 'Ú':
- var5 = 50;
- var8 = 4;
- break;
- case 'Û':
- var5 = 50;
- var8 = 2;
- break;
- case 'Ü':
- var5 = 50;
- var8 = 1;
- break;
- default:
- return;
- }
- }
- if(var1 != null) {
- int var7 = var5 / 18;
- int var6 = var5 % 18;
- var1.drawImage(this.cf, var2 - var6 * 10, var3 - var7 * 16, 20);
- if(var8 != -1) {
- var1.setClip(var2, var3 + (var8 != 5?-3:16), 10, 3);
- var7 = var8 / 2;
- var6 = var8 % 2;
- var1.drawImage(this.cf, var2 - (160 + var6 * 10), var3 + (var8 != 5?-3:16) - (32 + var7 * 3), 20);
- }
- }
- }
- private final void a(String var1, int var2, byte var3) {
- this.eu = this.dS;
- this.ew = var1;
- this.ep = 0;
- this.en = var2;
- this.eo = 0;
- this.er = this.u;
- this.ev = var3;
- this.a((Graphics)null, 0, 0, true, true, true, true);
- this.em = this.x;
- this.x = 5;
- this.a(true, -1);
- }
- private final boolean ak() {
- boolean var1 = false;
- if(this.dM == 0) {
- if(this.N) {
- this.N = false;
- if(this.ep > 0) {
- this.ep -= 2;
- if(this.ep < 0) {
- this.ep = 0;
- }
- var1 = true;
- }
- } else if(this.O) {
- this.O = false;
- if(this.ep < this.eq) {
- this.ep += 2;
- if(this.ep > this.eq) {
- this.ep = this.eq;
- }
- var1 = true;
- }
- } else if(this.S || this.T || this.R) {
- this.S = this.T = this.R = false;
- this.a(false, 0);
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dL = 0;
- if(this.dM == 2) {
- this.dM = 0;
- switch(this.dN) {
- case 0:
- this.al();
- }
- } else {
- this.dM = 0;
- }
- }
- var1 = true;
- }
- return var1;
- }
- private final void al() {
- if(this.ev == -1) {
- this.x = this.em;
- this.dS = this.eu;
- this.b(true, -1);
- this.a(true, -1);
- } else if(this.ev == 0) {
- this.ae();
- }
- }
- private final void a(Graphics var1, int var2, int var3, boolean var4, boolean var5, boolean var6, boolean var7) {
- int var10 = 0;
- boolean var12 = false;
- int var11 = this.w - this.en - this.eo;
- if(var1 != null && var4) {
- if(var5) {
- var1.setClip(0, 0, this.u, this.v);
- var1.setColor(0);
- var1.fillRect(0, 0, this.u, this.v);
- }
- int var20 = this.er - this.e(this.er);
- int var21 = var11 - this.e(var11);
- this.a(var1, this.u - var20 >> 1, this.en + (var11 - var21 >> 1), var20, var21, var2, var3);
- }
- int var14 = (this.er - 7) / 12;
- this.et = (var11 - 19) / this.g;
- int var15 = this.ep + this.et;
- int var18 = this.ew.length();
- int var16 = 0;
- this.es = 0;
- int var17 = 0;
- int var19 = -1;
- int var22 = this.e(this.u);
- if(var1 != null) {
- var10 = 5 + this.en + (var11 - (var4?19:7) - this.et * this.g >> 1);
- if(this.eq < 0 && var7) {
- var10 -= this.eq * this.g >> 1;
- }
- }
- for(; var17 < var18; ++var17) {
- char var13 = this.ew.charAt(var17);
- ++var16;
- if(var13 == 32 || var13 == 46 || var13 == 44 || var13 == 45 || var13 == 58 || var13 == 58 || var13 == 35) {
- var19 = var17;
- }
- if(var16 >= var14 || var13 == 35 || var17 >= var18 - 1) {
- if(var19 == -1 || var17 >= var18 - 1) {
- var19 = var17;
- }
- if(var1 != null && this.es >= this.ep) {
- if(this.dM == 0 || !var4) {
- var13 = this.ew.charAt(var19);
- int var9;
- if(var13 != 32 && var13 != 35) {
- var9 = this.u - (var19 - (var17 - var16 + 1) + 1) * 12 >> 1;
- } else {
- var9 = this.u - (var19 - (var17 - var16 + 1)) * 12 >> 1;
- }
- for(int var8 = var17 - var16 + 1; var8 <= var19; ++var8) {
- this.a(var1, var9 - var22, var10, this.ew.charAt(var8));
- var9 += 12;
- }
- }
- var10 += this.g;
- }
- var16 = var17 - var19;
- if(var19 + 1 < var18 && this.ew.charAt(var19 + 1) == 32) {
- ++var17;
- }
- var19 = -1;
- ++this.es;
- if(var1 != null && this.es >= var15) {
- break;
- }
- }
- }
- if(var1 != null) {
- if(var6 && this.dM == 0) {
- if(this.ep > 0) {
- this.b(var1, this.ch, 0, 0, 17, 9, (this.u >> 1) - 17 + 1, this.en + var11 - 9 - 4);
- }
- if(this.ep < this.eq) {
- this.b(var1, this.ch, 0, 9, 17, 9, (this.u >> 1) - 1, this.en + var11 - 9 - 4);
- }
- }
- } else {
- if(var16 > 0) {
- ++this.es;
- }
- this.eq = this.es - this.et;
- }
- }
- private final void b(boolean var1, int var2) {
- this.bZ = 0;
- this.cb = (byte)(var1?1:2);
- this.ca = var2;
- }
- private final void am() {
- this.I = (short)(this.I + this.bU);
- this.ec = 0;
- this.d(false);
- if(this.c == 1) {
- this.a("/cleared.mid", this.bq, false);
- }
- this.b(false, -1);
- if(this.bR != 11 && this.bR != 12) {
- int var5 = 2 + this.a[48].length();
- int var1 = (int)this.bW / 1000;
- int var2 = var1 / 60;
- int var3 = var1 - var2 * 60;
- StringBuffer var6 = new StringBuffer(100);
- var6.append(this.a[44]);
- var6.append("##");
- var6.append(this.a[45]);
- int var4 = var6.length();
- if(var2 <= 9) {
- var6.append('0');
- }
- var6.append(var2);
- var6.append(':');
- if(var3 <= 9) {
- var6.append('0');
- }
- var6.append(var3);
- this.a(var6, "", var5 - (var6.length() - var4), ' ', false);
- var6.append("#");
- var6.append(this.a[46]);
- var4 = var6.length();
- var6.append(this.bU);
- var6.append(this.a[48]);
- var6.append(this.bV);
- this.a(var6, "", var5 - (var6.length() - var4), ' ', false);
- var6.append("#");
- var6.append(this.a[47]);
- this.a(var6, String.valueOf(this.I), var5, ' ', false);
- this.ej = var6.toString();
- this.d((Graphics)null);
- } else {
- this.ej = null;
- }
- this.x = 7;
- }
- private final void a(StringBuffer var1, String var2, int var3, char var4, boolean var5) {
- int var7 = var2.length();
- if(!var5) {
- var1.append(var2);
- }
- for(int var6 = var7; var6 < var3; ++var6) {
- var1.append(var4);
- }
- if(var5) {
- var1.append(var2);
- }
- }
- private final boolean an() {
- if(this.cb > 0) {
- return true;
- } else if(this.ej == null || !this.S && !this.R) {
- if(this.ej == null) {
- this.f(true);
- return true;
- } else {
- return false;
- }
- } else {
- this.S = this.T = this.R = false;
- this.f(true);
- return true;
- }
- }
- private final void f(boolean var1) {
- this.bT = this.bS;
- int var2 = this.bR + 1;
- int var3 = this.bS;
- boolean var4 = true;
- boolean var5 = false;
- switch(this.bR) {
- case 3:
- if(!this.i(this.bS, 11)) {
- var2 = 11;
- }
- case 4:
- case 5:
- case 7:
- case 8:
- case 9:
- default:
- break;
- case 6:
- if(!this.i(this.bS, 12)) {
- var2 = 12;
- }
- break;
- case 10:
- this.B[this.bS - 1] = true;
- var5 = true;
- if(!this.i(this.bS, 10)) {
- var3 = 0;
- var2 = 4;
- } else {
- var4 = false;
- }
- break;
- case 11:
- var2 = 4;
- break;
- case 12:
- var2 = 7;
- }
- this.A[this.bS - 1] = (byte)(!var5?var2:0);
- this.g();
- if(var4) {
- this.bS = var3;
- this.bR = var2;
- if(var1) {
- this.i();
- }
- this.Y();
- this.x = 1;
- this.d(true);
- } else {
- this.ae();
- }
- }
- private final int h(int var1, int var2) {
- int var3 = (var1 - 1) * 3;
- if(var2 == 12) {
- ++var3;
- } else if(var2 == 10) {
- var3 += 2;
- } else if(var2 != 11) {
- return -1;
- }
- return var3;
- }
- private final boolean i(int var1, int var2) {
- int var3 = this.h(var1, var2);
- return var3 == -1?true:(this.K & 1L << var3) != 0L;
- }
- private final void a(boolean var1, int var2, int var3) {
- int var4 = this.h(var2, var3);
- if(var4 != -1) {
- if(var1) {
- this.K |= 1L << var4;
- } else {
- this.K &= ~(1L << var4);
- }
- }
- }
- private final void ao() {
- this.a(this.a[this.ey[this.ex]], this.i + 12, -1);
- this.x = 8;
- }
- private final boolean ap() {
- boolean var1 = false;
- if(this.Q) {
- this.Q = false;
- ++this.ex;
- if(this.ex >= this.ey.length) {
- this.ex = 0;
- }
- this.ep = 0;
- this.ew = this.a[this.ey[this.ex]];
- this.er = this.u;
- this.a((Graphics)null, 0, 0, true, true, true, true);
- var1 = true;
- } else if(this.P) {
- this.P = false;
- --this.ex;
- if(this.ex < 0) {
- this.ex = (byte)(this.ey.length - 1);
- }
- this.ep = 0;
- this.ew = this.a[this.ey[this.ex]];
- this.er = this.u;
- this.a((Graphics)null, 0, 0, true, true, true, true);
- var1 = true;
- }
- var1 |= this.ak();
- return var1;
- }
- private final void e(Graphics var1) {
- this.a(var1, 22935, 10370, true, true, true, true);
- int var2 = this.i + 10;
- int var3 = this.u - this.e(this.u);
- int var4 = var2 - this.e(var2);
- this.a(var1, this.u - var3 >> 1, var2 - var4 >> 1, var3, var4, 22935, 10370);
- if(this.dM == 0) {
- if(this.ez[this.ex].length == 0) {
- String var13;
- if(this.ex == 0) {
- var13 = this.a[49];
- } else {
- var13 = this.a[50];
- }
- this.a(var13, var1, this.u >> 1, 6 + (this.i - this.g >> 1), true);
- } else {
- int var9 = this.ez[this.ex].length;
- int var10 = this.u - var9 * (this.h + this.l) + this.l >> 1;
- int var11 = var2 - this.i >> 1;
- for(int var5 = 0; var5 < var9; ++var5) {
- byte var12 = this.ez[this.ex][var5];
- this.a(var1, true, var12, var10, var11);
- var10 += this.h + (var12 != -24 && var12 != -40 && var12 != -39?this.l:0);
- }
- }
- this.b(var1, this.ch, 17, 0, 9, 17, 5, var2 - 17 >> 1);
- this.b(var1, this.ch, 26, 0, 9, 17, this.u - 9 - 5, var2 - 17 >> 1);
- }
- this.a(var1, (String)null, this.a[29], true);
- }
- private final void a(Graphics var1, String var2, String var3, boolean var4) {
- int var5;
- if(!this.dP) {
- var5 = this.e(22);
- } else {
- var5 = 0;
- }
- if(var4) {
- var1.setClip(0, 0, this.u, this.v);
- var1.setColor(22935);
- var1.fillRect(0, this.w + 2 + var5, this.u, 22);
- }
- if(var2 != null) {
- this.a((String)var2, (Graphics)var1, 3, (int)(this.w + 2 + 3 + var5), false);
- }
- if(var3 != null) {
- this.a(var3, var1, this.u - ((var3.length() - 1) * 12 + 10) - 3, this.w + 2 + 3 + var5, false);
- }
- }
- private final void d(byte var1) {
- this.eA = var1;
- this.ep = 0;
- this.en = 0;
- this.eo = 0;
- this.er = this.u;
- this.dS = false;
- switch(this.eA) {
- case 0:
- this.ew = this.a[55];
- break;
- case 1:
- this.ew = this.a[56];
- break;
- case 2:
- this.ew = this.a[57];
- }
- this.x = 9;
- this.a((Graphics)null, 0, 0, true, true, true, true);
- this.a(true, -1);
- }
- private final boolean aq() {
- if(this.dM == 0) {
- if(this.S) {
- this.S = false;
- this.a(false, 0);
- return true;
- } else if(this.T) {
- this.T = false;
- this.a(false, 1);
- return true;
- } else {
- if(this.N) {
- this.N = false;
- if(this.ep > 0) {
- this.ep -= 2;
- if(this.ep < 0) {
- this.ep = 0;
- }
- return true;
- }
- } else if(this.O) {
- this.O = false;
- if(this.ep < this.eq) {
- this.ep += 2;
- if(this.ep > this.eq) {
- this.ep = this.eq;
- }
- return true;
- }
- }
- return false;
- }
- } else {
- --this.dL;
- if(this.dL < 0) {
- this.dL = 0;
- if(this.dM == 2) {
- this.dM = 0;
- switch(this.dN) {
- case 0:
- this.g(true);
- break;
- case 1:
- this.g(false);
- }
- } else {
- this.dM = 0;
- }
- }
- return true;
- }
- }
- private final void g(boolean var1) {
- switch(this.eA) {
- case 0:
- if(var1) {
- this.ae();
- } else {
- this.x = 1;
- this.dS = true;
- this.b(true, -1);
- this.a(true, -1);
- }
- break;
- case 1:
- if(var1) {
- this.x = 3;
- this.dS = false;
- } else {
- this.x = 4;
- this.dS = true;
- this.b(true, -1);
- this.a(true, -1);
- }
- break;
- case 2:
- this.c = (byte)(var1?1:0);
- this.ae();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement