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

📄 myscreen.java

📁 一个JAVA的扫雷游戏源代码
💻 JAVA
字号:
/*
 * Siemens AG
 * Mobile Radio Terminals
 * Munich, Germany
 * .AUTHOR      Michael Becker CT SE 2 / Sam Nova (THQ)
 * .PACKAGE		GameAPI_Demo
 * .STATUS         DRAFT
 * .CHANGE_CONTROL
 * Version |  Date  	| Changed by | 	Reason for Change
 * 1.0    	21.05.01  		M.Becker		file created.
 */

package GameAPI_Demo;


import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.*;

import com.siemens.mp.game.*;

abstract class MyScreen extends Canvas implements Runnable
{
	public abstract void Dispose();

	public abstract void run();

	public abstract int getReturnValue();

	private static final boolean showInfo = false;

	public byte [] ReadByteArray(String file, int bytes, int offsetInFile)
	{
		byte [] data=null;
		StringBuffer strb=new StringBuffer();

		try
		{
			java.io.InputStream is= javax.microedition.io.Connector.openInputStream("resource:GameAPI_Demo\\"+file);

			data = new byte[bytes];

			is.read(data);

			is.close();
		}
		
		catch (Exception e)
		{
			System.out.println("Exception: please copy the sprite-files from \\res to your class-files directory (CLASSPATH)!\n"+e);
		}


		return data;
	}

}

⌨️ 快捷键说明

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