當前位置: 首頁>>代碼示例>>C#>>正文


C# behaviac.BehaviorTask類代碼示例

本文整理匯總了C#中behaviac.BehaviorTask的典型用法代碼示例。如果您正苦於以下問題:C# BehaviorTask類的具體用法?C# BehaviorTask怎麽用?C# BehaviorTask使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BehaviorTask類屬於behaviac命名空間,在下文中一共展示了BehaviorTask類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: copyto

            public override void copyto(BehaviorTask target)
            {
                base.copyto(target);

                Debug.Check(target is DecoratorCountTask);
                DecoratorCountTask ttask = (DecoratorCountTask)target;

                ttask.m_n = this.m_n;
            }
開發者ID:haolly,項目名稱:behaviac,代碼行數:9,代碼來源:Decoratorcount.cs

示例2: copyto

        public override void copyto(BehaviorTask target)
        {
            base.copyto(target);

            Debug.Check(target is WaitforSignalTask);
            WaitforSignalTask ttask = (WaitforSignalTask)target;

            ttask.m_bTriggered = this.m_bTriggered;
        }
開發者ID:675492062,項目名稱:behaviac,代碼行數:9,代碼來源:Waitforsignal.cs

示例3: copyto

            public override void copyto(BehaviorTask target)
            {
                base.copyto(target);

                Debug.Check(target is SelectorLoopTask);
                SelectorLoopTask ttask = (SelectorLoopTask)target;

                ttask.m_activeChildIndex = this.m_activeChildIndex;
            }
開發者ID:Just4F,項目名稱:behaviac,代碼行數:9,代碼來源:Selectorloop.cs

示例4: IsValid

        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is DecoratorFailureUntil))
            {
                return false;
            }

            return base.IsValid(pAgent, pTask);
        }
開發者ID:pjkui,項目名稱:behaviac,代碼行數:9,代碼來源:Decoratorfailureuntil.cs

示例5: copyto

            public override void copyto(BehaviorTask target)
            {
                base.copyto(target);

                Debug.Check(target is WaitFramesTask);
                WaitFramesTask ttask = (WaitFramesTask)target;
                ttask.m_start = this.m_start;
                ttask.m_frames = this.m_frames;
            }
開發者ID:Just4F,項目名稱:behaviac,代碼行數:9,代碼來源:Waitframes.cs

示例6: IsValid

        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is DecoratorAlwaysSuccess))
            {
                return false;
            }

            return base.IsValid(pAgent, pTask);
        }
開發者ID:Just4F,項目名稱:behaviac,代碼行數:9,代碼來源:Decoratoralwayssuccess.cs

示例7: IsValid

        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is SelectorStochastic))
            {
                return false;
            }

            return base.IsValid(pAgent, pTask);
        }
開發者ID:KeyleXiao,項目名稱:behaviac,代碼行數:9,代碼來源:Selectorstochastic.cs

示例8: IsValid

        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is And))
            {
                return false;
            }

            return base.IsValid(pAgent, pTask);
        }
開發者ID:yinlei,項目名稱:behaviac,代碼行數:9,代碼來源:And.cs

示例9: copyto

            public override void copyto(BehaviorTask target)
            {
                base.copyto(target);

                Debug.Check(target is CompositeStochasticTask);
                CompositeStochasticTask ttask = (CompositeStochasticTask)target;

                ttask.m_set = this.m_set;
            }
開發者ID:Just4F,項目名稱:behaviac,代碼行數:9,代碼來源:Compositestochastic.cs

示例10: copyto

            public override void copyto(BehaviorTask target)
            {
                base.copyto(target);

                Debug.Check(target is DecoratorTimeTask);
                DecoratorTimeTask ttask = (DecoratorTimeTask)target;

                ttask.m_start = this.m_start;
                ttask.m_time = this.m_time;
            }
開發者ID:675492062,項目名稱:behaviac,代碼行數:10,代碼來源:Decoratortime.cs

示例11: copyto

            public override void copyto(BehaviorTask target)
            {
                base.copyto(target);

                Debug.Check(target is WaitStateTask);
                WaitStateTask ttask = (WaitStateTask)target;

                ttask.m_start = this.m_start;
                ttask.m_time = this.m_time;
            }
開發者ID:675492062,項目名稱:behaviac,代碼行數:10,代碼來源:WaitState.cs

示例12: IsValid

        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is Noop))
            {
                return false;
            }

            //used in unittest
            //return base.IsValid(pAgent, pTask);
            return true;
        }
開發者ID:675492062,項目名稱:behaviac,代碼行數:11,代碼來源:Noop.cs

示例13: GetTickInfo

        public static string GetTickInfo(Agent pAgent, BehaviorTask b, string action)
        {
            #if !BEHAVIAC_RELEASE
            if (Config.IsLoggingOrSocketing)
            {
                if (pAgent != null && pAgent.IsMasked())
                {
                    //BEHAVIAC_PROFILE("GetTickInfo", true);

                    string bClassName = b.GetClassNameString();

                    //filter out intermediate bt, whose class name is empty
                    if (!string.IsNullOrEmpty(bClassName))
                    {
                        int nodeId = b.GetId();
                        BehaviorTreeTask bt = pAgent != null ? pAgent.btgetcurrent() : null;

                        //TestBehaviorGroup\scratch.xml.EventetTask[0]:enter
                        string bpstr = "";
                        if (bt != null)
                        {
                            string btName = bt.GetName();

                            bpstr = string.Format("{0}.xml->", btName);
                        }

                        bpstr += string.Format("{0}[{1}]", bClassName, nodeId);

                        if (!string.IsNullOrEmpty(action))
                        {
                            bpstr += string.Format(":{0}", action);
                        }

                        return bpstr;
                    }
                }
            }
            #endif
            return string.Empty;
        }
開發者ID:Oswin2014,項目名稱:Behavior_Tree-Practice-in-Unity,代碼行數:40,代碼來源:BehaviorTree_task.cs

示例14: reset_handler

        private static bool reset_handler(BehaviorTask node, Agent pAgent, object user_data)
        {
            node.m_status = EBTStatus.BT_INVALID;

            node.onreset(pAgent);
            node.SetCurrentTask(null);

            return true;
        }
開發者ID:wuzhen,項目名稱:behaviac,代碼行數:9,代碼來源:BehaviorTree_task.cs

示例15: SetRootTask

 public void SetRootTask(BehaviorTask pRoot)
 {
     this.addChild(pRoot);
 }
開發者ID:wuzhen,項目名稱:behaviac,代碼行數:4,代碼來源:BehaviorTree_task.cs


注:本文中的behaviac.BehaviorTask類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。