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

📄 llkcanvas.java

📁 手机网游巨商王的客户端代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2006-10-19 15:30:43
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 

import java.io.PrintStream;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.GameCanvas;

public class llkCanvas extends GameCanvas
    implements Runnable
{

    public llkCanvas(mainMidlet mainmidlet)
    {
        super(false);
        eb = false;
        aT = 0;
        bd = 0;
        es = 0;
        B = true;
        aD = 0;
        cn = null;
        cT = 0;
        eQ = new byte[3];
        dC = false;
        dW = 0;
        dq = new int[18];
        bG = new byte[15];
        bH = new byte[5];
        aG = false;
        an = new Hqfsj(this);
        fe = new int[2][5];
        ey = new String[3];
        aY = 0;
        b6 = new int[8];
        c3 = false;
        eX = false;
        dX = new ImageEntry[25];
        g = 0;
        bu = new byte[50];
        ce = new int[50];
        fh = -1;
        ex = false;
        cS = new int[8];
        dB = new byte[81];
        aB = new byte[81];
        db = 5;
        da = 57;
        u = 40;
        setFullScreenMode(true);
        dD = mainmidlet;
        _mthdo((byte)92);
        eV = 0;
    }

    private void _mthdo(Graphics g1, int i1)
    {
        if(aP == null)
            return;
        int j1 = E;
        int k1 = i1 + (20 - c4) / 2;
        int i2 = c4;
        int j2 = eo.stringWidth(aP) + 16;
        int l1 = j2;
        if(j2 + E < j1)
        {
            aP = null;
            return;
        } else
        {
            g1.setColor(0xffff00);
            g1.fillRect(j1, k1, l1, i2);
            g1.setColor(0);
            g1.setClip(j1, k1, l1, i2);
            g1.drawString(aP, E, k1, 20);
            E -= 5;
            g1.setClip(0, 0, 176, 220);
            return;
        }
    }

    void n()
    {
        c4 = eo.getHeight();
        cg = eo.charWidth('\u4E2D');
        l = new UserInfo();
        dA = true;
        cp = 1;
        x();
        cp = ai.f;
        dA = ai.u;
        bi = 0;
        bC = false;
        eC = false;
        b = new byte[1024];
        aq = new short[100];
        bN = new short[100];
        fv = new short[100];
        c2 = new short[100];
        w = new short[10];
    }

    private void am()
    {
        ax = null;
        cZ = null;
        cc = null;
        a1 = 0;
    }

    private int _mthlong(int i1, int j1)
    {
        for(int k2 = 0; k2 < a1; k2++)
            if(cZ[k2] == j1)
                return k2;

        if(a1 == 0)
        {
            cZ = new int[10];
            ax = new short[10];
            cc = new String[10];
        }
        int l2 = -1;
        int i3 = 0;
        do
        {
            if(i3 >= a1)
                break;
            if(cZ[i3] < j1)
            {
                l2 = i3;
                break;
            }
            i3++;
        } while(true);
        if(l2 == -1)
        {
            if(a1 == 10)
                cc[a1 - 1] = null;
            else
                a1++;
            ai.a(i1, j1);
            int k1 = 0;
            ax[a1 - 1] = (short)ay(ai.a, k1);
            k1 += 2;
            int i2 = ay(ai.a, k1);
            k1 += 2;
            String s1 = _mthfor(ai.a, k1, i2);
            cc[a1 - 1] = s1;
            cZ[a1 - 1] = j1;
            l2 = a1 - 1;
        } else
        {
            if(a1 == 10)
                cc[a1 - 1] = null;
            else
                a1++;
            for(int j3 = a1 - 1; j3 > l2; j3--)
            {
                ax[j3] = ax[j3 - 1];
                cc[j3] = cc[j3 - 1];
                cZ[j3] = cZ[j3 - 1];
            }

            ai.a(i1, j1);
            int l1 = 0;
            ax[l2] = (short)ay(ai.a, l1);
            l1 += 2;
            int j2 = ay(ai.a, l1);
            l1 += 2;
            String s2 = _mthfor(ai.a, l1, j2);
            cc[l2] = s2;
            cZ[l2] = j1;
        }
        return l2;
    }

    private String _mthlong(int i1)
    {
        String s1 = null;
        for(int j1 = 0; j1 < a1; j1++)
            if(cZ[j1] == i1)
                return cc[j1];

        if(a1 == 0)
        {
            cZ = new int[10];
            cc = new String[10];
        }
        if(a1 == 10)
        {
            for(int k1 = 0; k1 < a1 - 1; k1++)
            {
                cc[k1] = cc[k1 + 1];
                cZ[k1] = cZ[k1 + 1];
            }

        } else
        {
            a1++;
        }
        s1 = ai._mthint(i1);
        cc[a1 - 1] = s1;
        cZ[a1 - 1] = i1;
        return s1;
    }

    private void a(int i1, String s1)
    {
        for(int j1 = 0; j1 < aI; j1++)
            if(ag[j1] == i1)
            {
                dh[j1] = null;
                dh[j1] = s1;
            }

    }

    private String t(int i1)
    {
        String s1 = null;
        for(int j1 = 0; j1 < aI; j1++)
            if(ag[j1] == i1)
                return dh[j1];

        if(aI == 0)
        {
            ag = new byte[12];
            dh = new String[12];
        }
        if(aI == 12)
        {
            for(int k1 = 0; k1 < aI - 1; k1++)
            {
                ag[k1] = ag[k1 + 1];
                dh[k1] = dh[k1 + 1];
            }

            dh[aI - 1] = null;
        } else
        {
            aI++;
        }
        if(ai._mthelse(i1))
            s1 = ai._mthchar(i1);
        else
            s1 = am.a(i1);
        dh[aI - 1] = s1;
        ag[aI - 1] = (byte)i1;
        return s1;
    }

    private void _mthdo(int i1, String s1)
    {
        if(aY < 3)
        {
            ey[aY] = s1;
            aY++;
        } else
        {
            for(int j1 = 0; j1 < aY - 1; j1++)
                ey[j1] = ey[j1 + 1];

            ey[aY - 1] = s1;
        }
    }

    private void a()
    {
        for(int i1 = 0; i1 < aY; i1++)
            ai._mthif(0, ey[i1]);

    }

    private String ac()
    {
        if(aY == 0)
        {
            return null;
        } else
        {
            int i1 = g(aY);
            return ey[i1];
        }
    }

    private void N()
    {
        String s1 = ai.d(0);
        if(s1 == null)
            return;
        ey[0] = s1;
        aY++;
        s1 = ai.d(1);
        if(s1 == null)
            return;
        ey[1] = s1;
        aY++;
        s1 = ai.d(2);
        if(s1 == null)
        {
            return;
        } else
        {
            ey[2] = s1;
            aY++;
            return;
        }
    }

    private void x()
    {
        ai = new RmsOperate("pvpmahjong");
        if(ai._mthdo())
        {
            l.h = ai.g;
            l.a = ai._fldchar;
            N();
        }
    }

    private boolean F(int i1)
    {
        return i1 < 10000;
    }

    public boolean y()
    {
        return bn;
    }

    private boolean B(int i1)
    {
        return _fldgoto[i1];
    }

    private boolean y(int i1)
    {
        if(i1 == 1)
            return true;
        if(i1 == 2)
            return true;
        if(i1 == 7)
            return true;
        if(i1 == 8)
            return true;
        return i1 == 9;
    }

    public boolean b()
    {
        return eb;
    }

    public void aH()
    {
        eb = true;
        e2 = new Thread(this);
        e2.start();
    }

    public synchronized void bm()
    {
        a();
        eb = false;
        e2 = null;
    }

    private void z(int i1)
    {
        _fldgoto[i1] = !_fldgoto[i1];
    }

    private void ae()
    {
        ds = 0;
        for(int i1 = 0; i1 < aC; i1++)
            if(eC || !y(bN[i1]))
            {
                fv[ds] = bN[i1];
                ds++;
            }

    }

    private void _mthelse()
    {
        HotUser ahotuser[] = new HotUser[cU];
        int i1 = 0;
        for(int j1 = 0; j1 < cU; j1++)
        {
            HotUser hotuser = en[j1];
            if(hotuser._fldint)
            {
                ahotuser[i1] = hotuser;
                i1++;
            }
        }

        for(int k1 = 0; k1 < cU; k1++)
        {
            HotUser hotuser1 = en[k1];
            if(!hotuser1._fldint)
            {
                ahotuser[i1] = hotuser1;
                i1++;
            }
        }

        en = null;
        en = ahotuser;
    }

    private void e(int i1, int j1)
    {
        int k1 = i1 / 2;
        if((k1 -= 2) < 0)
            k1 = 0;
        S = (short)i1;
        ba = (byte)j1;
        ct = (short)k1;
    }

    public long aI()
    {
        return System.currentTimeMillis();
    }

    public static String a(long l1)
    {
        Date date = new Date(l1 * 1000L);
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        int i1 = calendar.get(2) + 1;
        String s1;
        if(i1 < 10)
            s1 = "0" + Integer.toString(i1) + "/";
        else
            s1 = Integer.toString(i1) + "/";
        int j1 = calendar.get(5);
        if(j1 < 10)
            s1 = s1 + "0" + Integer.toString(j1) + " ";
        else
            s1 = s1 + Integer.toString(j1) + " ";
        int k1 = calendar.get(11);
        if(k1 < 10)
            s1 = s1 + "0" + Integer.toString(k1) + ":";
        else
            s1 = s1 + Integer.toString(k1) + ":";
        int i2 = calendar.get(12);
        if(i2 < 10)
            s1 = s1 + "0" + Integer.toString(i2);
        else
            s1 = s1 + Integer.toString(i2);
        date = null;
        calendar = null;
        return s1;
    }

    public void _mthdo(byte byte0)
    {
        eU = byte0;
    }

    public void a(int i1, int j1, int k1, int l1)
    {
        if(i1 == l._fldint)
        {
            l._fldgoto = k1;
            l._fldnew = j1;
            l._fldif = (byte)l1;
        } else
        {
            aE._fldgoto = k1;
            aE._fldnew = j1;
            aE._fldif = (byte)l1;
        }

⌨️ 快捷键说明

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