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


package org.gamecollege.j2me.rpg; 
import java.util.Vector; 
 
/** 
 * NPC封装类 
 */ 
public class NPC extends RPGObject{ 
	//标志位,判断该NPC是否是第二次碰上主角 
	boolean isAgainCrash; 
	//1:对话型 2:武器护具贩卖型 3:药品贩卖型  5:打斗型 6:运输型 
	int type; 
	//NPC与主角的谈话内容 
	Vector talkContents; 
	//出售武器的NPC的武器集合 
	Vector weaponVec; 
	//出售道具的NPC的道具集合 
	Vector jacketVec; 
	//出售药品的NPC的药品集合 
	Vector medicVec; 
	//NPC的技能集合 
	Vector skillVec; 
	//NPC的hp 
	int hp; 
	//NPC的mp 
	int mp; 
	//NPC的攻击力 
	int attackPoint; 
	//NPC的防御力	 
	int defendPoint; 
	//NPC的攻击状态.0:未攻击 1:攻击中 2:攻击中 
	int npcAttackState; 
}