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

📄 xianjianlet.java

📁 < 仙剑奇侠传>>的J2ME手机游戏源代码
💻 JAVA
字号:
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

/**
 * @游戏名称: 仙剑奇侠传
 * @作者:张卫国
 * @Email: weiguo2000@hotmail.com
 * @创建于:2006/7/18--2006/8/3  by Weiguo
 * @首次修改于:2006/11/1--2006/11/2 by Weiguo 
 * @修改内容: 修正任务事件,物品管理功能
 * 			 增加5种药品
 * 			 增加使用法术功能(法术1,法术2)
 * 			 增加攻击简单公式
 * 			 增加攻击后,显示掉血数值的功能
 * 			 增加屏幕图象缓冲功能
 * 
 * 			 类XianJianCanvas中,	增加成员	Image 		bufferImage
 * 								增加成员	Graphics 	bufferGraphics
 * 
 * 			 类Character	中,		增加成员	String 		magic[]
 * 								增加成员	Vector 		goods
 * 								增加成员	int 		DecreaseHP
 * 								增加函数	void 		addGoods()
 * 								增加函数	void 		useGoods()
 * 
 * 			 类Battle中,			增加成员	boolean 	isDecrease
 * 								增加成员	int 	   	upDecreaseHP
 * 								增加成员	int 	   	jianDire
 * 								增加函数	void 		drawMagic()
 * 
 * 			 类Enemy中,			增加成员	int 		defend
 * 								增加成员	int 		magicDefend
 * 								增加成员	int 		DecreaseHP
 *   
 * 			 重新写了类ItemManager 
 * 													
 * @第二次修改于:2006/11/6--2006/11/7 by Weiguo
 * @修改内容: 增加任务提示功能
 * 			 增加装备功能
 * 			 状态栏中增加装备栏
 * 			 增加4件武器	
 * 
 * 			 类Character	中,		增加成员	String 		taskMess
 * 								增加函数	void 		displayTask()
 * 
 * 			 类Item中,			增加成员	int 		addWu
 * 								增加成员	int 		addTi
 * 								增加成员	int 		addLing
 * 								增加成员	int 		addMaxHP
 * 								增加成员	int	 		addMaxMP
 * 								增加成员 	int 		leveL
 * 								增加函数	int 		getAddWu()
 * 								增加函数	int 		getAddTi()
 *  							增加函数	int 		getAddLing()
 *   							增加函数	int 		getAddMaxHP()
 *    							增加函数	int 		getAddMaxMP()
 *     							增加函数	int 		getLeveL()
 *  
 * 			 类Character中		增加成员 	Item 		weaCl[]   							
 *     							增加函数	void 		addWeaCl()
 *         						增加函数	void 		removeWeaCl()
 *          
 * 			 类Menu中			增加成员	int 		selectWeaCl
 * 
 * @第三次修改于:2006/11/10 by Weiguo
 * @修改内容: 增加物品图片功能
 * 			 增加2件帽子、2件衣服、3件鞋子
 * 			 
 * 			 类Item中			增加成员	Image 		img
 * 
 * @第四次修改于:2006/11/11 by Weiguo
 * @修改内容: 修正使用法术不消耗真气的问题
 * 			 修正穿上装备升级的一些问题
 * 
 * 			 类Character中		增加函数	void 		updateState()
 * 
 * @第五次修改于:2006/11/12 by Weiguo
 * @修改内容: 增加商店功能
 * 			 增加宠物
 * 			 修改部分界面
 * 
 * 			 类XianJianImage中 	增加相关图片
 * 
 * 			 类Character中		增加成员	Vector 		pets
 * 								增加函数	void		saleGoods()
 * 								增加函数	void		buyGoods()
 * 
 * 			 类Menu中			增加成员	String 		selectionShop[]
 * 								增加成员	int 		selectionBuyGoods[]
 * 								增加成员	int 		SHOP
 * 								增加成员	int 		BUYGOODS
 * 								增加成员	int 		SALEGOODS
 * 								增加成员	int 		PET
 * 								增加成员	int 		selectShop
 * 								增加成员	int 		selectSaleGoods
 * 								增加成员	int 		selectBuyGoods
 * 								增加成员	int 		selectPet
 *   				
 */



public class XianJianLet extends MIDlet {	
	public static MIDlet  let;	
	public static Display dis=null;
	private XianJianLoadImage load=null;
	
	public XianJianLet() {
		super();
		let=this;
		load=new XianJianLoadImage();
		dis=Display.getDisplay(this);		
	}

	protected void startApp() throws MIDletStateChangeException {
		dis.setCurrent(load);
	}

	protected void pauseApp() {

	}

	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {

	}
}

⌨️ 快捷键说明

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