public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/PreconditionEffectorTest/PreconditionEffectorTest_0"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("PreconEffectorAgent"); #endif // children { Selector node3 = new Selector(); node3.SetClassNameString("Selector"); node3.SetId(3); #if !BEHAVIAC_RELEASE node3.SetAgentType("PreconEffectorAgent"); #endif // attachments { Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach0 attach0 = new Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach0(); attach0.SetClassNameString("Precondition"); attach0.SetId(0); #if !BEHAVIAC_RELEASE attach0.SetAgentType("PreconEffectorAgent"); #endif node3.Attach(attach0, true, false, false); } bt.AddChild(node3); { Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node8 node8 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node8(); node8.SetClassNameString("Action"); node8.SetId(8); #if !BEHAVIAC_RELEASE node8.SetAgentType("PreconEffectorAgent"); #endif // attachments { Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach1 attach1 = new Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach1(); attach1.SetClassNameString("Precondition"); attach1.SetId(1); #if !BEHAVIAC_RELEASE attach1.SetAgentType("PreconEffectorAgent"); #endif node8.Attach(attach1, true, false, false); } { Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach2 attach2 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach2(); attach2.SetClassNameString("Effector"); attach2.SetId(2); #if !BEHAVIAC_RELEASE attach2.SetAgentType("PreconEffectorAgent"); #endif node8.Attach(attach2, false, true, false); } { Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach4 attach4 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach4(); attach4.SetClassNameString("Effector"); attach4.SetId(4); #if !BEHAVIAC_RELEASE attach4.SetAgentType("PreconEffectorAgent"); #endif node8.Attach(attach4, false, true, false); } node3.AddChild(node8); node3.SetHasEvents(node3.HasEvents() | node8.HasEvents()); } { Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node9 node9 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node9(); node9.SetClassNameString("Action"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("PreconEffectorAgent"); #endif // attachments { Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach10 attach10 = new Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach10(); attach10.SetClassNameString("Precondition"); attach10.SetId(10); #if !BEHAVIAC_RELEASE attach10.SetAgentType("PreconEffectorAgent"); #endif node9.Attach(attach10, true, false, false); } { Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach5 attach5 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach5(); attach5.SetClassNameString("Effector"); attach5.SetId(5); #if !BEHAVIAC_RELEASE attach5.SetAgentType("PreconEffectorAgent"); #endif node9.Attach(attach5, false, true, false); } { Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach6 attach6 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach6(); attach6.SetClassNameString("Effector"); attach6.SetId(6); #if !BEHAVIAC_RELEASE attach6.SetAgentType("PreconEffectorAgent"); #endif node9.Attach(attach6, false, true, false); } node3.AddChild(node9); node3.SetHasEvents(node3.HasEvents() | node9.HasEvents()); } bt.SetHasEvents(bt.HasEvents() | node3.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_0"); 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 // attachments { Precondition_bt_node_test_enter_exit_action_ut_0_attach1 attach1 = new Precondition_bt_node_test_enter_exit_action_ut_0_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_0_attach2 attach2 = new Effector_bt_node_test_enter_exit_action_ut_0_attach2(); attach2.SetClassNameString("Effector"); attach2.SetId(2); #if !BEHAVIAC_RELEASE attach2.SetAgentType("AgentNodeTest"); #endif node0.Attach(attach2, false, true, false); } bt.AddChild(node0); { Selector node6 = new Selector(); node6.SetClassNameString("Selector"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif // attachments { Precondition_bt_node_test_enter_exit_action_ut_0_attach3 attach3 = new Precondition_bt_node_test_enter_exit_action_ut_0_attach3(); attach3.SetClassNameString("Precondition"); attach3.SetId(3); #if !BEHAVIAC_RELEASE attach3.SetAgentType("AgentNodeTest"); #endif node6.Attach(attach3, true, false, false); } { Effector_bt_node_test_enter_exit_action_ut_0_attach4 attach4 = new Effector_bt_node_test_enter_exit_action_ut_0_attach4(); attach4.SetClassNameString("Effector"); attach4.SetId(4); #if !BEHAVIAC_RELEASE attach4.SetAgentType("AgentNodeTest"); #endif node6.Attach(attach4, false, true, false); } node0.AddChild(node6); { WaitforSignal node7 = new WaitforSignal(); node7.SetClassNameString("WaitforSignal"); node7.SetId(7); #if !BEHAVIAC_RELEASE node7.SetAgentType("AgentNodeTest"); #endif node6.AddChild(node7); { Condition_bt_node_test_enter_exit_action_ut_0_node5 node5 = new Condition_bt_node_test_enter_exit_action_ut_0_node5(); node5.SetClassNameString("Condition"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node7.SetCustomCondition(node5); node7.SetHasEvents(node7.HasEvents() | node5.HasEvents()); } node6.SetHasEvents(node6.HasEvents() | node7.HasEvents()); } { True node8 = new True(); node8.SetClassNameString("True"); node8.SetId(8); #if !BEHAVIAC_RELEASE node8.SetAgentType("AgentNodeTest"); #endif node6.AddChild(node8); node6.SetHasEvents(node6.HasEvents() | node8.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node6.HasEvents()); } { True node9 = new True(); node9.SetClassNameString("True"); node9.SetId(9); #if !BEHAVIAC_RELEASE node9.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node9); node0.SetHasEvents(node0.HasEvents() | node9.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/predicate_selector_ut_5"); #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Selector node0 = new Selector(); node0.SetClassNameString("Selector"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif // attachments { Predicate_bt_node_test_predicate_selector_ut_5_attach1 attach1 = new Predicate_bt_node_test_predicate_selector_ut_5_attach1(); attach1.SetClassNameString("Predicate"); attach1.SetId(1); #if !BEHAVIAC_RELEASE attach1.SetAgentType("AgentNodeTest"); #endif node0.Attach(attach1); } { Predicate_bt_node_test_predicate_selector_ut_5_attach3 attach3 = new Predicate_bt_node_test_predicate_selector_ut_5_attach3(); attach3.SetClassNameString("Predicate"); attach3.SetId(3); #if !BEHAVIAC_RELEASE attach3.SetAgentType("AgentNodeTest"); #endif node0.Attach(attach3); } { Predicate_bt_node_test_predicate_selector_ut_5_attach6 attach6 = new Predicate_bt_node_test_predicate_selector_ut_5_attach6(); attach6.SetClassNameString("Predicate"); attach6.SetId(6); #if !BEHAVIAC_RELEASE attach6.SetAgentType("AgentNodeTest"); #endif node0.Attach(attach6); } bt.AddChild(node0); { Action_bt_node_test_predicate_selector_ut_5_node5 node5 = new Action_bt_node_test_predicate_selector_ut_5_node5(); node5.SetClassNameString("Action"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node5); node0.SetHasEvents(node0.HasEvents() | node5.HasEvents()); } { Action_bt_node_test_predicate_selector_ut_5_node4 node4 = new Action_bt_node_test_predicate_selector_ut_5_node4(); node4.SetClassNameString("Action"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node4); node0.SetHasEvents(node0.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_predicate_selector_ut_5_node2 node2 = new Action_bt_node_test_predicate_selector_ut_5_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_predicate_selector_ut_5_node7 node7 = new Action_bt_node_test_predicate_selector_ut_5_node7(); node7.SetClassNameString("Action"); 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; }