예제 #1
0
파일: Life.cs 프로젝트: 741645596/batgame
 /// <summary>
 /// 设置lifeM 核心结构
 /// </summary>
 /// <returns></returns>
 public virtual int SetLifeCore(LifeMCore Core)
 {
     m_SceneID = NdUtil.GetSceneID();
     m_Core.Copy(Core);
     CM.JoinCombat(m_SceneID, this, Core);
     return(m_SceneID);
 }
예제 #2
0
 private void SetFloorCore()
 {
     //SetFloorType();
     bool IsPlayer = CmCarbon.GetCamp2Player(LifeMCamp.DEFENSE);
     m_Core = new LifeMCore(NdUtil.GetSceneID(), IsPlayer, LifeMType.FLOOR, LifeMCamp.DEFENSE, MoveState.Static);
     SetLifeCore(m_Core);
     m_Attr = new FloorAttribute();
     m_Attr.Init(SceneID, m_Core, this);
 }
예제 #3
0
 /// <summary>
 /// Floor不加入cm列表
 /// </summary>
 /// <author>zhulin</author>
 public override int SetLifeCore(LifeMCore Core)
 {
     m_SceneID = NdUtil.GetSceneID();
     m_Core.Copy(Core);
     if (IsCanAttack) {
         InBoat = true;
         CM.JoinCombat(m_SceneID, this, m_Core);
     }
     return m_SceneID;
 }
예제 #4
0
    public override void SetCore()
    {
        bool IsPlayer = CmCarbon.GetCamp2Player(LifeMCamp.DEFENSE);

        m_Core = new LifeMCore(NdUtil.GetSceneID(), IsPlayer, LifeMType.WALL, LifeMCamp.DEFENSE, MoveState.Static);
        SetLifeCore(m_Core);

        m_Attr = new FloorAttribute();
        m_Attr.Init(SceneID, m_Core, this);
        m_Attr.StartPos = new Int2(StartUnit, Layer);

        HP = fullHP;
    }
예제 #5
0
 /// <summary>
 /// 召唤物
 /// </summary>
 public void SetBorn(Life Parent, int SummonProsID, PetInfo info, MapGrid pos)
 {
     m_Parent  = Parent;
     m_info    = info;
     m_MapGrid = pos;
     m_Pos     = pos.GridPos;
     m_Skill   = new InheritSummonProsSkill(info, this);
     m_Attr    = new InheritSummonProsAttribute();
     m_SceneID = NdUtil.GetSceneID();
     m_Core    = new LifeMCore(info.m_id, Parent.m_Core.m_IsPlayer, LifeMType.INHERITSUMMONPROS, Parent.m_Core.m_Camp, MoveState.Walk);
     m_Skill.Init(m_SceneID, m_Core);
     (m_Attr as InheritSummonProsAttribute).InheritInit(m_SceneID, m_Core, this, Parent);
     SetLifeCore(m_Core);
     InBoat = false;
 }
예제 #6
0
 //
 public void  SetStair(Int2 Up, Int2 Down)
 {
     m_Up    = Up;
     m_Down  = Down;
     StairID = NdUtil.GetSceneID();
 }