instructions.java

来自「充气球的j2me代码,可以自由的部署在eclipse,netbeas里面.希望大」· Java 代码 · 共 35 行

JAVA
35
字号
// 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:   Instructions.java

import javax.microedition.lcdui.*;

public class Instructions extends Form
    implements CommandListener
{

    private Command back;
    private TwirlEmUpMIDlet parent;
    private MainMenu menu;

    public Instructions(String title, TwirlEmUpMIDlet parent, MainMenu menu)
    {
        super(title);
        back = new Command("", 2, 2);
        this.parent = null;
        this.menu = null;
        this.parent = parent;
        this.menu = menu;
        append("The words in the world have been twirled. Form all the words you can out of the given letters. \n \n Guess the the last word that uses all the letters in order to move up to next level. Every word merits you 10 points and every level gives you 50 bonus points. \n \n Use the the Right and Left keys to move the cursor.  To select the letter, use the fire key.  Press <7> to twirl the letters, <8> to clear the chosen letters, <9> to undo the last letter chosen, and <0> to finally submit the guessed word. \n \nYou are under time pressure to guess the words so hurry and beat the clock. \n \n Play now!");
        addCommand(back);
        setCommandListener(this);
    }

    public void commandAction(Command p0, Displayable p1)
    {
        if(p0 == back)
            parent.setDisplayable(menu);
    }
}

⌨️ 快捷键说明

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