public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/condition_ut_1"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // pars bt.AddPar("AgentNodeTest", "ParTestAgent", "par_agent", "null"); // children { Sequence node0 = new Sequence(); node0.SetClassNameString("Sequence"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { Or node9 = new Or(); node9.SetClassNameString("Or"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node9); { Condition_bt_node_test_condition_ut_1_node10 node10 = new Condition_bt_node_test_condition_ut_1_node10(); node10.SetClassNameString("Condition"); node10.SetId(10); #if !BEHAVIAC_RELEASE node10.SetAgentType("AgentNodeTest"); #endif node9.AddChild(node10); node9.SetHasEvents(node9.HasEvents() | node10.HasEvents()); } { True node11 = new True(); node11.SetClassNameString("True"); node11.SetId(11); #if !BEHAVIAC_RELEASE node11.SetAgentType("AgentNodeTest"); #endif node9.AddChild(node11); node9.SetHasEvents(node9.HasEvents() | node11.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node9.HasEvents()); } { Or node1 = new Or(); node1.SetClassNameString("Or"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { True node3 = new True(); node3.SetClassNameString("True"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node3); node1.SetHasEvents(node1.HasEvents() | node3.HasEvents()); } { False node5 = new False(); node5.SetClassNameString("False"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node5); node1.SetHasEvents(node1.HasEvents() | node5.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_condition_ut_1_node2 node2 = new Action_bt_node_test_condition_ut_1_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } { Or node4 = new Or(); node4.SetClassNameString("Or"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node4); { False node6 = new False(); node6.SetClassNameString("False"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node6); node4.SetHasEvents(node4.HasEvents() | node6.HasEvents()); } { False node7 = new False(); node7.SetClassNameString("False"); node7.SetId(7); #if !BEHAVIAC_RELEASE node7.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node7); node4.SetHasEvents(node4.HasEvents() | node7.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_condition_ut_1_node8 node8 = new Action_bt_node_test_condition_ut_1_node8(); node8.SetClassNameString("Action"); node8.SetId(8); #if !BEHAVIAC_RELEASE node8.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node8); node0.SetHasEvents(node0.HasEvents() | node8.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/condition_ut_3"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Sequence node0 = new Sequence(); node0.SetClassNameString("Sequence"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { And node9 = new And(); node9.SetClassNameString("And"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node9); { Or node13 = new Or(); node13.SetClassNameString("Or"); node13.SetId(13); #if !BEHAVIAC_RELEASE node13.SetAgentType("AgentNodeTest"); #endif node9.AddChild(node13); { True node10 = new True(); node10.SetClassNameString("True"); node10.SetId(10); #if !BEHAVIAC_RELEASE node10.SetAgentType("AgentNodeTest"); #endif node13.AddChild(node10); node13.SetHasEvents(node13.HasEvents() | node10.HasEvents()); } { False node14 = new False(); node14.SetClassNameString("False"); node14.SetId(14); #if !BEHAVIAC_RELEASE node14.SetAgentType("AgentNodeTest"); #endif node13.AddChild(node14); node13.SetHasEvents(node13.HasEvents() | node14.HasEvents()); } node9.SetHasEvents(node9.HasEvents() | node13.HasEvents()); } { True node11 = new True(); node11.SetClassNameString("True"); node11.SetId(11); #if !BEHAVIAC_RELEASE node11.SetAgentType("AgentNodeTest"); #endif node9.AddChild(node11); node9.SetHasEvents(node9.HasEvents() | node11.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node9.HasEvents()); } { Action_bt_node_test_condition_ut_3_node2 node2 = new Action_bt_node_test_condition_ut_3_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } { Or node1 = new Or(); node1.SetClassNameString("Or"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { And node15 = new And(); node15.SetClassNameString("And"); node15.SetId(15); #if !BEHAVIAC_RELEASE node15.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node15); { True node3 = new True(); node3.SetClassNameString("True"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node15.AddChild(node3); node15.SetHasEvents(node15.HasEvents() | node3.HasEvents()); } { True node16 = new True(); node16.SetClassNameString("True"); node16.SetId(16); #if !BEHAVIAC_RELEASE node16.SetAgentType("AgentNodeTest"); #endif node15.AddChild(node16); node15.SetHasEvents(node15.HasEvents() | node16.HasEvents()); } node1.SetHasEvents(node1.HasEvents() | node15.HasEvents()); } { False node5 = new False(); node5.SetClassNameString("False"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node5); node1.SetHasEvents(node1.HasEvents() | node5.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_condition_ut_3_node8 node8 = new Action_bt_node_test_condition_ut_3_node8(); node8.SetClassNameString("Action"); node8.SetId(8); #if !BEHAVIAC_RELEASE node8.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node8); node0.SetHasEvents(node0.HasEvents() | node8.HasEvents()); } { And node4 = new And(); node4.SetClassNameString("And"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node4); { Or node18 = new Or(); node18.SetClassNameString("Or"); node18.SetId(18); #if !BEHAVIAC_RELEASE node18.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node18); { Or node19 = new Or(); node19.SetClassNameString("Or"); node19.SetId(19); #if !BEHAVIAC_RELEASE node19.SetAgentType("AgentNodeTest"); #endif node18.AddChild(node19); { False node6 = new False(); node6.SetClassNameString("False"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif node19.AddChild(node6); node19.SetHasEvents(node19.HasEvents() | node6.HasEvents()); } { True node21 = new True(); node21.SetClassNameString("True"); node21.SetId(21); #if !BEHAVIAC_RELEASE node21.SetAgentType("AgentNodeTest"); #endif node19.AddChild(node21); node19.SetHasEvents(node19.HasEvents() | node21.HasEvents()); } node18.SetHasEvents(node18.HasEvents() | node19.HasEvents()); } { False node22 = new False(); node22.SetClassNameString("False"); node22.SetId(22); #if !BEHAVIAC_RELEASE node22.SetAgentType("AgentNodeTest"); #endif node18.AddChild(node22); node18.SetHasEvents(node18.HasEvents() | node22.HasEvents()); } node4.SetHasEvents(node4.HasEvents() | node18.HasEvents()); } { And node17 = new And(); node17.SetClassNameString("And"); node17.SetId(17); #if !BEHAVIAC_RELEASE node17.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node17); { True node7 = new True(); node7.SetClassNameString("True"); node7.SetId(7); #if !BEHAVIAC_RELEASE node7.SetAgentType("AgentNodeTest"); #endif node17.AddChild(node7); node17.SetHasEvents(node17.HasEvents() | node7.HasEvents()); } { And node20 = new And(); node20.SetClassNameString("And"); node20.SetId(20); #if !BEHAVIAC_RELEASE node20.SetAgentType("AgentNodeTest"); #endif node17.AddChild(node20); { True node23 = new True(); node23.SetClassNameString("True"); node23.SetId(23); #if !BEHAVIAC_RELEASE node23.SetAgentType("AgentNodeTest"); #endif node20.AddChild(node23); node20.SetHasEvents(node20.HasEvents() | node23.HasEvents()); } { True node24 = new True(); node24.SetClassNameString("True"); node24.SetId(24); #if !BEHAVIAC_RELEASE node24.SetAgentType("AgentNodeTest"); #endif node20.AddChild(node24); node20.SetHasEvents(node20.HasEvents() | node24.HasEvents()); } node17.SetHasEvents(node17.HasEvents() | node20.HasEvents()); } node4.SetHasEvents(node4.HasEvents() | node17.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_condition_ut_3_node12 node12 = new Action_bt_node_test_condition_ut_3_node12(); node12.SetClassNameString("Action"); node12.SetId(12); #if !BEHAVIAC_RELEASE node12.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node12); node0.SetHasEvents(node0.HasEvents() | node12.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/selector_loop_ut_8"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Sequence node15 = new Sequence(); node15.SetClassNameString("Sequence"); node15.SetId(15); #if !BEHAVIAC_RELEASE node15.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node15); { Action_bt_node_test_selector_loop_ut_8_node16 node16 = new Action_bt_node_test_selector_loop_ut_8_node16(); node16.SetClassNameString("Action"); node16.SetId(16); #if !BEHAVIAC_RELEASE node16.SetAgentType("AgentNodeTest"); #endif node15.AddChild(node16); node15.SetHasEvents(node15.HasEvents() | node16.HasEvents()); } { Assignment_bt_node_test_selector_loop_ut_8_node21 node21 = new Assignment_bt_node_test_selector_loop_ut_8_node21(); node21.SetClassNameString("Assignment"); node21.SetId(21); #if !BEHAVIAC_RELEASE node21.SetAgentType("AgentNodeTest"); #endif node15.AddChild(node21); node15.SetHasEvents(node15.HasEvents() | node21.HasEvents()); } { Selector node23 = new Selector(); node23.SetClassNameString("Selector"); node23.SetId(23); #if !BEHAVIAC_RELEASE node23.SetAgentType("AgentNodeTest"); #endif node15.AddChild(node23); { Selector node10 = new Selector(); node10.SetClassNameString("Selector"); node10.SetId(10); #if !BEHAVIAC_RELEASE node10.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach24 attach24 = new Precondition_bt_node_test_selector_loop_ut_8_attach24(); attach24.SetClassNameString("Precondition"); attach24.SetId(24); #if !BEHAVIAC_RELEASE attach24.SetAgentType("AgentNodeTest"); #endif node10.Attach(attach24, true, false, false); } node23.AddChild(node10); { DecoratorLoop_bt_node_test_selector_loop_ut_8_node9 node9 = new DecoratorLoop_bt_node_test_selector_loop_ut_8_node9(); node9.SetClassNameString("DecoratorLoop"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach14 attach14 = new Precondition_bt_node_test_selector_loop_ut_8_attach14(); attach14.SetClassNameString("Precondition"); attach14.SetId(14); #if !BEHAVIAC_RELEASE attach14.SetAgentType("AgentNodeTest"); #endif node9.Attach(attach14, true, false, false); } { Precondition_bt_node_test_selector_loop_ut_8_attach17 attach17 = new Precondition_bt_node_test_selector_loop_ut_8_attach17(); attach17.SetClassNameString("Precondition"); attach17.SetId(17); #if !BEHAVIAC_RELEASE attach17.SetAgentType("AgentNodeTest"); #endif node9.Attach(attach17, true, false, false); } { Effector_bt_node_test_selector_loop_ut_8_attach18 attach18 = new Effector_bt_node_test_selector_loop_ut_8_attach18(); attach18.SetClassNameString("Effector"); attach18.SetId(18); #if !BEHAVIAC_RELEASE attach18.SetAgentType("AgentNodeTest"); #endif node9.Attach(attach18, false, true, false); } node10.AddChild(node9); { SelectorLoop node0 = new SelectorLoop(); node0.SetClassNameString("SelectorLoop"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif node9.AddChild(node0); { WithPrecondition node1 = new WithPrecondition(); node1.SetClassNameString("WithPrecondition"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { Condition_bt_node_test_selector_loop_ut_8_node4 node4 = new Condition_bt_node_test_selector_loop_ut_8_node4(); node4.SetClassNameString("Condition"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node4); node1.SetHasEvents(node1.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_selector_loop_ut_8_node5 node5 = new Action_bt_node_test_selector_loop_ut_8_node5(); node5.SetClassNameString("Action"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach7 attach7 = new Precondition_bt_node_test_selector_loop_ut_8_attach7(); attach7.SetClassNameString("Precondition"); attach7.SetId(7); #if !BEHAVIAC_RELEASE attach7.SetAgentType("AgentNodeTest"); #endif node5.Attach(attach7, true, false, false); } node1.AddChild(node5); node1.SetHasEvents(node1.HasEvents() | node5.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { WithPrecondition node2 = new WithPrecondition(); node2.SetClassNameString("WithPrecondition"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); { True node3 = new True(); node3.SetClassNameString("True"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node2.AddChild(node3); node2.SetHasEvents(node2.HasEvents() | node3.HasEvents()); } { Action_bt_node_test_selector_loop_ut_8_node6 node6 = new Action_bt_node_test_selector_loop_ut_8_node6(); node6.SetClassNameString("Action"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach8 attach8 = new Precondition_bt_node_test_selector_loop_ut_8_attach8(); attach8.SetClassNameString("Precondition"); attach8.SetId(8); #if !BEHAVIAC_RELEASE attach8.SetAgentType("AgentNodeTest"); #endif node6.Attach(attach8, true, false, false); } node2.AddChild(node6); node2.SetHasEvents(node2.HasEvents() | node6.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } node9.SetHasEvents(node9.HasEvents() | node0.HasEvents()); } node10.SetHasEvents(node10.HasEvents() | node9.HasEvents()); } { Sequence node11 = new Sequence(); node11.SetClassNameString("Sequence"); node11.SetId(11); #if !BEHAVIAC_RELEASE node11.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach19 attach19 = new Precondition_bt_node_test_selector_loop_ut_8_attach19(); attach19.SetClassNameString("Precondition"); attach19.SetId(19); #if !BEHAVIAC_RELEASE attach19.SetAgentType("AgentNodeTest"); #endif node11.Attach(attach19, true, false, false); } node10.AddChild(node11); { Action_bt_node_test_selector_loop_ut_8_node12 node12 = new Action_bt_node_test_selector_loop_ut_8_node12(); node12.SetClassNameString("Action"); node12.SetId(12); #if !BEHAVIAC_RELEASE node12.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach20 attach20 = new Precondition_bt_node_test_selector_loop_ut_8_attach20(); attach20.SetClassNameString("Precondition"); attach20.SetId(20); #if !BEHAVIAC_RELEASE attach20.SetAgentType("AgentNodeTest"); #endif node12.Attach(attach20, true, false, false); } node11.AddChild(node12); node11.SetHasEvents(node11.HasEvents() | node12.HasEvents()); } { Action_bt_node_test_selector_loop_ut_8_node13 node13 = new Action_bt_node_test_selector_loop_ut_8_node13(); node13.SetClassNameString("Action"); node13.SetId(13); #if !BEHAVIAC_RELEASE node13.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_8_attach22 attach22 = new Precondition_bt_node_test_selector_loop_ut_8_attach22(); attach22.SetClassNameString("Precondition"); attach22.SetId(22); #if !BEHAVIAC_RELEASE attach22.SetAgentType("AgentNodeTest"); #endif node13.Attach(attach22, true, false, false); } node11.AddChild(node13); node11.SetHasEvents(node11.HasEvents() | node13.HasEvents()); } node10.SetHasEvents(node10.HasEvents() | node11.HasEvents()); } node23.SetHasEvents(node23.HasEvents() | node10.HasEvents()); } { Assignment_bt_node_test_selector_loop_ut_8_node25 node25 = new Assignment_bt_node_test_selector_loop_ut_8_node25(); node25.SetClassNameString("Assignment"); node25.SetId(25); #if !BEHAVIAC_RELEASE node25.SetAgentType("AgentNodeTest"); #endif node23.AddChild(node25); node23.SetHasEvents(node23.HasEvents() | node25.HasEvents()); } node15.SetHasEvents(node15.HasEvents() | node23.HasEvents()); } { Compute_bt_node_test_selector_loop_ut_8_node26 node26 = new Compute_bt_node_test_selector_loop_ut_8_node26(); node26.SetClassNameString("Compute"); node26.SetId(26); #if !BEHAVIAC_RELEASE node26.SetAgentType("AgentNodeTest"); #endif node15.AddChild(node26); node15.SetHasEvents(node15.HasEvents() | node26.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node15.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/selector_stochastic_ut_2"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { SelectorStochastic_bt_node_test_selector_stochastic_ut_2_node4 node4 = new SelectorStochastic_bt_node_test_selector_stochastic_ut_2_node4(); node4.SetClassNameString("SelectorStochastic"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node4); { Action_bt_node_test_selector_stochastic_ut_2_node5 node5 = new Action_bt_node_test_selector_stochastic_ut_2_node5(); node5.SetClassNameString("Action"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node5); node4.SetHasEvents(node4.HasEvents() | node5.HasEvents()); } { False node0 = new False(); node0.SetClassNameString("False"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node0); node4.SetHasEvents(node4.HasEvents() | node0.HasEvents()); } { True node2 = new True(); node2.SetClassNameString("True"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node2); node4.SetHasEvents(node4.HasEvents() | node2.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node4.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/selector_loop_ut_5"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { SelectorLoop node0 = new SelectorLoop(); node0.SetClassNameString("SelectorLoop"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { WithPrecondition node1 = new WithPrecondition(); node1.SetClassNameString("WithPrecondition"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { False node4 = new False(); node4.SetClassNameString("False"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node4); node1.SetHasEvents(node1.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_selector_loop_ut_5_node5 node5 = new Action_bt_node_test_selector_loop_ut_5_node5(); node5.SetClassNameString("Action"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node5); node1.SetHasEvents(node1.HasEvents() | node5.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { WithPrecondition node2 = new WithPrecondition(); node2.SetClassNameString("WithPrecondition"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); { True node3 = new True(); node3.SetClassNameString("True"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node2.AddChild(node3); node2.SetHasEvents(node2.HasEvents() | node3.HasEvents()); } { Action_bt_node_test_selector_loop_ut_5_node6 node6 = new Action_bt_node_test_selector_loop_ut_5_node6(); node6.SetClassNameString("Action"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif node2.AddChild(node6); node2.SetHasEvents(node2.HasEvents() | node6.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } { WithPrecondition node7 = new WithPrecondition(); node7.SetClassNameString("WithPrecondition"); node7.SetId(7); #if !BEHAVIAC_RELEASE node7.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node7); { True node8 = new True(); node8.SetClassNameString("True"); node8.SetId(8); #if !BEHAVIAC_RELEASE node8.SetAgentType("AgentNodeTest"); #endif node7.AddChild(node8); node7.SetHasEvents(node7.HasEvents() | node8.HasEvents()); } { Action_bt_node_test_selector_loop_ut_5_node9 node9 = new Action_bt_node_test_selector_loop_ut_5_node9(); node9.SetClassNameString("Action"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("AgentNodeTest"); #endif node7.AddChild(node9); node7.SetHasEvents(node7.HasEvents() | node9.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node7.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/selector_loop_ut_6"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { DecoratorLoop_bt_node_test_selector_loop_ut_6_node9 node9 = new DecoratorLoop_bt_node_test_selector_loop_ut_6_node9(); node9.SetClassNameString("DecoratorLoop"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node9); { SelectorLoop node0 = new SelectorLoop(); node0.SetClassNameString("SelectorLoop"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif node9.AddChild(node0); { WithPrecondition node1 = new WithPrecondition(); node1.SetClassNameString("WithPrecondition"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { Condition_bt_node_test_selector_loop_ut_6_node4 node4 = new Condition_bt_node_test_selector_loop_ut_6_node4(); node4.SetClassNameString("Condition"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node4); node1.SetHasEvents(node1.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_selector_loop_ut_6_node5 node5 = new Action_bt_node_test_selector_loop_ut_6_node5(); node5.SetClassNameString("Action"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_6_attach7 attach7 = new Precondition_bt_node_test_selector_loop_ut_6_attach7(); attach7.SetClassNameString("Precondition"); attach7.SetId(7); #if !BEHAVIAC_RELEASE attach7.SetAgentType("AgentNodeTest"); #endif node5.Attach(attach7, true, false, false); } node1.AddChild(node5); node1.SetHasEvents(node1.HasEvents() | node5.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { WithPrecondition node2 = new WithPrecondition(); node2.SetClassNameString("WithPrecondition"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); { True node3 = new True(); node3.SetClassNameString("True"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node2.AddChild(node3); node2.SetHasEvents(node2.HasEvents() | node3.HasEvents()); } { Action_bt_node_test_selector_loop_ut_6_node6 node6 = new Action_bt_node_test_selector_loop_ut_6_node6(); node6.SetClassNameString("Action"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_selector_loop_ut_6_attach8 attach8 = new Precondition_bt_node_test_selector_loop_ut_6_attach8(); attach8.SetClassNameString("Precondition"); attach8.SetId(8); #if !BEHAVIAC_RELEASE attach8.SetAgentType("AgentNodeTest"); #endif node6.Attach(attach8, true, false, false); } node2.AddChild(node6); node2.SetHasEvents(node2.HasEvents() | node6.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } node9.SetHasEvents(node9.HasEvents() | node0.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node9.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/event_subtree_1"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // pars bt.AddPar("AgentNodeTest", "int", "_$local_task_param_$_0", "0"); // children { Task_bt_node_test_event_subtree_1_node6 node6 = new Task_bt_node_test_event_subtree_1_node6(); node6.SetClassNameString("Task"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node6); { Sequence node0 = new Sequence(); node0.SetClassNameString("Sequence"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif node6.AddChild(node0); { True node1 = new True(); node1.SetClassNameString("True"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_event_subtree_1_node2 node2 = new Action_bt_node_test_event_subtree_1_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } node6.SetHasEvents(node6.HasEvents() | node0.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node6.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/if_else_ut_0"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { IfElse node0 = new IfElse(); node0.SetClassNameString("IfElse"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { True node1 = new True(); node1.SetClassNameString("True"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_if_else_ut_0_node2 node2 = new Action_bt_node_test_if_else_ut_0_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } { Action_bt_node_test_if_else_ut_0_node3 node3 = new Action_bt_node_test_if_else_ut_0_node3(); node3.SetClassNameString("Action"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node3); node0.SetHasEvents(node0.HasEvents() | node3.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/decoration_loopuntil_ut_2"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Sequence node0 = new Sequence(); node0.SetClassNameString("Sequence"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { Action_bt_node_test_decoration_loopuntil_ut_2_node4 node4 = new Action_bt_node_test_decoration_loopuntil_ut_2_node4(); node4.SetClassNameString("Action"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node4); node0.SetHasEvents(node0.HasEvents() | node4.HasEvents()); } { DecoratorLoopUntil_bt_node_test_decoration_loopuntil_ut_2_node1 node1 = new DecoratorLoopUntil_bt_node_test_decoration_loopuntil_ut_2_node1(); node1.SetClassNameString("DecoratorLoopUntil"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { DecoratorAlwaysFailure_bt_node_test_decoration_loopuntil_ut_2_node6 node6 = new DecoratorAlwaysFailure_bt_node_test_decoration_loopuntil_ut_2_node6(); node6.SetClassNameString("DecoratorAlwaysFailure"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node6); { True node5 = new True(); node5.SetClassNameString("True"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node6.AddChild(node5); node6.SetHasEvents(node6.HasEvents() | node5.HasEvents()); } node1.SetHasEvents(node1.HasEvents() | node6.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_decoration_loopuntil_ut_2_node3 node3 = new Action_bt_node_test_decoration_loopuntil_ut_2_node3(); node3.SetClassNameString("Action"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node3); node0.SetHasEvents(node0.HasEvents() | node3.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/enter_exit_action_ut_1"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Parallel_bt_node_test_enter_exit_action_ut_1_node0 node0 = new Parallel_bt_node_test_enter_exit_action_ut_1_node0(); node0.SetClassNameString("Parallel"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_enter_exit_action_ut_1_attach1 attach1 = new Precondition_bt_node_test_enter_exit_action_ut_1_attach1(); attach1.SetClassNameString("Precondition"); attach1.SetId(1); #if !BEHAVIAC_RELEASE attach1.SetAgentType("AgentNodeTest"); #endif node0.Attach(attach1, true, false, false); } { Effector_bt_node_test_enter_exit_action_ut_1_attach2 attach2 = new Effector_bt_node_test_enter_exit_action_ut_1_attach2(); attach2.SetClassNameString("Effector"); attach2.SetId(2); #if !BEHAVIAC_RELEASE attach2.SetAgentType("AgentNodeTest"); #endif node0.Attach(attach2, false, true, false); } bt.AddChild(node0); { WaitforSignal node3 = new WaitforSignal(); node3.SetClassNameString("WaitforSignal"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_enter_exit_action_ut_1_attach4 attach4 = new Precondition_bt_node_test_enter_exit_action_ut_1_attach4(); attach4.SetClassNameString("Precondition"); attach4.SetId(4); #if !BEHAVIAC_RELEASE attach4.SetAgentType("AgentNodeTest"); #endif node3.Attach(attach4, true, false, false); } { Effector_bt_node_test_enter_exit_action_ut_1_attach5 attach5 = new Effector_bt_node_test_enter_exit_action_ut_1_attach5(); attach5.SetClassNameString("Effector"); attach5.SetId(5); #if !BEHAVIAC_RELEASE attach5.SetAgentType("AgentNodeTest"); #endif node3.Attach(attach5, false, true, false); } node0.AddChild(node3); { Condition_bt_node_test_enter_exit_action_ut_1_node6 node6 = new Condition_bt_node_test_enter_exit_action_ut_1_node6(); node6.SetClassNameString("Condition"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif node3.SetCustomCondition(node6); node3.SetHasEvents(node3.HasEvents() | node6.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node3.HasEvents()); } { True node7 = new True(); node7.SetClassNameString("True"); node7.SetId(7); #if !BEHAVIAC_RELEASE node7.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node7); node0.SetHasEvents(node0.HasEvents() | node7.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/decoration_failureuntil_ut_1"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { DecoratorFailureUntil_bt_node_test_decoration_failureuntil_ut_1_node0 node0 = new DecoratorFailureUntil_bt_node_test_decoration_failureuntil_ut_1_node0(); node0.SetClassNameString("DecoratorFailureUntil"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { True node1 = new True(); node1.SetClassNameString("True"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/query_subtree_2"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif bt.SetDomains("test subtree2"); bt.SetDescriptors("1:{Descriptor=int Self.AgentNodeTest::testVar_1;Reference=const int 80;}"); // children { Sequence node0 = new Sequence(); node0.SetClassNameString("Sequence"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { Action_bt_node_test_query_subtree_2_node1 node1 = new Action_bt_node_test_query_subtree_2_node1(); node1.SetClassNameString("Action"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { True node2 = new True(); node2.SetClassNameString("True"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/selector_stochastic_ut_1"); #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { SelectorStochastic_bt_node_test_selector_stochastic_ut_1_node0 node0 = new SelectorStochastic_bt_node_test_selector_stochastic_ut_1_node0(); node0.SetClassNameString("SelectorStochastic"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { Action_bt_node_test_selector_stochastic_ut_1_node1 node1 = new Action_bt_node_test_selector_stochastic_ut_1_node1(); node1.SetClassNameString("Action"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { True node2 = new True(); node2.SetClassNameString("True"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } { True node3 = new True(); node3.SetClassNameString("True"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node3); node0.SetHasEvents(node0.HasEvents() | node3.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/event_subtree_0"); #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Sequence node0 = new Sequence(); node0.SetClassNameString("Sequence"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { True node1 = new True(); node1.SetClassNameString("True"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_event_subtree_0_node2 node2 = new Action_bt_node_test_event_subtree_0_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node2); node0.SetHasEvents(node0.HasEvents() | node2.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }
public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/enter_exit_action_ut_1"); #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Parallel_bt_node_test_enter_exit_action_ut_1_node0 node0 = new Parallel_bt_node_test_enter_exit_action_ut_1_node0(); node0.SetClassNameString("Parallel"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { WaitforSignal_bt_node_test_enter_exit_action_ut_1_node3 node3 = new WaitforSignal_bt_node_test_enter_exit_action_ut_1_node3(); node3.SetClassNameString("WaitforSignal"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("AgentNodeTest"); #endif // attachments { Predicate_bt_node_test_enter_exit_action_ut_1_attach5 attach5 = new Predicate_bt_node_test_enter_exit_action_ut_1_attach5(); attach5.SetClassNameString("Predicate"); attach5.SetId(5); #if !BEHAVIAC_RELEASE attach5.SetAgentType("AgentNodeTest"); #endif node3.Attach(attach5); } node0.AddChild(node3); node0.SetHasEvents(node0.HasEvents() | node3.HasEvents()); } { True node4 = new True(); node4.SetClassNameString("True"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node4); node0.SetHasEvents(node0.HasEvents() | node4.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }