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

📄 m.java

📁 威恩应该是个地名吧游戏的风格黑怪异
💻 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 
// Source File Name:   M.java

package falcofinder.Wien;

import java.io.PrintStream;
import java.util.Random;

// Referenced classes of package falcofinder.Wien:
//            AreaA, Kid

public class M
{

    protected int posx;
    protected int posy;
    protected int section;
    private Kid kid;
    private AreaA areaa;
    protected boolean mIsALive;
    protected boolean pause;
    protected long mdifftime;
    protected long mstarttime;
    private int mstep;
    Random rand;
    boolean insection;
    String number;

    public M(Kid kid, AreaA areaa)
    {
        mstarttime = 0L;
        mstep = 1;
        this.kid = kid;
        this.areaa = areaa;
        mIsALive = true;
        pause = false;
        rand = new Random();
        insection = false;
    }

    protected void start()
    {
        mstarttime = System.currentTimeMillis();
    }

    protected void run()
    {
        if(mIsALive)
        {
            if(pause)
                mdifftime = mdifftime;
            else
                mdifftime = System.currentTimeMillis() - mstarttime;
            if(!pause && areaa.section != 0 && areaa.section != 2 && areaa.section != 7)
                if(section != areaa.section)
                {
                    insection = false;
                    number = "" + rand.nextInt();
                    if(Integer.parseInt(number.substring(1, 2)) >= 0 && Integer.parseInt(number.substring(1, 2)) < 9)
                        section = Integer.parseInt(number.substring(1, 2));
                } else
                if(mdifftime > 0x1d4c0L)
                {
                    if(mdifftime > 0x3a980L)
                        mstep = 2;
                    if(!insection)
                    {
                        insection = true;
                        posx = kid.posx + 200;
                        posy = kid.posy + 200;
                    }
                    if(kid.posx > posx)
                        posx = posx + mstep;
                    if(kid.posx < posx)
                        posx = posx - mstep;
                    if(kid.posy > posy)
                        posy = posy + mstep;
                    if(kid.posy < posy)
                        posy = posy - mstep;
                    if(areaa.dogFollowsKid && posx < kid.posx + 30)
                    {
                        System.out.println("u can't come closer!");
                        posx = posx + mstep;
                    }
                    if(areaa.dogFollowsKid && posy < kid.posy + 30)
                    {
                        System.out.println("u can't come closer!");
                        posy = posy + mstep;
                        kid.msg = "The Dog protects u!";
                    }
                    if(kid.posy == posy && kid.posx == posx)
                    {
                        kid.msg = "M caught u!";
                        kid.ismoving = false;
                        kid.status = 1;
                    }
                }
        }
    }
}

⌨️ 快捷键说明

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