Search in sources :

Example 1 with ChooseRepairer

use of ecgberht.BehaviourTrees.Repair.ChooseRepairer in project Ecgberht by Jabbo16.

the class Ecgberht method initRepairTree.

private void initRepairTree() {
    CheckBuildingFlames cBF = new CheckBuildingFlames("Check building in flames", gs);
    ChooseRepairer cR = new ChooseRepairer("Choose Repairer", gs);
    Repair R = new Repair("Repair Building", gs);
    Sequence Repair = new Sequence("Repair", cBF, cR, R);
    repairTree = new BehavioralTree("RepairTree");
    repairTree.addChild(Repair);
}
Also used : ChooseRepairer(ecgberht.BehaviourTrees.Repair.ChooseRepairer) CheckBuildingFlames(ecgberht.BehaviourTrees.Repair.CheckBuildingFlames) Sequence(org.iaie.btree.task.composite.Sequence) Repair(ecgberht.BehaviourTrees.Repair.Repair) BehavioralTree(org.iaie.btree.BehavioralTree)

Aggregations

CheckBuildingFlames (ecgberht.BehaviourTrees.Repair.CheckBuildingFlames)1 ChooseRepairer (ecgberht.BehaviourTrees.Repair.ChooseRepairer)1 Repair (ecgberht.BehaviourTrees.Repair.Repair)1 BehavioralTree (org.iaie.btree.BehavioralTree)1 Sequence (org.iaie.btree.task.composite.Sequence)1