/* * @(#)About.java 1.3 03/10/29 * * Copyright (c) 2000-2003 Sun Microsystems, Inc. All rights reserved. * PROPRIETARY/CONFIDENTIAL * Use is subject to license terms */ package cutOff; import javax.microedition.lcdui.*; /** * Typical about box with a string and an image. * In this case the Sun copyright and logo. */ public class About { private static final String copyright = "Capture! Copyright (c) 2005 XdebugX All rights reserved.\n\n" + "Game Play\n" + "The object of the game is to fill in 80% of the board, or capture all the bugs each round. You move an arrow to draw a line from one wall to the other. When a line is completed the area enclosed is captured. Enclose 80% of the board to go to the next level. You can also capture the bugs that bounce around the board by enclosing them in the captured area. Do not let the bugs hit your line before it is completed or you lose a life. You gain a life for each bug you capture.\n\n" + "Keys\n" + "Up or 2 to move the cursor up.\n" + "Down or 8 to move the cursor down.\n" + "Left or 4 to move the cursor left.\n" + "Right or 6 to move the cursor right.\n" + "When the game is over press New Game to play again.\n" + "Press Exit to quit playing.\n" + "Press Pause to pause and view this help screen again.\n"; /** the previous screen to go back to */ private Displayable previous; /** * Do not allow anyone to create this class */ private About() {}; /** * Put up the About box and when the user click ok return * to the previous screen. * @param display The Display to return to when the * about screen is dismissed. */ public static void showAbout(Display display) { Alert alert = new Alert("About Capture"); alert.setTimeout(Alert.FOREVER); alert.setString(copyright); display.setCurrent(alert); } }