⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kof.java

📁 J2ME拳王游戏
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

package kof;

import I.I;
import com.nokia.mid.sound.Sound;
import java.io.PrintStream;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.rms.RecordStore;

// Referenced classes of package kof:
//            B, C

public class Kof extends MIDlet
{

    static boolean I = false;
    Display Z;
    static C B;
    static I C = new I("/bigfont.png", "/bigfont.dat");
    boolean abs;
    static long addElement = 0L;
    String D[] = {
        "Kyo", "Athena", "Mai", "Terry"
    };
    static Thread addRecord = null;
    static int F;
    static int J;
    static int S;
    static int A;
    static int E;
    static int G;
    static int H = 1;
    static int K;
    public static boolean L = false;
    static Hashtable append = new Hashtable();
    B closeRecordStore;
    final int currentTimeMillis = 0;
    final int elementAt = 1;
    final int gc = 2;
    static Image M = null;
    static Kof N = null;
    static Sound s = null;

    public Kof()
    {
        closeRecordStore = null;
        Z = Display.getDisplay(this);
        closeRecordStore = new B();
        B = new C(this);
        abs = true;
        N = this;
        C.I();
        M = kof.C.I("/playericons.png");
    }

    public final void startApp()
    {
        RecordStore recordstore;
        if(!abs)
            break MISSING_BLOCK_LABEL_677;
        abs = false;
        F = 0;
        J = 0;
        S = 0;
        A = 0;
        E = 0;
        G = 2;
        recordstore = null;
        recordstore = RecordStore.openRecordStore("kof.records", true);
        byte abyte0[] = new byte[6];
        recordstore.getRecord(1, abyte0, 0);
        F = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(2, abyte0, 0);
        J = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(3, abyte0, 0);
        S = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(4, abyte0, 0);
        A = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(5, abyte0, 0);
        E = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(6, abyte0, 0);
        G = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(7, abyte0, 0);
        H = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        recordstore.getRecord(8, abyte0, 0);
        int i = (abyte0[0] & 0xff) << 24 | (abyte0[1] & 0xff) << 16 | (abyte0[2] & 0xff) << 8 | abyte0[3] & 0xff;
        if(i == 0)
            L = false;
        else
            L = true;
        recordstore.getRecord(0, abyte0, 0);
        Object obj = null;
        if(recordstore != null)
            try
            {
                recordstore.closeRecordStore();
            }
            catch(Exception exception)
            {
                System.out.println("START APP close: " + exception);
            }
        break MISSING_BLOCK_LABEL_643;
        Throwable throwable;
        throwable;
        System.out.println("StartAPP: Exception e: " + throwable);
        Object obj1 = null;
        if(recordstore != null)
            try
            {
                recordstore.closeRecordStore();
            }
            catch(Exception exception1)
            {
                System.out.println("START APP close: " + exception1);
            }
        break MISSING_BLOCK_LABEL_643;
        Exception exception2;
        exception2;
        Object obj2 = null;
        if(recordstore != null)
            try
            {
                recordstore.closeRecordStore();
            }
            catch(Exception exception3)
            {
                System.out.println("START APP close: " + exception3);
            }
        throw exception2;
        Z.setCurrent(closeRecordStore);
        addRecord = new Thread(closeRecordStore);
        addRecord.start();
        break MISSING_BLOCK_LABEL_704;
        Z.setCurrent(closeRecordStore);
        Thread thread = new Thread(closeRecordStore);
        thread.start();
        if(I)
        {
            F = 5;
            J = 5;
            A = 5;
            S = 5;
        }
        return;
    }

    public final void I(boolean flag)
    {
        if(!flag)
        {
            B.Z();
            kof.B.I = -1;
            B.Q = 0;
            Z.setCurrent(closeRecordStore);
            Thread thread = new Thread(closeRecordStore);
            thread.start();
        } else
        {
            B.Z();
            kof.B.I = 51;
            B.Q = 0;
            Z.setCurrent(closeRecordStore);
            Thread thread1 = new Thread(closeRecordStore);
            thread1.start();
        }
    }

    public final void pauseApp()
    {
        I();
    }

    public final void destroyApp(boolean flag)
    {
        try
        {
            B = null;
            closeRecordStore = null;
            System.gc();
            notifyDestroyed();
        }
        catch(Throwable throwable)
        {
            System.out.println("Exception e: " + throwable);
        }
    }

    final void I()
    {
        if(B != null)
        {
            B.I(true);
            B.repaint();
        }
    }

    public static final void I(int i)
    {
        addRecord = null;
        System.gc();
        C _tmp = B;
        C.M = false;
        B.q = false;
        B.I();
        C _tmp1 = B;
        C.Q = i;
        C _tmp2 = B;
        C.M = false;
        B.q = false;
        B.T[0] = C.G;
        B.T[1] = 0;
        B.W[0] = C.G;
        B.W[1] = 0;
        Vector vector = new Vector();
        for(int j = 0; j < N.D.length; j++)
        {
            C _tmp3 = B;
            if(j != C.Q)
            {
                C _tmp4 = B;
                if(j != C.R)
                    vector.addElement(new Integer(j));
            }
        }

        int k = Math.abs(C.H.nextInt() % vector.size());
        B.U = ((Integer)vector.elementAt(k)).intValue();
        vector.removeElementAt(k);
        B.V = ((Integer)vector.elementAt(0)).intValue();
        C _tmp5 = B;
        C.C = 18;
        B.I(false);
        B.B = 0;
        System.out.println("SET CURRENT --- >");
        N.Z.setCurrent(B);
    }

    public static final void I(int i, int j)
    {
        addRecord = null;
        System.gc();
        C _tmp = B;
        C.M = false;
        B.q = false;
        B.I();
        C _tmp1 = B;
        C.Q = i;
        C _tmp2 = B;
        C.R = j;
        C _tmp3 = B;
        C.z = true;
        B.T[0] = C.G;
        B.T[1] = 0;
        B.W[0] = C.G;
        B.W[1] = 0;
        Vector vector = new Vector();
        for(int k = 0; k < N.D.length; k++)
        {
            C _tmp4 = B;
            if(k != C.Q)
            {
                C _tmp5 = B;
                if(k != C.R)
                    vector.addElement(new Integer(k));
            }
        }

        int l = Math.abs(C.H.nextInt() % vector.size());
        B.U = ((Integer)vector.elementAt(l)).intValue();
        vector.removeElementAt(l);
        B.V = ((Integer)vector.elementAt(0)).intValue();
        C _tmp6 = B;
        C.C = 18;
        B.I(false);
        B.B = 0;
        N.Z.setCurrent(B);
    }

    private static byte[] B(int i)
    {
        byte abyte0[] = new byte[6];
        abyte0[0] = (byte)(i >> 24 & 0xff);
        abyte0[1] = (byte)(i >> 16 & 0xff);
        abyte0[2] = (byte)(i >> 8 & 0xff);
        abyte0[3] = (byte)(i >> 0 & 0xff);
        return abyte0;
    }

    static final void Z()
    {
        RecordStore recordstore = null;
        try
        {
            recordstore = RecordStore.openRecordStore("kof.records", true);
            byte abyte0[] = new byte[6];
            byte abyte1[] = new byte[6];
            byte abyte2[] = new byte[6];
            byte abyte3[] = new byte[6];
            byte abyte4[] = new byte[6];
            byte abyte5[] = new byte[6];
            byte abyte6[] = new byte[6];
            byte abyte7[] = new byte[6];
            byte abyte8[] = new byte[6];
            abyte0 = B(F);
            abyte1 = B(J);
            abyte2 = B(S);
            abyte3 = B(A);
            abyte4 = B(E);
            abyte5 = B(G);
            abyte6 = B(H);
            abyte8 = B(K);
            if(L)
                abyte7 = B(1);
            else
                abyte7 = B(0);
            if(recordstore.getNumRecords() <= 7)
            {
                recordstore.addRecord(abyte0, 0, abyte0.length);
                recordstore.addRecord(abyte1, 0, abyte1.length);
                recordstore.addRecord(abyte2, 0, abyte2.length);
                recordstore.addRecord(abyte3, 0, abyte3.length);
                recordstore.addRecord(abyte4, 0, abyte4.length);
                recordstore.addRecord(abyte5, 0, abyte5.length);
                recordstore.addRecord(abyte6, 0, abyte6.length);
                recordstore.addRecord(abyte7, 0, abyte7.length);
                recordstore.addRecord(abyte8, 0, abyte8.length);
            } else
            {
                recordstore.setRecord(1, abyte0, 0, abyte0.length);
                recordstore.setRecord(2, abyte1, 0, abyte1.length);
                recordstore.setRecord(3, abyte2, 0, abyte2.length);
                recordstore.setRecord(4, abyte3, 0, abyte3.length);
                recordstore.setRecord(5, abyte4, 0, abyte4.length);
                recordstore.setRecord(6, abyte5, 0, abyte5.length);
                recordstore.setRecord(7, abyte6, 0, abyte6.length);
                recordstore.setRecord(8, abyte7, 0, abyte7.length);
                recordstore.setRecord(0, abyte8, 0, abyte8.length);
            }
        }
        catch(Throwable throwable)
        {
            System.out.println("Save: NAme: kof.records Exception e: " + throwable);
        }
        if(recordstore != null)
            try
            {
                recordstore.closeRecordStore();
            }
            catch(Exception exception)
            {
                System.out.println("Closing SAVE Exception e: " + exception);
            }
    }

    public static final void C()
    {
        if(s != null)
        {
            s.stop();
            s = null;
        }
    }

    public static final void I(Sound sound, int i)
    {
        if(L || C.g.getState() == 0 || C.h.getState() == 0 || C.k.getState() == 0)
            return;
        try
        {
            if(sound != null && addElement < System.currentTimeMillis())
            {
                sound.play(i);
                addElement = System.currentTimeMillis() + 1000L;
            }
        }
        catch(Exception exception)
        {
            System.out.println("Exception e: " + exception);
        }
        return;
    }

    public static final void I(String s1, int i)
    {
        if(L)
        {
            return;
        } else
        {
            s1 = null;
            return;
        }
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -