Search in sources :

Example 1 with CheckPerimeter

use of ecgberht.BehaviourTrees.Defense.CheckPerimeter in project Ecgberht by Jabbo16.

the class Ecgberht method initDefenseTree.

private void initDefenseTree() {
    CheckPerimeter cP = new CheckPerimeter("Check Perimeter", gs);
    ChooseDefensePosition cDP = new ChooseDefensePosition("Choose Defence Position", gs);
    SendDefenders sD = new SendDefenders("Send Defenders", gs);
    Sequence Defense = new Sequence("Defence", cP, cDP, sD);
    defenseTree = new BehavioralTree("Defence Tree");
    defenseTree.addChild(Defense);
}
Also used : SendDefenders(ecgberht.BehaviourTrees.Defense.SendDefenders) ChooseDefensePosition(ecgberht.BehaviourTrees.Defense.ChooseDefensePosition) CheckPerimeter(ecgberht.BehaviourTrees.Defense.CheckPerimeter) Sequence(org.iaie.btree.task.composite.Sequence) BehavioralTree(org.iaie.btree.BehavioralTree)

Aggregations

CheckPerimeter (ecgberht.BehaviourTrees.Defense.CheckPerimeter)1 ChooseDefensePosition (ecgberht.BehaviourTrees.Defense.ChooseDefensePosition)1 SendDefenders (ecgberht.BehaviourTrees.Defense.SendDefenders)1 BehavioralTree (org.iaie.btree.BehavioralTree)1 Sequence (org.iaie.btree.task.composite.Sequence)1