本文整理汇总了C#中behaviac.BehaviorTask类的典型用法代码示例。如果您正苦于以下问题:C# BehaviorTask类的具体用法?C# BehaviorTask怎么用?C# BehaviorTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BehaviorTask类属于behaviac命名空间,在下文中一共展示了BehaviorTask类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: SetCurrentTask
public virtual void SetCurrentTask(BehaviorTask task)
{
}
开发者ID:wuzhen,项目名称:behaviac,代码行数:3,代码来源:BehaviorTree_task.cs
示例17: abort_handler
private static bool abort_handler(BehaviorTask node, Agent pAgent, object user_data)
{
if (node.m_status == EBTStatus.BT_RUNNING)
{
node.onexit_action(pAgent, EBTStatus.BT_FAILURE);
node.m_status = EBTStatus.BT_FAILURE;
node.SetCurrentTask(null);
}
return true;
}
开发者ID:wuzhen,项目名称:behaviac,代码行数:12,代码来源:BehaviorTree_task.cs
示例18: GetTickInfo
public static string GetTickInfo(Agent pAgent, BehaviorTask bt, string action)
{
string result = GetTickInfo(pAgent, bt.GetNode(), action);
return result;
}
开发者ID:wuzhen,项目名称:behaviac,代码行数:6,代码来源:BehaviorTree_task.cs
示例19: copyto
public virtual void copyto(BehaviorTask target)
{
target.m_status = this.m_status;
}
开发者ID:wuzhen,项目名称:behaviac,代码行数:4,代码来源:BehaviorTree_task.cs
示例20: addChild
protected override void addChild(BehaviorTask pBehavior)
{
pBehavior.SetParent(this);
this.m_root = pBehavior;
}
开发者ID:wuzhen,项目名称:behaviac,代码行数:6,代码来源:BehaviorTree_task.cs
注:本文中的behaviac.BehaviorTask类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论