Esempio n. 1
0
        /// <summary>
        /// 增加条件
        /// </summary>
        /// <param name="pipeline"></param>
        /// <returns></returns>
        public bool AddPipel(CFSMPipeline pipeline)
        {
            if (m_PipelineCollection == null)
            {
                return(false);
            }
            bool bRet = m_PipelineCollection.AddPipel(pipeline);

            return(bRet);
        }
Esempio n. 2
0
 public bool AddPipel(CFSMPipeline newPipel)
 {
     if (newPipel == null)
     {
         return(false);
     }
     if (m_ConditionPipelineList == null)
     {
         m_ConditionPipelineList = new List <CFSMPipeline>();
     }
     m_ConditionPipelineList.Add(newPipel);
     return(true);
 }
Esempio n. 3
0
        public bool IsOpenToFSM(CFSM fsmEntity)
        {
            if (m_ConditionPipelineList == null)
            {
                return(true);
            }
            Int32 nSize = m_ConditionPipelineList.Count;

            for (Int32 i = 0; i < nSize; ++i)
            {
                CFSMPipeline pipeline = m_ConditionPipelineList[i];
                if (pipeline == null)
                {
                    continue;
                }
                if (pipeline.IsPipelineOpen(fsmEntity) == false)
                {
                    return(false);
                }
            }
            return(true);
        }