Exemple #1
0
    public EctypeTeam(Ectype ectype)
    {
        m_Ectype     = ectype;
        m_entityList = new List <EctypeEntity>();

        counterMax[(int)EntityEctypeStatus.Alert]  = 10;
        counterMax[(int)EntityEctypeStatus.Chase]  = 5;
        counterMax[(int)EntityEctypeStatus.Combat] = 10;
    }
Exemple #2
0
    public void CloseEctype()
    {
        if (m_Ectype != null)
        {
            m_Ectype.Close();
            m_Ectype = null;     // 关闭是一定要置空
        }

        //Game.inst.entityMgr.RemoveAll();
    }
Exemple #3
0
    public bool CreateEctype(EctypeCreatContext data)
    {
        m_Ectype = new Ectype();

        if (m_Ectype == null)
        {
            return(false);
        }

        if (!m_Ectype.Create(data))
        {
            return(false);
        }

        // 启动副本
        m_Ectype.Start();

        return(true);
    }
 public EctypeTeamAttacker(Ectype ectype)
     : base(ectype)
 {
 }
Exemple #5
0
 public EctypeLoader(Ectype owner)
 {
     m_owner = owner;
 }
Exemple #6
0
 public EctypeTeamDefender(Ectype ectype)
     : base(ectype)
 {
 }