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

📄 c.java

📁 J2ME拳王游戏
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
// 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 com.nokia.mid.sound.SoundListener;
import com.nokia.mid.ui.*;
import java.io.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;

// Referenced classes of package kof:
//            D, I, F, J, 
//            Kof, Z

public class C extends FullCanvas
    implements Runnable, SoundListener
{

    Kof I;
    Thread addElement;
    boolean append;
    long close;
    long createImage;
    boolean currentThread;
    Image currentTimeMillis;
    Graphics drawImage;
    public static int Z;
    public static int drawRect;
    static C drawString = null;
    int fillRect;
    static boolean firstElement = false;
    static int C;
    int B;
    static int D = 5;
    static int F = 5;
    static int J = 10;
    static int S = 15;
    static int A = 15;
    static int E = 25;
    int freeMemory;
    int gc;
    int get;
    int getClass;
    int getDirectGraphics;
    int getFont;
    static int G = 100;
    static Random H = new Random();
    final int getGameAction = 15;
    final int getGraphics = getWidth() - 5;
    final int getHeight = 125;
    final int getResourceAsStream = getWidth() - 5;
    int getRuntime;
    int getWidth;
    long init;
    long intValue;
    long K;
    long isShown;
    Font lastElement;
    static String length[];
    int L[];
    long longValue;
    long notifyAll;
    static boolean M = false;
    static Image N[][] = new Image[4][2];
    Image notifyDestroyed;
    Z O;
    Z P;
    int out;
    int println;
    static int Q;
    static int R;
    int T[];
    int U;
    int V;
    int W[];
    long put;
    long read;
    boolean X;
    boolean Y;
    int i;
    int repaint;
    static boolean z;
    int serviceRepaints;
    int setClip;
    int setColor;
    int setCurrent;
    int setElementAt;
    static final int setFont[][][] = {
        {
            {
                1, 0
            }, {
                1, 1
            }, {
                2, 1
            }, {
                1, 0
            }, {
                0, 0
            }
        }, {
            {
                5, 1
            }, {
                6, 1
            }, {
                2, 2
            }, {
                2, 2
            }, {
                2, 2
            }
        }, {
            {
                5, 1
            }, {
                6, 1
            }, {
                1, 2
            }, {
                1, 2
            }, {
                0, 0
            }
        }, {
            {
                1, 0
            }, {
                5, 1
            }, {
                6, 1
            }, {
                4, 2
            }, {
                5, 2
            }
        }
    };
    Vector c[];
    final int setGrayScale = 0;
    final int setSeed = 1;
    final int setSoundListener = 2;
    final int sleep = 3;
    final int start = 4;
    boolean toLowerCase;
    int toString[] = {
        52, 88
    };
    int valueOf;
    int wait;
    static String b[] = {
        "F\301CIL", "DIF\315C."
    };
    static String d[] = {
        "00", "30", "60", "90"
    };
    static String f[] = {
        "1", "3", "5"
    };
    int j;
    int s;
    static String a = "";
    static final String e[] = {
        "Kyo: \241Eh, eh, venga!", "Athena: \241Estoy aqu\355!", "Mai: \241Me toca a Mai!", "Terry: \277Pizza?"
    };
    static Sound g;
    static Sound h;
    static Sound k;
    static Hashtable l = new Hashtable();
    int m;
    int n;
    int o;
    int p;
    boolean q;
    int r;
    int t;
    boolean u;
    boolean v;
    boolean w;
    boolean x;
    static int y = 24;
    int II;
    int ZI;
    int CI;
    int BI;
    int DI;
    boolean FI;
    boolean JI;
    static int SI = 0;
    static String AI = "";
    static String EI = "";

    C(Kof kof)
    {
        createImage = 55L;
        freeMemory = 45;
        gc = 0;
        get = 12;
        getClass = 58;
        getDirectGraphics = 12;
        getFont = 5;
        m = 0;
        n = 0;
        o = 0;
        p = 0;
        q = false;
        r = 0;
        t = 0;
        u = false;
        v = false;
        w = false;
        x = false;
        CI = 176;
        BI = 120;
        DI = 5;
        FI = false;
        JI = false;
        z = false;
        valueOf = 0;
        toLowerCase = false;
        R = -1;
        Q = -1;
        I = kof;
        Z = getWidth();
        drawRect = getHeight();
        i = 116;
        y = 44;
        currentTimeMillis = Image.createImage(Z, drawRect);
        drawImage = currentTimeMillis.getGraphics();
        drawImage.setGrayScale(255);
        drawImage.fillRect(0, 0, getWidth(), getHeight());
        lastElement = Font.getFont(32, 0, 8);
        freeMemory = 30;
        get = 11;
        getDirectGraphics = 11;
        getFont = 5;
        II = 24;
        ZI = 24;
        gc = 1 + II;
        getClass = Z - 2 - II - freeMemory;
        wait = Z / 2 - Kof.C.I - 9;
        s = 0;
        c = new Vector[10];
        c = new Vector[10];
        T = new int[2];
        W = new int[2];
        append();
        length = new String[4];
        longValue = 0L;
        isShown(drawImage, 255);
        g = addElement("/attack.wav");
        h = addElement("/intro.wav");
        k = addElement("/knockout.wav");
        drawString = this;
    }

    public final void soundStateChanged(Sound sound, int i1)
    {
    }

    private Sound addElement(String s1)
    {
        DataInputStream datainputstream;
        Class class1 = getClass();
        datainputstream = new DataInputStream(class1.getResourceAsStream(s1));
        Sound sound3;
        if(datainputstream == null)
            break MISSING_BLOCK_LABEL_91;
        Object obj = null;
        byte abyte0[] = new byte[0x186a0];
        datainputstream.read(abyte0, 0, abyte0.length);
        Sound sound2 = new Sound(abyte0, 5);
        sound2.init(abyte0, 5);
        sound2.setSoundListener(this);
        sound3 = sound2;
        try
        {
            datainputstream.close();
            datainputstream = null;
            System.gc();
        }
        catch(IOException ioexception1)
        {
            return null;
        }
        return sound3;
        Sound sound = null;
        try
        {
            datainputstream.close();
            datainputstream = null;
            System.gc();
        }
        catch(IOException ioexception2)
        {
            return null;
        }
        return sound;
        IOException ioexception;
        ioexception;
        Sound sound1 = null;
        try
        {
            datainputstream.close();
            datainputstream = null;
            System.gc();
        }
        catch(IOException ioexception3)
        {
            return null;
        }
        return sound1;
        Exception exception;
        exception;
        try
        {
            datainputstream.close();
            datainputstream = null;
            System.gc();
        }
        catch(IOException ioexception4)
        {
            return null;
        }
        throw exception;
    }

    static final Image I(String s1)
    {
        Image image = null;
        try
        {
            image = (Image)l.get(s1);
            if(image == null)
            {
                image = Image.createImage(s1);
                if(image == null)
                    throw new RuntimeException("Could not create " + s1);
                l.put(s1, image);
            }
        }
        catch(Throwable throwable)
        {
            System.out.println("Exception e: " + throwable);
        }
        System.gc();
        return image;
    }

    private final void append()
    {
        L = new int[8];
        out = 0;
        println = 0;
        getRuntime = 1;
        K = 0L;
    }

    final synchronized void I()
    {
        try
        {
            addElement = new Thread(this);
            addElement.start();
        }
        catch(Throwable throwable)
        {
            System.out.println("Exception e: " + throwable);
        }
    }

    final synchronized void Z()
    {
        C = 0;
        I(false);
        serviceRepaints = 0;
        addElement = null;
    }

    final synchronized void I(boolean flag)
    {
        if(flag)
            Kof.C();
        if(append != flag)
        {
            append = flag;
            if(!append)
            {
                intValue = System.currentTimeMillis() - init;
                init = 0L;
                notifyAll();
            } else
            {
                init = System.currentTimeMillis();
            }
        }
    }

    protected final void showNotify()
    {
        if((C == 7 || C == 6 || v || w || x) && M)
            I(true);
    }

    protected final void hideNotify()
    {
        if((C == 7 || C == 6 || v || w || x) && M)
            I(true);
    }

    final synchronized long C()
    {
        if(init > 0L)
            return init;
        else
            return System.currentTimeMillis() - intValue;
    }

    private final void close()
    {
        firstElement();
        append();
        if(serviceRepaints == 0)
        {
            O = createImage(Q, 0);
            P = createImage(U, 1);
        } else
        if(serviceRepaints == 1)
        {
            O = createImage(Q, 0);
            P = createImage(V, 1);
        } else
        if(serviceRepaints == 2)
        {
            O = createImage(R, 0);
            P = createImage(U, 1);
        } else
        if(serviceRepaints == 3)
        {
            O = createImage(R, 0);
            P = createImage(V, 1);
        }
        P.I(true);
        freeMemory();
        O.L = T[0];
        O.T = T[1];
        P.L = W[0];
        P.T = W[1];
        getWidth = 0;
        longValue = System.currentTimeMillis() + 2000L;
        C = 6;
        Kof _tmp = I;
        put = Integer.valueOf(d[Kof.G]).intValue();
        if(put == 0L)
            put = 99L;
    }

    private static final Z createImage(int i1, int j1)
    {
        Object obj = null;
        String s1 = "/KOF_" + Kof.N.D[i1].toLowerCase() + "_50x50.png";
        N[i1][0] = I(s1);
        s1 = "/KOF_" + Kof.N.D[i1].toLowerCase() + "_50x50.png";
        switch(i1)
        {
        case 0: // '\0'
            obj = new D(drawString);
            break;

        case 1: // '\001'
            obj = new kof.I(drawString);
            break;

        case 2: // '\002'
            obj = new F(drawString);
            break;

        case 3: // '\003'
            obj = new J(drawString);
            break;
        }
        length[j1] = e[i1];
        return ((Z) (obj));
    }

    private final void currentThread()
    {
        boolean flag = false;
        append();

⌨️ 快捷键说明

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