property.java

来自「J2ME开发的手机游戏需要安装诺基亚手机模拟器才能正常运行」· Java 代码 · 共 29 行

JAVA
29
字号

package org.gamecollege.j2me.rpg;




/**
 * 道具(物品)封装类
 */
public  class Property  extends RPGObject{
	

	/**
	 * 1:武器类 2:药品类 3:护具类
	 */
	 int type;
	 //价钱。
	 int price;
	 //使用该道具时增加的HP
	 int addHP;
	 //使用该道具时增加的MP	
	 int addMP;
	 //使用该道具时增加的攻击力
	 int addAttackPoint;
	 //使用该道具时增加的防御力
	 int addDefendPoint;

}

⌨️ 快捷键说明

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