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

📄 global.java

📁 j2me游戏Global星球文明,是国外的游戏,45度视角.
💻 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 

import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class Global extends MIDlet
{

    Game gm;
    GameScreen gs;
    GameTask gt;
    RMSGameScores hiScores;
    Level lv;
    Strings st;

    public Global()
    {
        lv = new Level(this);
        st = new Strings();
        gm = new Game(this);
        hiScores = new RMSGameScores();
        gs = new GameScreen(this);
        gt = new GameTask(this);
        gm.hassave();
        gm.restoreOpt();
    }

    protected void destroyApp(boolean flag)
        throws MIDletStateChangeException
    {
        if(!gs.newGame)
            gm.save();
        else
            gm.delete();
        gm.saveOpt();
    }

    protected void pauseApp()
    {
    }

    public void quit()
    {
        try
        {
            destroyApp(false);
            notifyDestroyed();
        }
        catch(Exception exception) { }
    }

    protected void startApp()
        throws MIDletStateChangeException
    {
        Displayable displayable = Display.getDisplay(this).getCurrent();
        if(displayable == null)
        {
            Display.getDisplay(this).setCurrent(gs);
            gs.newGame = true;
            gs.pfLogo();
        } else
        {
            Display.getDisplay(this).setCurrent(displayable);
            if(displayable == gs)
            {
                gs.mode = 1;
                gs.mode = 1;
            }
        }
    }
}

⌨️ 快捷键说明

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