Exemple #1
0
        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is DecoratorAlwaysRunning))
            {
                return(false);
            }

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

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

            return(base.IsValid(pAgent, pTask));
        }
Exemple #4
0
        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is DecoratorSuccessUntil))
            {
                return(false);
            }

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

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

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

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

            return base.IsValid(pAgent, pTask);
        }
Exemple #9
0
        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is SequenceStochastic))
            {
                return(false);
            }

            return(base.IsValid(pAgent, pTask));
        }
Exemple #10
0
        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is Event))
            {
                return(false);
            }

            return(base.IsValid(pAgent, pTask));
        }
Exemple #11
0
        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);
        }
Exemple #12
0
        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;
        }
Exemple #13
0
        public override bool IsValid(Agent pAgent, BehaviorTask pTask)
        {
            if (!(pTask.GetNode() is DecoratorLog))
            {
                return(false);
            }
#if !BEHAVIAC_RELEASE
            if (pAgent != null)
            {
                fileName = "Custom_" + pAgent.CustomName + ".log";
            }
#endif
            return(base.IsValid(pAgent, pTask));
        }
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return(pTask.GetNode() is SelectorStochastic && base.IsValid(pAgent, pTask));
 }
Exemple #15
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is Predicate) && base.IsValid(pAgent, pTask));
 }
Exemple #16
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return(pTask.GetNode() is DecoratorLog && base.IsValid(pAgent, pTask));
 }
        public static string GetTickInfo(Agent pAgent, BehaviorTask bt, string action)
        {
            string result = GetTickInfo(pAgent, bt.GetNode(), action);

            return(result);
        }
Exemple #18
0
        public static string GetTickInfo(Agent pAgent, BehaviorTask bt, string action)
        {
            string result = GetTickInfo(pAgent, bt.GetNode(), action);

            return result;
        }
Exemple #19
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is Condition) && base.IsValid(pAgent, pTask));
 }
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is ReferencedBehavior) && base.IsValid(pAgent, pTask));
 }
Exemple #21
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is DecoratorAlwaysSuccess) && base.IsValid(pAgent, pTask));
 }
Exemple #22
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return(pTask.GetNode() is Noop);
 }
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is CompositeStochastic) && base.IsValid(pAgent, pTask));
 }
Exemple #24
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return(pTask.GetNode() is Parallel && base.IsValid(pAgent, pTask));
 }
Exemple #25
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is Assignment) && base.IsValid(pAgent, pTask));
 }
Exemple #26
0
 public override bool IsValid(Agent pAgent, BehaviorTask pTask)
 {
     return((pTask.GetNode() is WaitforSignal) && base.IsValid(pAgent, pTask));
 }