www.pudn.com > TXWW.rar > Property.java


 
package org.gamecollege.j2me.rpg; 
 
 
 
 
/** 
 * 道具(物品)封装类 
 */ 
public  class Property  extends RPGObject{ 
	 
 
	/** 
	 * 1:武器类 2:药品类 3:护具类 
	 */ 
	/*Property() 
	{ 
		Player. 
	}*/ 
	 int type; 
	 //价钱。 
	 int price; 
	 //使用该道具时增加的HP 
	 int addHP; 
	 //使用该道具时增加的MP	 
	 int addMP; 
	 //使用该道具时增加的攻击力 
	 int addAttackPoint; 
	 //使用该道具时增加的防御力 
	 int addDefendPoint; 
 
}