Example #1
0
 public Living(int id, BaseGame game, int team, string name, string modelId, int maxBlood, int immunity, int direction)
     : base(id)
 {
     m_game       = game;
     m_team       = team;
     m_name       = name;
     m_modelId    = modelId;
     m_maxBlood   = maxBlood;
     m_direction  = direction;
     m_state      = 0;
     MaxBeatDis   = 100;
     m_effectList = new EffectList(this, immunity);
     m_syncAtTime = true;
     m_type       = eLivingType.Living;
 }
Example #2
0
 public Living(int id, BaseGame game, int team, string name, string modelId, int maxBlood, int immunity, int direction)
     : base(id)
 {
     m_game = game;
     m_team = team;
     m_name = name;
     m_modelId = modelId;
     m_maxBlood = maxBlood;
     m_direction = direction;
     m_state = 0;
     MaxBeatDis = 100;
     m_effectList = new EffectList(this, immunity);
     m_syncAtTime = true;
     m_type = eLivingType.Living;
 }
Example #3
0
 public Living(int id, BaseGame game, int team, string name, string modelId, int maxBlood, int immunity, int direction, int maxBeatDis) : base(id)
 {
     this.m_game         = game;
     this.m_team         = team;
     this.m_name         = name;
     this.m_modelId      = modelId;
     this.m_maxBlood     = maxBlood;
     this.m_direction    = direction;
     this.m_state        = 0;
     this.MaxBeatDis     = maxBeatDis;
     this.m_effectList   = new EffectList(this, immunity);
     this.m_syncAtTime   = true;
     this.m_createAction = null;
     this.m_type         = eLivingType.Living;
 }
Example #4
0
 public Living(int id, BaseGame game, int team, string name, string modelId, int maxBlood, int immunity, int direction)
     : base(id)
 {
     this.m_vaneOpen     = false;
     this.m_critActive   = false;
     this.m_petBaseAtt   = 0;
     this.m_activePetHit = false;
     this.m_isPet        = false;
     this.m_noTakeDamage = true;
     this.m_action       = "";
     this.m_game         = game;
     this.m_team         = team;
     this.m_name         = name;
     this.m_modelId      = modelId;
     this.m_maxBlood     = ((maxBlood == -1) ? 8000000 : maxBlood);
     this.m_direction    = direction;
     this.m_state        = 0;
     this.MaxBeatDis     = 100;
     this.m_effectList   = new EffectList(this, immunity);
     this.m_syncAtTime   = true;
     this.m_type         = eLivingType.Living;
 }
Example #5
0
	public Tbl_NormalNpc_Record(BinaryReader br)// : base(_element)
	{					
		m_Id = br.ReadInt32();
		m_FaceId = br.ReadInt32();
		m_LivingType = (eLivingType)br.ReadInt32();
		m_MoveSpeed = br.ReadSingle();
		m_QuestGroupId = br.ReadInt32();
		m_NpcLV = br.ReadInt32();
		m_NpcHP = br.ReadInt32();
		m_Touchable = br.ReadBoolean();
		m_EnablePStore = br.ReadBoolean();
		
//		string strColumn = "";			
		m_Speech = new int[AsGameDefine.MAX_SPEECH];
		for(int i = 0; i < AsGameDefine.MAX_SPEECH; ++i)
		{				
			m_Speech[i] = br.ReadInt32();			
			if(m_Speech[i] != int.MaxValue)
				m_SpeechCount++;
		}
		
		m_Voice = new string[AsGameDefine.MAX_VOICE];
		for(int i = 0; i < AsGameDefine.MAX_VOICE; ++i)
		{		
			
			m_Voice[i] = br.ReadString();					
			if(m_Voice[i].Length != 0 &&  m_Voice[i] != "NONE")
				m_VoiceCount++;				
		}
		
		m_Talk = new int[AsGameDefine.MAX_TALK];
		m_DisplayType = new eNpcMenuImage[AsGameDefine.MAX_TALK];
		
		for(int i = 0; i < AsGameDefine.MAX_TALK; ++i)
		{				
			m_Talk[i] = br.ReadInt32();			
			if(m_Talk[i] != int.MaxValue)
			{
				m_TalkCount++;
				 m_DisplayType[i] = eNpcMenuImage.Npc;
			}
			
			m_DisplayType[i] = (eNpcMenuImage)br.ReadInt32();			
		}	
		
		
		m_NpcMenuBtn = new eNPCMenu[AsGameDefine.MAX_NPC_MENU];
		
		
		for(int i = 0; i < AsGameDefine.MAX_NPC_MENU; ++i)
		{					
			m_NpcMenuBtn[i] = (eNPCMenu)br.ReadInt32();	
			
			if(m_NpcMenuBtn[i] != eNPCMenu.NONE)
				m_MenuBtnCount++;
		}		
	}