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

📄 bluegammonmidlet.java

📁 --- --- --- 基于J2ME的游戏程序--------很有技巧性的程序
💻 JAVA
字号:
// Copyright (c) 2005 Sony Ericsson Mobile Communications AB
//
// This software is provided "AS IS," without a warranty of any kind. 
// ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, 
// INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A 
// PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. 
//
// THIS SOFTWARE IS COMPLEMENTARY OF JAYWAY AB (www.jayway.se)

package bluegammon;

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

/**
 * The bluegammon MIDlet.
 * @see bluegammon.Bluegammon
 * @author Peter Andersson
 */
public class BluegammonMIDlet extends MIDlet
{
  /** Initialization flag */
  protected boolean m_init = false;
  
  /**
   * Initializes the Bluegammon facade.
   */
  protected void startApp() throws MIDletStateChangeException
  {
    if (!m_init)
    {
      m_init = true;
      Bluegammon.init(this, Display.getDisplay(this));
    }
  }

  protected void pauseApp() {}

  protected void destroyApp(boolean force) throws MIDletStateChangeException
  {
    // Try to save game before exiting
    Bluegammon.exitGame();
  }
}

⌨️ 快捷键说明

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