BehaviorDesigner 内置人物中英对照

  • 格式:docx
  • 大小:17.49 KB
  • 文档页数:4

下载文档原格式

  / 8
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Composites复合任务

Sequence顺序任务/序列任务

The Sequence task is similar to an "and" operation. It will return Failure as soon as one of its child tasks return Failure. If a child task returns Success then it will sequentially run the next task. If all child tasks return Success then it will return Success.

Sequence任务类似于“and”操作。一旦其子任务之一返回Failure,它将返回Failure。如果子任务返回Success,那么它将按顺序执行下一个任务。如果所有子任务返回Success,那么它将返回Success。

Selector选择任务

The Selector task is similar to an "or" operation. It will return Success as soon as one of its child tasks return Success. If a child task returns Failure then it will sequentially run the next task. If no child task returns Success then it will return Failure.

Selector任务类似于“or”操作。一旦其子任务之一返回Success,它将返回Success。如果子任务返回Failure,则它将按顺序执行下一个任务。如果没有子任务返回Success,则它将返回Failure。

Parallel并行任务

Similar to the Sequence task, the Parallel task will run each child task until a child task returns Failure. The difference is that the Parallel task will run all of its children tasks simultaneously versus running each task one at a time. Like the Sequence class, the Parallel task will return Success once all of its children tasks have return Success. If one tasks returns Failure the Parallel task will end all of the child tasks and return Failure.

与Sequence任务类似,Parallel任务将运行每个子任务,直到子任务返回Failure。不同的是,并行任务将同时运行其所有子任务,而不是每次运行一个任务。像Sequence任务一样,当所有的子任务都返回Success时,Parallel任务将返回Success。如果一个任务返回Failure,Parallel任务将结束所有子任务并返回Failure。

Parallel Selector 并行选择任务

Similar to the Selector task, the Parallel Selector task will return Success as soon as a child task returns Success. The difference is that the Parallel Selector task will run all of its children tasks

simultaneously versus running each task one at a time. If one tasks returns Success the Parallel Selector task will end all of the child tasks and return Success. If every child task returns Failure then the Parallel Selector task will return Failure.

与Selector任务类似,只要子任务返回Success,Parallel Selector任务将返回Success。不同之处在于,Parallel Selector任务将同时运行其所有子任务,而不是每次运行一个任务。如果一个任务返回Success,Parallel Selector任务将结束所有子任务并返回Success。如果每个子任务返回Failure,则Parallel Selector任务将返回Failure。

Priority Selector优先级选择人物

Similar to the Selector task, the Priority Selector task will return Success as soon as a child task returns Success. Instead of running the tasks sequentially from left to right within the tree, the Priority Selector will ask the task what its priority is to determine the order. The higher priority tasks have a higher chance at being run first.

与Selector任务类似,一旦子任务返回Success,Priority Selector任务将返回Success。而不是在树内从左到右依次运行任务,Priority Selector将询问子任务它的优先级是什么来确定顺序。较高优先级任务首先运行的可能性较高。

Random Selector 随机选择任务

Similar to the Selector task, the Random Selector task will return Success as soon as a child task returns Success. The difference is that the Random Selector class will run its children in a random order. The Selector task is deterministic in that it will always run the tasks from left to right within the tree. The Random Selector task shuffles the child tasks up and then begins execution in a random order. Other than that the Random Selector class is the same as the Selector class. It will continue running tasks until a task completes successfully. If no child tasks return Success then it will return Failure.

seed

Seed the random number generator to make things easier to debug.

useSeed

Do we want to use the seed?

与Selector任务类似,Random Selector任务将在子任务返回Success时立即返回Success。区别是Random Selector类将以随机顺序运行其子元素。Selector任务是确定性的,因为它总是在树内从左到右运行任务。Random Selector任务将子任务随机排序,然后以随机顺序开始执行。除此之外,Random Selector类与Selector类相同。它将继续运行任务,直到任务成功完成。如果没有子任务返回Success,那么它将返回Failure。

seed

随机数种子